alt.freeweights.granite / granite-embedding-30m-english-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.graniteSubject:

granite-embedding-30m-english-ONNX

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

Sentence similarity model. Onnx weights, 345 MB in all. Published by onnx-community under Apache-2.0.

granite345MBgranite-embedding-30m-english-ONNXonnxpermissive
FactsParamsnot statedSize345 MBFormatsonnxTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/granite-embedding-30m-english-ONNX
# manifest sha256 c3ad0b3991f0… · 345 MB · 18 files
$ fw verify ./granite-embedding-30m-english-ONNX onnx-community/granite-embedding-30m-english-ONNX
From sourceHosted (signed)onnx-community/granite-embedding-30m-english-ONNXLast check: 2026-11-15 05:12 UTC

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

Quantized of granite-embedding-30m-english.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Evaluate with

Scan with

Overview

Size
345 MB
Weights
30.5 MB (smallest of 5 ONNX variants)
Parameters
not stated
Formats
onnx
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
18, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.granite
Lineage

Original release from the publisher.

Base model: ibm-granite/granite-embedding-30m-english

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 05:12 UTCpassed

Model card

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

Granite-Embedding-30m-English (revision r1.1)#

Model Summary: Granite-Embedding-30m-English is a 30M parameter dense bi-encoder embedding model from the Granite Embeddings suite that can be used to generate high quality text embeddings. This model produces embedding vectors of size 384 and is trained using a combination of open source relevance-pair datasets with permissive, enterprise-friendly license, and IBM collected and generated datasets. While maintaining competitive scores on academic benchmarks such as BEIR, this model also performs well on many enterprise use cases. This model is developed using retrieval oriented pre-training, contrastive fine-tuning, knowledge distillation and model merging for improved performance.

Granite-embedding-30m-r1.1 was specifically designed to support multi-turn information retrieval and is designed to handle contextual document retrieval in multi-turn conversational information retrieval. Granite-embedding-30m-r1.1 was trained on data tailored for multi-turn conversational information retrieval and uses multi-teacher distillation over granite-embedding-30m-english (https://huggingface.co/ibm-granite/granite-embedding-30m-english)

Supported Languages: English.

Intended use: The model is designed to produce fixed length vector representations for a given text, which can be used for text similarity, retrieval, and search applications.

Usage with Transformers.js:

This is a simple example of how to use the granite-embedding-small-english-r2 model with the Transformers.js library.

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

The model can then be used to encode pairs of text

import { AutoModel, AutoTokenizer, matmul } from "@huggingface/transformers";

// Download from the 🤗 Hub
const model_id = "onnx-community/granite-embedding-30m-english-ONNX";
const tokenizer = await AutoTokenizer.from_pretrained(model_id);
const model = await AutoModel.from_pretrained(model_id, {
  dtype: "fp32", // Options: "fp32" | "fp16" | "q8" | "q4" | "q4f16"
});

// Prepare queries and documents
const input_queries = [
  " Who made the song My achy breaky heart? ",
  "summit define",
];
const input_passages = [
  "Achy Breaky Heart is a country song written by Don Von Tress. Originally titled Don't Tell My Heart and performed by The Marcy Brothers in 1991. ",
  "Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments.",
];
const inputs = await tokenizer([...input_queries, ...input_passages], {
  padding: true,
});

// Generate embeddings
const { sentence_embedding } = await model(inputs);
const normalized_sentence_embedding = sentence_embedding.normalize();

// Compute similarities
const scores = await matmul(
  normalized_sentence_embedding.slice([0, input_queries.length]),
  normalized_sentence_embedding
    .slice([input_queries.length, null])
    .transpose(1, 0),
);
const scores_list = scores.tolist();
console.log(scores_list);
// [
//   [ 0.84034663438797, 0.498334139585495 ],
//   [ 0.4650711715221405, 0.5818834900856018 ]
// ]

Evaluation:

Granite-Embedding-30M-English model is twice as fast as other models with similar embedding dimensions, while maintaining competitive performance. The performance of the Granite-Embedding-30M-English model on MTEB Retrieval (i.e., BEIR) and code retrieval (CoIR) benchmarks is reported below.

ModelParamters (M)Embedding DimensionMTEB Retrieval (15)CoIR (10)
granite-embedding-30m-english3038449.147.0

granite-embedding-30m-r1.1 revision maintains the fast speed of granite-embedding-30m-english while demontratring strong performance on multi-turn information retrieval benchmarks. The performance of the granite-embedding-30M-r1.1 model on MTEB Retrieval (i.e., BEIR) and multi-turn information retrieval (MTRAG(https://github.com/IBM/mt-rag-benchmark), Multidoc2dial(https://github.com/IBM/multidoc2dial)) datasets is reported below.

ModelParameters (M)Embedding DimensionMTEB Retrieval (15)MT-RAGMdoc2dial
granite-embedding-30m-english3038449.149.1685.42
granite-embedding-30m-english-r1.13038448.952.3385.78
bge-small-en-v1.53351253.8638.2683.71
e5-small-v23338448.4628.7275.7

Model Architecture: granite-embedding-30m-English is based on an encoder-only RoBERTa like transformer architecture, trained internally at IBM Research. granite-embedding-30m-r1.1 shares the same architecture as granite-embedding-30m-English

Modelgranite-embedding-30m-englishgranite-embedding-125m-englishgranite-embedding-107m-multilingualgranite-embedding-278m-multilingual
Embedding size384768384768
Number of layers612612
Number of attention heads12121212
Intermediate size1536307215363072
Activation FunctionGeLUGeLUGeLUGeLU
Vocabulary Size5026550265250002250002
Max. Sequence Length512512512512
# Parameters30M125M107M278M

Training Data: Overall, the training data consists of four key sources: (1) unsupervised title-body paired data scraped from the web, (2) publicly available paired with permissive, enterprise-friendly license, (3) IBM-internal paired data targeting specific technical domains, and (4) IBM-generated synthetic data. The data is listed below:

DatasetNum. Pairs
SPECTER citation triplets684,100
Stack Exchange Duplicate questions (titles)304,525
Stack Exchange Duplicate questions (bodies)250,519
Stack Exchange Duplicate questions (titles+bodies)250,460
Natural Questions (NQ)100,231
SQuAD2.087,599
PAQ (Question, Answer) pairs64,371,441
Stack Exchange (Title, Answer) pairs4,067,139
Stack Exchange (Title, Body) pairs23,978,013
Stack Exchange (Title+Body, Answer) pairs187,195
S2ORC Citation pairs (Titles)52,603,982
S2ORC (Title, Abstract)41,769,185
S2ORC (Citations, abstracts)52,603,982
WikiAnswers Duplicate question pairs77,427,422
SearchQA582,261
HotpotQA85,000
Fever109,810
Arxiv2,358,545
Wikipedia20,745,403
PubMed20,000,000
Miracl En Pairs9,016
DBPedia Title-Body Pairs4,635,922
Synthetic: Query-Wikipedia Passage1,879,093
Synthetic: Fact Verification9,888
IBM Internal Triples40,290
IBM Internal Title-Body Pairs1,524,586
MultiDoc2Dial Train (MultiTurn Conversation)21,451
Synthetic IBM internal data19,533

Notably, we do not use the popular MS-MARCO retrieval dataset in our training corpus due to its non-commercial license, while other open-source models train on this dataset due to its high quality.

Infrastructure: We train Granite Embedding Models using IBM's computing cluster, Cognitive Compute Cluster, which is outfitted with NVIDIA A100 80gb GPUs. This cluster provides a scalable and efficient infrastructure for training our models over multiple GPUs.

Ethical Considerations and Limitations: The data used to train the base language model was filtered to remove text containing hate, abuse, and profanity. Granite-embedding-30m-english and Granite-embedding-30m-r1.1 are trained only for English texts, and has a context length of 512 tokens (longer texts will be truncated to this size).

Resources

Files

18 files · 345 MBWeights 30.5 MB (smallest of 5 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.83 KBba44193cf00eb237e2824cbfa212775d626f48f7c4caa3e630deda0908552db2
README.md10.7 KB6403a2a9c81b6dea7cffc0f84104da8baa880005b09f0c9ad685f610d961c892
config.json837 Bf04e3bf6a4f91d79b30a51a7e4bff9e81fe6e6cf2821ebc9d15ead96f7a08733
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
onnx/model.onnx58.4 KB5115a521ab3d1fd0b1e824a6dffa7177911e5558107648800978482e56d11c42
onnx/model.onnx_data121 MB3f4d9c7eb9954f20123399efeb31ce6801104a717612bd114afa3cdf25115baa
onnx/model_fp16.onnx98.4 KB4ca129841ccadc740e9a1508293a391c39c98cb593bb9e493cef4eec5691b15f
onnx/model_fp16.onnx_data60.3 MB333edd3ea491f7aa33afe9585670260b074df5ec27f9e0a7b187892141706769
onnx/model_q4.onnx71.3 KBd601d607049209e8f21f117efc616134ac83324d65906ebf48f19f8abb82a7cd
onnx/model_q4.onnx_data84.8 MB764f0a3476adad3b527de53fa8605cd6abb63f325ee65f655dddbd9752f5843e
onnx/model_q4f16.onnx111 KB15cb1e7f48f9013fc772c02d1d2b07de8bbbe46ae693c132fcb95fdaa441a4d7
onnx/model_q4f16.onnx_data45.0 MB870d15f56269abfc775ae2123d274a821a3fbc282c70fd4cfda9ce5db7f6ffea
onnx/model_quantized.onnx213 KB6f479f3970cfec8d7bea633057a29730f4c6c33c02751e2bb89e40ed1fd34677
onnx/model_quantized.onnx_data30.2 MBbbd61688b25370a6accfe12fb023bc16ebb643150316e3a90ee5b5de2369d589
special_tokens_map.json957 B8293ae960b0a0852d4d3813118030a1149a3ed9fe37bc2e1e7b3c2e62eb2d4b7
tokenizer.json2.04 MBd50aea3cfe363bd71210fe0b52bf967d3a50de5aed625da3278f42cadf3b1062
tokenizer_config.json1.28 KB50ceb70e75fb89dae019a2688582ef54f3a7b79db33ba5cfafe3098b884d5227
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a141ffafe5 pinned now2026-11-15 05:12 UTC18 files · 345 MB

Use it

$ fw get onnx-community/granite-embedding-30m-english-ONNX
# manifest sha256 c3ad0b3991f0… · 345 MB · 18 files
$ fw verify ./granite-embedding-30m-english-ONNX onnx-community/granite-embedding-30m-english-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/granite-embedding-30m-english-ONNX.json --dir ./granite-embedding-30m-english-ONNX $ python3 fw.py verify ./granite-embedding-30m-english-ONNX ./onnx-community__granite-embedding-30m-english-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/granite-embedding-30m-english-ONNX --revision a141ffafe5810d8ee499de14086b5259527ed6ff --local-dir ./granite-embedding-30m-english-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
6403a2a9c81b6dea7cffc0f84104da8baa880005b09f0c9ad685f610d961c892
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.graniteSubject: granite-embedding-30m-english-ONNXDate: 2026-11-15Commit: a141ffaSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/granite-embedding-30m-english-ONNX
Pinned commit
a141ffafe5810d8ee499de14086b5259527ed6ff
Manifest
granite-embedding-30m-english-ONNX.json · .minisig
Manifest sha256
c3ad0b3991f0cc2ebd56415f89b51460b249e5569a6a7d764707990a21539f49
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:12 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/granite-embedding-30m-english-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/granite-embedding-30m-english-ONNX.json.minisig $ minisign -Vm granite-embedding-30m-english-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-embedding-30m-english · 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 onnx-community/granite-embedding-30m-english-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-embedding-30m-english-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