AI SeedbankHelp preserve open and free AI for humanity's future

← All models

ibm-granite_granite-speech-3.2-8b

ibm-granite · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 language:

  • en base_model:
  • ibm-granite/granite-3.2-8b-instruct library_name: transformers new_version: ibm-granite/granite-speech-3.3-8b

Granite-speech-3.2-8b

Model Summary: Granite-speech-3.2-8b is a compact and efficient speech-language model, specifically designed for automatic speech recognition (ASR) and automatic speech translation (AST). Granite-speech-3.2-8b uses a two-pass design, unlike integrated models that combine speech and language into a single pass. Initial calls to granite-speech-3.2-8b will transcribe audio files into text. To process the transcribed text using the underlying Granite language model, users must make a second call as each step must be explicitly initiated.

The model was trained on a collection of public corpora comprising diverse datasets for ASR and AST as well as synthetic datasets tailored to support the speech translation task. Granite-speech-3.2 was trained by modality aligning granite-3.2-8b-instruct (https://huggingface.co/ibm-granite/granite-3.2-8b-instruct) to speech on publicly available open source corpora containing audio inputs and text targets.

Evaluations:

We evaluated granite-speech-3.2-8b alongside other speech-language models (SLMs) in the less than 8b parameter range as well as dedicated ASR and AST systems on standard benchmarks. The evaluation spanned multiple public benchmarks, with particular emphasis on English ASR tasks while also including AST for En-X translation.

Release Date: April 2nd, 2025

License: Apache 2.0

Supported Languages: English

Intended Use: The model is intended to be used in enterprise applications that involve processing of speech inputs. In particular, the model is well-suited for English speech-to-text and speech translations from English to some major European languages such as French, Spanish, Italian, German, Portuguese as well as Japanese and Mandarin. For tasks that exclusively involve text-based input, we suggest using our Granite large language models, which are optimized for text-only processing and offer superior performance compared to this model.

Generation:

Granite Speech model is in the process of being supported natively in transformers from the main branch. In the interim, below is a simple example of how to use the granite-speech-3.2-8b model.

Usage with transformers

First, make sure to build the latest version of transformers:

pip install transformers>=4.49 peft torchaudio

Install a torchaudio backend, such as:

pip install soundfile

Then run the code:

import torch
import torchaudio
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
from huggingface_hub import hf_hub_download

device = "cuda" if torch.cuda.is_available() else "cpu"

model_name = "ibm-granite/granite-speech-3.2-8b"
speech_granite_processor = AutoProcessor.from_pretrained(
    model_name, trust_remote_code=True)
tokenizer = speech_granite_processor.tokenizer
speech_granite = AutoModelForSpeechSeq2Seq.from_pretrained(
    model_name, trust_remote_code=True).to(device)

# prepare speech and text prompt, using the appropriate prompt template

audio_path = hf_hub_download(repo_id=model_name, filename='10226_10111_000000.wav')
wav, sr = torchaudio.load(audio_path, normalize=True)
assert wav.shape[0] == 1 and sr == 16000 # mono, 16khz

# create text prompt
chat = [
    {
        "role": "system",
        "content": "Knowledge Cutoff Date: April 2024.\nToday's Date: December 19, 2024.\nYou are Granite, developed by IBM. You are a helpful AI assistant",
    },
    {
        "role": "user",
        "content": "<|audio|>can you transcribe the speech into a written format?",
    }
]

text = tokenizer.apply_chat_template(
    chat, tokenize=False, add_generation_prompt=True
)

# compute audio embeddings
model_inputs = speech_granite_processor(
    text,
    wav,
    device=device, # Computation device; returned tensors are put on CPU
    return_tensors="pt",
).to(device)
 
model_outputs = speech_granite.generate(
    **model_inputs,
    max_new_tokens=200,
    num_beams=4,
    do_sample=False,
    min_length=1,
    top_p=1.0,
    repetition_penalty=1.0,
    length_penalty=1.0,
    temperature=1.0,
    bos_token_id=tokenizer.bos_token_id,
    eos_token_id=tokenizer.eos_token_id,
    pad_token_id=tokenizer.pad_token_id,
)

# Transformers includes the input IDs in the response.
num_input_tokens = model_inputs["input_ids"].shape[-1]
new_tokens = torch.unsqueeze(model_outputs[0, num_input_tokens:], dim=0)

output_text = tokenizer.batch_decode(
    new_tokens, add_special_tokens=False, skip_special_tokens=True
)
print(f"STT output = {output_text[0].upper()}")

Model Architecture:

The architecture of granite-speech-3.2-8b consists of the following components:

(1) Speech encoder: 10 conformer blocks trained with Connectionist Temporal Classification (CTC) on character-level targets on the subset containing only ASR corpora (see configuration below). In addition, our CTC encoder uses block-attention with 4-seconds audio blocks and self-conditioned CTC from the middle layer.

Configuration parameter Value
Input dimension 160 (80 logmels x 2)
Nb. of layers 10
Hidden dimension 1024
Nb. of attention heads 8
Attention head size 128
Convolution kernel size 15
Output dimension 42

(2) Speech projector and temporal downsampler (speech-text modality adapter): we use a 2-layer window query transformer (q-former) operating on blocks of 15 1024-dimensional acoustic embeddings coming out of the last conformer block of the speech encoder that get downsampled by a factor of 5 using 3 trainable queries per block and per layer. The total temporal downsampling factor is 10 (2x from the encoder and 5x from the projector) resulting in a 10Hz acoustic embeddings rate for the LLM. The encoder, projector and LoRA adapters were fine-tuned/trained jointly on all the corpora mentioned under Training Data.

(3) Large language model: granite-3.2-8b-instruct with 128k context length (https://huggingface.co/ibm-granite/granite-3.2-8b-instruct).

(4) LoRA adapters: rank=64 applied to the query, value projection matrices

Training Data:

Overall, our training data is largely comprised of two key sources: (1) publicly available datasets (2) Synthetic data created from publicly available datasets specifically targeting the speech translation task. A detailed description of the training datasets can be found in the table below:

Name Task Nb. hours Source
CommonVoice-17 English ASR 2600 https://huggingface.co/datasets/mozilla-foundation/common_voice_17_0
MLS English ASR 44000 https://huggingface.co/datasets/facebook/multilingual_librispeech
Librispeech ASR 1000 https://huggingface.co/datasets/openslr/librispeech_asr
VoxPopuli English ASR 500 https://huggingface.co/datasets/facebook/voxpopuli
AMI ASR 100 https://huggingface.co/datasets/edinburghcstr/ami
YODAS English ASR 10000 https://huggingface.co/datasets/espnet/yodas
CommonVoice-17 En->Ja AST 2600 translated with granite-3.2-8b and phi-4
CommonVoice-17 En->De AST 2600 translated with granite-3.2-8b and phi-4
MLS English other 44000 transcripts description provided by granite-3.1-8b
CREMA-D SER 3 https://github.com/CheyneyComputerScience/CREMA-D
MELD SER 7 https://github.com/declare-lab/MELD

Infrastructure: We train Granite Speech using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs. The training of this particular model was completed in 10 days on 32 H100 GPUs.

Ethical Considerations and Limitations: The use of Large Speech and Language Models may involve risks and ethical considerations that people should be aware of. These risks may include bias and fairness, misinformation, and autonomous decision-making. We urge the community to use granite-speech-3.2-8b in a manner consistent with IBM's Responsible Use Guide or similar responsible use structures. IBM recommends using this model for automatic speech recognition tasks. The model's modular design improves safety by limiting how audio inputs can influence the system. If an unfamiliar or malformed prompt is received, the model simply echoes it with its transcription. This minimizes the risk of adversarial inputs, unlike integrated models that directly interpret audio and may be more exposed to such attacks. Note that more general speech tasks may pose higher inherent risks of triggering unwanted outputs.

To enhance safety, we recommend using granite-speech-3.2-8b alongside Granite Guardian. Granite Guardian is a fine-tuned instruct model designed to detect and flag risks in prompts and responses across key dimensions outlined in the IBM AI Risk Atlas. Its training, which includes both human-annotated and synthetic data informed by internal red-teaming, enables it to outperform similar open-source models on standard benchmarks, providing an additional layer of safety.

Resources

  • ⭐️ Learn about the latest updates with Granite: https://www.ibm.com/granite
  • 🚀 Get started with tutorials, best practices, and prompt engineering advice: https://www.ibm.com/granite/docs/
  • 💡 Learn about the latest Granite learning resources: https://ibm.biz/granite-learning-resources

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:ea7cf505664557ddccc8f772c5db5724f33f7822&dn=ibm-granite_granite-speech-3.2-8b

Open magnet in torrent client · infohash ea7cf505664557ddccc8f772c5db5724f33f7822

Files & hashes

PathSizesha1sha256
10226_10111_000000.wav527.2 KB (539,884 B)8a1f6251cb2bf2e0d0d7bdeb704b86ea96793e856ee3e432f4ce88415747f0549628bfef0df742365813d38b18bf28067a40cd51
README.md10.0 KB (10,288 B)c03ccbd9311ebc4c3afde92385d0bbe9f3a1e13802942d315d657bfbc185a5f35ce4a954fbc4193cce88187cd72df29156a80ec6
adapter_config.json717 B (717 B)5ac93561a900b51da70c0dd06b9da7eaeff434aa35819d927a7285e9fc7995566c8603acd4a21410b591083683d5147bd2380e29
adapter_model.safetensors65.0 MB (68,178,800 B)b1451adf6f8a8b760578feb5a601c541737ef84ae5795a9e05dcf02b82e6e3c934ac68b7e5c1522bdc9c7c86fb7a61f846d5adf7
added_tokens.json109 B (109 B)6b45ec6918e86f74fa56f29dcbabe6de8362fe79a1dc6b8e5c3230bda9bc11b1467db9bab30632a407356db19fa686faa3833271
config.json2.7 KB (2,787 B)1768680eba03ec7d0169729a5f72545bbd569693e01c0411584f9b3e5090c53d5650fab6960f7f0b225f53c5ef36a9e9775e7131
configuration_granite_speech.py4.4 KB (4,539 B)9aa1d2aad65d6429c2a1ed0e8d60290227cf41a04161358cd5b5fefd299c751ae085618202009fd77e862a9b1b29b42b7507d565
generation_config.json137 B (137 B)fc0dd583286ae7ebbe2df2e722cd15ad6ed21f0fb1a3c4f3e690c4ae30146444849b3e176c41d83f3e88fa7f571580d167db5308
merges.txt431.5 KB (441,810 B)f8479fb696fe07332c55300a6accf8cc191acc6a303127a244b0078878156c17229f36d11b7a3a3f8e47b7cfdbb304ff46be5030
model-00001-of-00009.safetensors1.86 GB (1,996,591,848 B)7a44b25371fbc94461cd45b67fb071177524195d3995536316905c2e9216bea3060c531be819405bf74816a7813f9eb7750bf5f0
model-00002-of-00009.safetensors1.86 GB (1,992,382,192 B)0f40aacad2ef1414b9214e59f713e60433d5add05aa399b0955532caf6add8c5bccfd85d7707121df4a929dbeb920ad2e63debf9
model-00003-of-00009.safetensors1.86 GB (1,992,382,224 B)51e0f43eeecd89a98cfd0571a47c76248b5db65bca6984101e4527c30a6686422385c938bddd68464ba2568afaac4546d553ad06
model-00004-of-00009.safetensors1.86 GB (1,992,382,232 B)8b6f7391abea846e3fbc6be86ff8a7a524d4908de481f464ba3c5a092f0f6e4603efd00f31d888f467fe67f0d229ccc2ff5837fa
model-00005-of-00009.safetensors1.86 GB (1,992,382,232 B)49429f7f4660c000a748b3ec3af711bd7471e050f0173f47577f467112f60c49d45bf064992b208a1684a34fbf7a51bd1323a7dd
model-00006-of-00009.safetensors1.86 GB (1,992,382,232 B)7a808376ea972fa98440657ed127b38b018fab7fe7ec084d5412236e866a3c11bb8159379fcbc927fefd36256c112e7bcb702864
model-00007-of-00009.safetensors1.86 GB (1,992,382,232 B)a6d8a63c8e3e1981930ccb2de820adf47abc7e9ee24b8776b8347f07dd4fe08d0c46d1512da72050adecb9cbf699ce75596c60a6
model-00008-of-00009.safetensors1.86 GB (1,992,382,232 B)a53814632d13b65c77701b30f2da0665673d876491a59d704ffc2986c21fdd5d0706bea4eb3097ffc4186d1f33620798fd8d91ef
model-00009-of-00009.safetensors976.4 MB (1,023,820,908 B)f16d32f96f1a340e709f786c9b1e9e077f769735498899241400eadac5627b03129bbcb758d75ec05265e0037f2a51c021f51b36
model.safetensors.index.json66.5 KB (68,110 B)7e796e99286f56bfd8c76ae380133c0faf977a9c4956330df4e3eba95da6bb0329dc811fe2b487ffa1b86747df91badc61ce14df
modeling_granite_speech.py61.2 KB (62,624 B)aa0bfd7070674ea4d1945aa46066efe532162cb92ff1c8f8135612a9b32ed8e05c125c25c36578a1a7852cfba1943b87c160caa2
preprocessor_config.json2 B (2 B)9e26dfeeb6e641a33dae4961196235bdb965b21b44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
processing_granite_speech.py9.9 KB (10,089 B)0ae231226e100b13cdeda21986788105faa92f6b356da43aa87d21d378722ae37858f0b19b59f5970c4118611fba0565c9f69738
special_tokens_map.json701 B (701 B)386500a5040da66c6db3d8b9c44ccd1ee202c744596d752bf46f5cace1f6826b52ed7d913347a4eea0ecce8ab2f869471ca40369
tokenizer.json3.3 MB (3,475,991 B)25123658fa21a8e1f59c2bdf092f5cfc7126d139c919158c0105236eff2de3386aa317a79046ddaa4d03cd1475990253401c02b2
tokenizer_config.json8.8 KB (9,050 B)36fba8ab05780628e5a730030dd4495c2f43c0ee1308d6a38827659c32dd3230ed9dbed49f2eb7e78856a1e54422215a04b6311f
vocab.json758.8 KB (776,995 B)0a11f2016e660fd490f7bf168e6d1f9c86a8f74480ab859339a2525fdfbda14bc39df02dffb824aefdaf86426217bbb146d17e01

Cite this release

Canonical URL
https://aiseedbank.org/models/ibm-granite_granite-speech-3.2-8b/
Slug
ibm-granite_granite-speech-3.2-8b
Infohash
ea7cf505664557ddccc8f772c5db5724f33f7822
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: ibm-granite_granite-speech-3.2-8b.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryibm-granite/granite-speech-3.2-8b
Revision (pinned)d5835026ead54ba48927de4f6ed12b67848444f3
Fetched at2026-09-04T00:40:26Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T00:46:02Z

apache-2.015.87 GB (17,040,670,965 bytes)transformerssafetensorsgranite_speechautomatic-speech-recognitioncustom_codeendpoints_compatible1 language (en)