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

granite-embedding-english-r2

Date: 2026-11-14Commit: 47ea694Signed: 2DC28CC7B26A283B ✓

Feature extraction model with 149M parameters. Safetensors weights, 600 MB in all. Published by ibm-granite under Apache-2.0.

149M params600MBgranite-embedding-english-r2safetensorspermissive
FactsParams149MSize600 MBFormatssafetensorsTaskfeature extractionLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-embedding-english-r2
# manifest sha256 87a9fec4b67a… · 600 MB · 11 files
$ fw verify ./granite-embedding-english-r2 ibm-granite/granite-embedding-english-r2
From sourceHosted (signed)ibm-granite/granite-embedding-english-r2Last 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
600 MB
Weights
298 MB (safetensors)
Parameters
149M
Formats
safetensors
Task
feature extraction
License
Apache-2.0 (permissive)
Files
11, 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 47ea694. Shown as plain text with links; images open at the publisher.

Granite-Embedding-English-R2#

Model Summary: Granite-embedding-english-r2 is a 149M parameter dense biencoder embedding model from the Granite Embeddings collection that can be used to generate high quality text embeddings. This model produces embedding vectors of size 768 based on context length of upto 8192 tokens. 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.

The r2 models show strong performance across standard and IBM-built information retrieval benchmarks (BEIR, ClapNQ), code retrieval (COIR), long-document search benchmarks (MLDR, LongEmbed), conversational multi-turn (MTRAG), table retrieval (NQTables, OTT-QA, AIT-QA, MultiHierTT, OpenWikiTables), and on many enterprise use cases.

These models use a bi-encoder architecture to generate high-quality embeddings from text inputs such as queries, passages, and documents, enabling seamless comparison through cosine similarity. Built using retrieval oriented pretraining, contrastive finetuning, knowledge distillation, and model merging, granite-embedding-english-r2 is optimized to ensure strong alignment between query and passage embeddings.

The latest granite embedding r2 release introduces two English embedding models, both based on the ModernBERT architecture:

  • 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 Details#

Usage#

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.

For efficient decoding, these models use Flash Attention 2. Installing it is optional, but can lead to faster inference.

pip install flash_attn==2.6.1

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-english-r2"
# 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. The model produces unnormalized vectors. If your task requires normalized embeddings pass normalize_embeddings=True to encode as below.
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-english-r2 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-english-r2"

# 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-278m-multilingual uses CLS Pooling
    query_embeddings = model_output[0][:, 0]

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

Evaluation Results#

Granite embedding r2 models show a strong performance across tasks diverse tasks.

Performance of the granite models on MTEB Retrieval (i.e., BEIR), MTEB-v2, code retrieval (CoIR), long-document search benchmarks (MLDR, LongEmbed), conversational multi-turn (MTRAG), table retrieval (NQTables, OTT-QA, AIT-QA, MultiHierTT, OpenWikiTables), benchmarks is reported in the below tables.

The r2 models demonstrates speed and efficiency, while mainintaining competitive performance. The average speed to encode documents on a single H100 GPU using a sliding window with 512 context length chunks is also reported.

ModelParameters (M)Embedding SizeBEIR Retrieval (15)MTEB-v2 (41)CoIR (10)MLDR (En)MTRAG (4)Encoding Speed (docs/sec)
granite-embedding-125m-english12576852.362.150.335.049.4149
granite-embedding-30m-english3038449.160.247.032.648.6198
granite-embedding-english-r214976853.162.855.340.756.7144
granite-embedding-small-english-r24738450.961.153.839.848.1199
ModelParameters (M)Embedding SizeAVERAGEMTEB-v2 Retrieval (10)CoIR (10)MLDR (En)LongEmbed (6)Table IR (5)MTRAG(4)Encoding Speed (docs/sec)
e5-base-v210976847.549.750.332.541.174.0937.0115
bge-base-en-v1.510976846.954.846.633.533.973.9838.8116
snowflake-arctic-embed-m-v2.030576851.458.452.232.455.480.7529.2106
gte-base-en-v1.513776852.855.542.442.759.480.5236.0116
gte-modernbert-base14976857.557.071.546.257.076.6836.8142
nomic-ai/modernbert-embed-base14976848.048.748.831.356.366.6936.2141
granite-embedding-english-r214976859.556.454.841.667.878.5357.6144
granite-embedding-small-english-r24738455.653.953.440.161.975.5148.9199
Model Architecture and Key Features#

The latest granite embedding r2 release introduces two English embedding models, both based on the ModernBERT architecture:

  • 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.

The following table shows the structure of the two models:

Modelgranite-embedding-small-english-r2granite-embedding-english-r2
Embedding size384768
Number of layers1222
Number of attention heads1212
Intermediate size15361152
Activation FunctionGeGLUGeGLU
Vocabulary Size5036850368
Max. Sequence Length81928192
# Parameters47M149M
Training and Optimization#

The granite embedding r2 models incorporate key enhancements from the ModernBERT architecture, including:

  • Alternating attention lengths to accelerate processing
  • Rotary position embeddings for extended sequence length
  • A newly trained tokenizer optimized with code and text data
  • Flash Attention 2.0 for improved efficiency
  • Streamlined parameters, eliminating unnecessary bias terms

Data Collection#

Granite embedding r2 models are trained using data from 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
  4. IBM-generated synthetic data

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

The underlying encoder models using GneissWeb, an IBM-curated dataset composed exclusively of open, commercial-friendly sources.

For governance, all our data undergoes a data clearance process subject to technical, business, and governance review. This comprehensive process captures critical information about the data, including but not limited to their content description ownership, intended use, data classification, licensing information, usage restrictions, how the data will be acquired, as well as an assessment of sensitive information (i.e, personal information).

Infrastructure#

We trained the granite embedding english r2 models using IBM's computing cluster, BlueVela Cluster, which is outfitted with NVIDIA H100 80GB GPUs. This cluster provides a scalable and efficient infrastructure for training our models over multiple GPUs.

Ethical Considerations and Limitations#

Granite-embedding-english-r2 leverages both permissively licensed open-source and select proprietary data for enhanced performance. The training data for the base language model was filtered to remove text containing hate, abuse, and profanity. Granite-embedding-english-r2 is trained only for English texts, and has a context length of 8192 tokens (longer texts will be truncated to this size).

Citation#

@misc{awasthy2025graniteembeddingr2models,
      title={Granite Embedding R2 Models}, 
      author={Parul Awasthy and Aashka Trivedi and Yulong Li and Meet Doshi and Riyaz Bhat and Vignesh P and Vishwajeet Kumar and Yushu Yang and Bhavani Iyer and Abraham Daniels and Rudra Murthy and Ken Barker and Martin Franz and Madison Lee and Todd Ward and Salim Roukos and David Cox and Luis Lastras and Jaydeep Sen and Radu Florian},
      year={2025},
      eprint={2508.21085},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2508.21085}, 
}

Files

11 files · 600 MBWeights 298 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
1_Pooling/config.json191 Bd81961da36b56f4a1abfbf59a2469e1c49efa04b94a876908c48780894b0b307
README.md12.5 KB33d4e07d3547d1a0110fddc5838986c7ffbb2f8b04573e04b75cfb0d8b19f277
config.json1.31 KBbc4ad4e8cd50c0069292863117823f665da70bbbdea40fd4ea77d80609ade241
model.safetensors298 MB23bd9625b32680f180703408ed9d8d7b3a9c1efe4c950111e3ae9d9695b21b29
modules.json230 B0580fad756940809b1bc064ce1e7c1275c8b0dd80869562fe0abeb6f7059cb97
pytorch_model.bin298 MB2ec36f187f6fde9a53f80ed264731d09743e7282ece9ae61a8f5d0b63f01c260
sentence_bert_config.json55 B23aa234ef6021d513cdf56947c07aaa6977000d85dcd1fd423f650b3382a39ca
special_tokens_map.json694 Bea97ecdbcc73713039d8d64dbb05e3689495c96657fbd9a18f5bed381be81049
tokenizer.json3.58 MB6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30
tokenizer_config.json20.8 KBc16f1b07f93d05be753ec0acf8cb511d895a8bdb09669f6b156df81e3f96c2eb
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
47ea694b25 pinned now manifest updated, same commit2026-11-14 21:16 UTC11 files · 600 MB
47ea694b252026-11-14 21:16 UTC11 files · 600 MB

Use it

$ fw get ibm-granite/granite-embedding-english-r2
# manifest sha256 87a9fec4b67a… · 600 MB · 11 files
$ fw verify ./granite-embedding-english-r2 ibm-granite/granite-embedding-english-r2
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-english-r2.json --dir ./granite-embedding-english-r2 $ python3 fw.py verify ./granite-embedding-english-r2 ./ibm-granite__granite-embedding-english-r2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-embedding-english-r2 --revision 47ea694b257b703fee9253d75c2b1f2985180498 --local-dir ./granite-embedding-english-r2
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-english-r2", revision="47ea694b257b703fee9253d75c2b1f2985180498") model = AutoModel.from_pretrained("ibm-granite/granite-embedding-english-r2", revision="47ea694b257b703fee9253d75c2b1f2985180498", 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-english-r2", revision="47ea694b257b703fee9253d75c2b1f2985180498") 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
33d4e07d3547d1a0110fddc5838986c7ffbb2f8b04573e04b75cfb0d8b19f277
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-english-r2Date: 2026-11-14Commit: 47ea694Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-embedding-english-r2
Pinned commit
47ea694b257b703fee9253d75c2b1f2985180498
Manifest
granite-embedding-english-r2.json · .minisig
Manifest sha256
87a9fec4b67a2be635084bdfe609ca31d60a5901981d9f97d8305e63cffaed78
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-english-r2.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-embedding-english-r2.json.minisig $ minisign -Vm granite-embedding-english-r2.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

1 model in the catalog name this one as their parent.

Fine-tunes
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-embedding-english-r2
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-english-r2.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