alt.freeweights.granite / granite-speech-5.0-2b-ONNX
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-speech-5.0-2b-ONNX

Date: 2026-11-15Commit: a9cf1d1Signed: 2DC28CC7B26A283B ✓

Automatic speech recognition model. Onnx weights, 1.73 GB in all. Published by ibm-granite under Apache-2.0.

granite1.73GBgranite-speech-5.0-2b-ONNXonnxpermissive
FactsParamsnot statedSize1.73 GBFormatsonnxTaskautomatic speech recognitionLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-speech-5.0-2b-ONNX
# manifest sha256 7831f7ba38e2… · 1.73 GB · 15 files
$ fw verify ./granite-speech-5.0-2b-ONNX ibm-granite/granite-speech-5.0-2b-ONNX
From sourceHosted (signed)ibm-granite/granite-speech-5.0-2b-ONNXLast check: 2026-11-15 04:59 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of granite-speech-5.0-2b.

Works with

Convert with

Scan with

Overview

Size
1.73 GB
Weights
119 MB (smallest of 3 ONNX variants)
Parameters
not stated
Formats
onnx
Task
automatic speech recognition
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
ibm-granite
Added
2026-11-15
Section
alt.freeweights.granite
Lineage

Original release from the publisher.

Base model: ibm-granite/granite-speech-5.0-2b

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:59 UTCpassed

Model card

From the publisher at commit a9cf1d1. Shown as plain text with links; images open at the publisher.

Granite-Speech-5.0-2B ONNX#

ONNX weights of ibm-granite/granite-speech-5.0-2b for in-browser inference with Transformers.js on WebGPU. These are the weights used by the granite-speech-webgpu demo.

fileprecisionsize
onnx/audio_encoder_q4.onnx4-bit weights, fp32 activations658 MB
onnx/embed_tokens_q4f16.onnx4-bit weights, fp16119 MB
onnx/decoder_model_merged_q4f16.onnx4-bit weights, fp16, KV cache948 MB

Weights are 4-bit, block size 32, asymmetric (MatMulNBits / GatherBlockQuantized).

Usage (Transformers.js >= 4.3)#

import { AutoProcessor, GraniteSpeechForConditionalGeneration } from '@huggingface/transformers';

const model_id = 'ibm-granite/granite-speech-5.0-2b-ONNX';
const processor = await AutoProcessor.from_pretrained(model_id);
const model = await GraniteSpeechForConditionalGeneration.from_pretrained(model_id, {
  dtype: { audio_encoder: 'q4', embed_tokens: 'q4f16', decoder_model_merged: 'q4f16' },
  device: 'webgpu',
});

const messages = [{ role: 'user', content: '<|audio|>transcribe the speech with proper punctuation and capitalization.' }];
const text = processor.tokenizer.apply_chat_template(messages, { add_generation_prompt: true, tokenize: false });
const inputs = await processor(text, audio /* Float32Array, 16 kHz mono */);
const ids = await model.generate({ ...inputs, max_new_tokens: 256 });
const output = processor.batch_decode(ids.slice(null, [inputs.input_ids.dims.at(-1), null]), { skip_special_tokens: true });

Transformers.js 4.3 or newer is required for WebGPU in Safari 26.

See the base model card for the supported tasks, prompts and languages.

How it was made#

granite-speech-5.0-2b has the same architecture as granite-speech-4.1-2b, except that the language model's rotary position embeddings use YaRN scaling (factor 4, up to 16384 positions). These files reuse the graphs of onnx-community/granite-speech-4.1-2b-ONNX with every weight re-derived from the 5.0 checkpoint:

  • direct weight copies, BatchNorm folded into the encoder depthwise convolutions, and the constant-folded Q-Former query self-attention, all recomputed from the 5.0 weights;
  • the decoder's rotary cos/sin caches regenerated from the model's own YaRN rotary embedding (16384 positions, attention scaling included);
  • 4-bit quantization with the same recipe as the 4.1 files (it reproduces them byte for byte when applied to the 4.1 weights).

Checks:

  • fp32 conversion: greedy transcripts identical to transformers on the bundled multilingual_sample.wav and LibriSpeech clips.
  • 4-bit files: 2.43% WER (2.31% normalized) on the 73-utterance hf-internal-testing/librispeech_asr_dummy set on the onnxruntime CPU EP, vs 2.70% for the 4.1 ONNX files under the same pipeline.

The decoder's logits are 1/8 of transformers' logits, the same as the 4.1 ONNX files; this does not change greedy decoding.

Files

15 files · 1.73 GBWeights 119 MB (smallest of 3 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.74 KBc0a02fe7c51e6b9d15328c1c211cdf3e2ecc31e1c0fe7ecdfe1a5cf0c4b819a6
README.md3.46 KBf1aa2b6c95c489cef1ded657715bc5faf0dfc612bd5943dcb9fe983851376b8d
chat_template.jinja193 Be3219da52634178f68696475ea4518ade9d1b5c9a71b825f28312b73afc432c0
config.json2.59 KB02b51bee4d1d43b5a97b3790b4bfa6b33eba10615b6e95a3a1b664ddc72ec793
generation_config.json234 B49e27b593a1057329889c68003977df06a12b1b2218568644c5bd45d5cba3e82
onnx/audio_encoder_q4.onnx349 KB65ea640f0557bc1c0bed768ed42ee12b0c0afd57ff22a1f202e91345d43f2ad4
onnx/audio_encoder_q4.onnx_data658 MB210bf66d52d0c8aced5dd0819f5d0958cd5f2cae75acde163fc49a78c3275a58
onnx/decoder_model_merged_q4f16.onnx437 KBfff26602eb8fc32e8861ef730b8db8ebdcba588599a6b82f8643aab86641448c
onnx/decoder_model_merged_q4f16.onnx_data948 MB74b722b1d979c0457049fb224b93a4d3d8b11e5c008e93d126382f080dedc38e
onnx/embed_tokens_q4f16.onnx1.06 KB5bd332cac37108126d86a686e1683bdcdc3ef62dc02caa99bdadad552a365cea
onnx/embed_tokens_q4f16.onnx_data119 MBb265c93bb0628ae21177033fd80bee89859210c9cc0674886ef9a8198ed5c687
preprocessor_config.json335 B8fe82953593c3bd01c3577e5849f4c659122074e2cca632138892f378f148167
processor_config.json415 Ba9da8ef4f301c6d189bb5aba7ecf1fa64eee4a752853ae3533d18def74149a27
tokenizer.json4.13 MB66e62df31f24dbae69a580f0eb05966504c8b5946d09bc1efbd1a2da1af5b5af
tokenizer_config.json675 B874a26731ee9f4f9932f8e2f21951ce08b36efb5e5b704a58d39d4c21b7a809d
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a9cf1d13d0 pinned now2026-11-15 04:59 UTC15 files · 1.73 GB

Use it

$ fw get ibm-granite/granite-speech-5.0-2b-ONNX
# manifest sha256 7831f7ba38e2… · 1.73 GB · 15 files
$ fw verify ./granite-speech-5.0-2b-ONNX ibm-granite/granite-speech-5.0-2b-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/ibm-granite/granite-speech-5.0-2b-ONNX.json --dir ./granite-speech-5.0-2b-ONNX $ python3 fw.py verify ./granite-speech-5.0-2b-ONNX ./ibm-granite__granite-speech-5.0-2b-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-speech-5.0-2b-ONNX --revision a9cf1d13d045d65813b4bc80bde8fdd62db4c35c --local-dir ./granite-speech-5.0-2b-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
f1aa2b6c95c489cef1ded657715bc5faf0dfc612bd5943dcb9fe983851376b8d
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject: granite-speech-5.0-2b-ONNXDate: 2026-11-15Commit: a9cf1d1Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-speech-5.0-2b-ONNX
Pinned commit
a9cf1d13d045d65813b4bc80bde8fdd62db4c35c
Manifest
granite-speech-5.0-2b-ONNX.json · .minisig
Manifest sha256
7831f7ba38e2bbebcc528a6354aec5eb76cdcd99d57f929bded7632d1b66560f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:59 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-speech-5.0-2b-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-speech-5.0-2b-ONNX.json.minisig $ minisign -Vm granite-speech-5.0-2b-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

ibm-granite/granite-speech-5.0-2b · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-speech-5.0-2b-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-speech-5.0-2b-ONNX.json. Provenance. Takedown history: none.
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed3
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3