alt.freeweights.granite / granite-embedding-125m-english
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-embedding-125m-english

Date: 2026-11-14Commit: 4ab61ffSigned: 2DC28CC7B26A283B ✓

Sentence similarity model with 125M parameters. Onnx and safetensors weights, 1.00 GB in all. Published by ibm-granite under Apache-2.0.

125M params1.00GBgranite-embedding-125m-englishonnx safetensorspermissive
FactsParams125MSize1.00 GBFormatsonnx, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-embedding-125m-english
# manifest sha256 2ce934d30a74… · 1.00 GB · 14 files
$ fw verify ./granite-embedding-125m-english ibm-granite/granite-embedding-125m-english
From sourceHosted (signed)ibm-granite/granite-embedding-125m-englishLast check: 2026-11-14 21:16 UTC

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

Works with

Evaluate with

Overview

Size
1.00 GB
Weights
249 MB (safetensors)
Parameters
125M
Formats
onnx, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
14, each with a sha256
Publisher
ibm-granite
Added
2026-11-14
Section
alt.freeweights.granite
Lineage

Original release from the publisher.

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-14 21:16 UTCpassed

Model card

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

Granite-Embedding-125m-English#

News: Granite Embedding R2 models with 8192 context length released.

  • granite-embedding-english-r2 (149M parameters): with an output embedding size of 768, replacing granite-embedding-125m-english.
  • granite-embedding-small-english-r2 (47M parameters): A first-of-its-kind reduced-size model, with fewer layers and a smaller output embedding size (384), replacing granite-embedding-30m-english.

Model Summary: Granite-Embedding-125m-English is a 125M parameter dense biencoder embedding model from the Granite Embeddings suite that can be used to generate high quality text embeddings. This model produces embedding vectors of size 768. Compared to most other open-source models, this model was only trained using open-source relevance-pair datasets with permissive, enterprise-friendly license, plus 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 pretraining, contrastive finetuning and knowledge distillation.

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 Sentence Transformers: The model is compatible with SentenceTransformer library and is very easy to use:

First, install the sentence transformers library

pip install sentence_transformers

The model can then be used to encode pairs of text and find the similarity between their representations

from sentence_transformers import SentenceTransformer, util

model_path = "ibm-granite/granite-embedding-125m-english"
# Load the Sentence Transformer model
model = SentenceTransformer(model_path)

input_queries = [
    ' Who made the song My achy breaky heart? ',
    'summit define'
    ]

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."
    ]

# encode queries and passages
query_embeddings = model.encode(input_queries)
passage_embeddings = model.encode(input_passages)

# calculate cosine similarity
print(util.cos_sim(query_embeddings, passage_embeddings))

Usage with Huggingface Transformers: This is a simple example of how to use the Granite-Embedding-125m-English model with the Transformers library and PyTorch.

First, install the required libraries

pip install transformers torch

The model can then be used to encode pairs of text

import torch
from transformers import AutoModel, AutoTokenizer

model_path = "ibm-granite/granite-embedding-125m-english"

# Load the model and tokenizer
model = AutoModel.from_pretrained(model_path)
tokenizer = AutoTokenizer.from_pretrained(model_path)
model.eval()

input_queries = [
    ' Who made the song My achy breaky heart? ',
    'summit define'
    ]

# tokenize inputs
tokenized_queries = tokenizer(input_queries, padding=True, truncation=True, return_tensors='pt')

# encode queries
with torch.no_grad():
    # Queries
    model_output = model(**tokenized_queries)
    # Perform pooling. granite-embedding-125m-english uses CLS Pooling
    query_embeddings = model_output[0][:, 0]

# normalize the embeddings
query_embeddings = torch.nn.functional.normalize(query_embeddings, dim=1)

Evaluation:

The performance of the Granite-Embedding-125M-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-125m-english12576852.350.3

Model Architecture: Granite-Embedding-125m-English is based on an encoder-only RoBERTa like transformer architecture, trained internally at IBM Research.

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 targetting 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

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-125m-English is trained only for English texts, and has a context length of 512 tokens (longer texts will be truncated to this size).

Resources

Files

14 files · 1.00 GBWeights 249 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
1_Pooling/config.json191 Bd81961da36b56f4a1abfbf59a2469e1c49efa04b94a876908c48780894b0b307
README.md466 KB99a36835a5651562a0c8c369223bd70140c926ee68005a0558cf961e2df45a94
config.json720 B03a972cfc5b95a0cc78c353b566adf9f28050012e65f0d963eb87ab5c5febc70
model.onnx499 MBd5a8fd811d55d90cbefb7b7434628629d69d06f9a8ad803fe941d75f44f66c62
model.safetensors249 MBee70cb80637b769409e4ccfde7d188bb2c564495d1a63cde3ca60741b2a7302d
modules.json350 B21ddb3037a55ebf4549eb5c1dc44c3f28f10b56ec7f1335c92fd90e5b30d88ac
pytorch_model.bin249 MB6c7f63729082870ffcd793b2b034c10880d1b84ad10887f649a19fd4b0608233
sentence_bert_config.json54 Bed20daeb5b882c3e1f116ce7b3d53e6643d11063aa9baaa31f5ae91770cfad8f
special_tokens_map.json957 B8293ae960b0a0852d4d3813118030a1149a3ed9fe37bc2e1e7b3c2e62eb2d4b7
tokenizer.json2.11 MB8f886f015981a7a64053bf0cadccb44b2bd761c3e90856c6fd32adf30d60f365
tokenizer_config.json1.32 KBa0d8f05ceb91e0024dadaa15d7bc8adbba60e405232b112162f85d7115198ced
trainer_state.json451 KB78011f2ffe3f2e2e26af89b135cf69fbc5d361a03c5737ec5fba1c6282c62e18
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
4ab61ffd42 pinned now manifest updated, same commit2026-11-14 21:16 UTC14 files · 1.00 GB
4ab61ffd422026-11-14 21:16 UTC14 files · 1.00 GB

Use it

$ fw get ibm-granite/granite-embedding-125m-english
# manifest sha256 2ce934d30a74… · 1.00 GB · 14 files
$ fw verify ./granite-embedding-125m-english ibm-granite/granite-embedding-125m-english
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-embedding-125m-english.json --dir ./granite-embedding-125m-english $ python3 fw.py verify ./granite-embedding-125m-english ./ibm-granite__granite-embedding-125m-english.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-embedding-125m-english --revision 4ab61ffd423be45cd932b21a7c696063d82bf45f --local-dir ./granite-embedding-125m-english
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("ibm-granite/granite-embedding-125m-english", revision="4ab61ffd423be45cd932b21a7c696063d82bf45f") model = AutoModel.from_pretrained("ibm-granite/granite-embedding-125m-english", revision="4ab61ffd423be45cd932b21a7c696063d82bf45f", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("ibm-granite/granite-embedding-125m-english", revision="4ab61ffd423be45cd932b21a7c696063d82bf45f") vectors = model.encode(["Hello"])

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-14
Text in
README.md
Text sha256
99a36835a5651562a0c8c369223bd70140c926ee68005a0558cf961e2df45a94
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-embedding-125m-englishDate: 2026-11-14Commit: 4ab61ffSigned: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-embedding-125m-english
Pinned commit
4ab61ffd423be45cd932b21a7c696063d82bf45f
Manifest
granite-embedding-125m-english.json · .minisig
Manifest sha256
2ce934d30a74bf40f084a20a14e732ae4b886a0a7d6091f796f51e3d4bc0bb64
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:16 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-embedding-125m-english.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-embedding-125m-english.json.minisig $ minisign -Vm granite-embedding-125m-english.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

2 models in the catalog name this one as their parent.

Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-embedding-125m-english
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-125m-english.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of granite-embedding-125m-english. Each has its own license check and page.

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