Back to Templates

Generate Text with IBM Granite Speech 3.3 8B Model via Replicate

Created by

Created by: Yaron Been || yaron-nofluff

Yaron Been

Last update

Last update 3 days ago

Share


Ibm Granite Granite Speech 3.3 8b Text Generator

Description

Granite-speech-3.3-8b is a compact and efficient speech-language model, specifically designed for automatic speech recognition (ASR) and automatic speech translation (AST).

Overview

This n8n workflow integrates with the Replicate API to use the ibm-granite/granite-speech-3.3-8b model. This powerful AI model can generate high-quality text content based on your inputs.

Features

  • Easy integration with Replicate API
  • Automated status checking and result retrieval
  • Support for all model parameters
  • Error handling and retry logic
  • Clean output formatting

Parameters

Optional Parameters

  • seed (integer, default: None): Random seed. Leave blank to randomize the seed.
  • audio (array, default: None): Audio inputs for the model.
  • top_k (integer, default: 50): The number of highest probability tokens to consider for generating the output. If > 0, only keep the top k tokens with highest probability (top-k filtering).
  • top_p (number, default: 0.9): A probability threshold for generating the output. If < 1.0, only keep the top tokens with cumulative probability >= top_p (nucleus filtering). Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751).
  • prompt (string, default: ): User prompt to send to the model.
  • max_tokens (integer, default: 512): The maximum number of tokens the model should generate as output.
  • min_tokens (integer, default: 0): The minimum number of tokens the model should generate as output.
  • temperature (number, default: 0.6): The value used to modulate the next token probabilities.
  • chat_template (string, default: None): A template to format the prompt with. If not provided, the default prompt template will be used.
  • system_prompt (string, default: None): System prompt to send to the model.The chat template provides a good default.

How to Use

  1. Set up your Replicate API key in the workflow
  2. Configure the required parameters for your use case
  3. Run the workflow to generate text content
  4. Access the generated output from the final node

API Reference

Requirements

  • Replicate API key
  • n8n instance
  • Basic understanding of text generation parameters