Model reference · open weights

granite-embedding-english

Embeddings ibm-granite Embeddings 2 builds Open weights 122k dl/mo

granite-embedding-english is an open-weight embedding model from IBM. granite-embedding-125m-english (BF16) weighs 249 MB; the smallest configuration that runs it is RTX 3060 12 GB.

  • Granite-Embedding-125m-English is a 125M parameter dense biencoder embedding model developed by IBM for generating text embeddings.
  • It is designed for sentence-similarity tasks, including text similarity, retrieval, and search applications.
  • The model supports English with a context length of 514 tokens and is distributed under the Apache 2.0 license.

Summary of the ibm-granite/granite-embedding-125m-english model card, 2026-10-01

What it is

Released byIBM
Released2024-12-04
Parameters125M
VRAM249 MB for the weights

What it runs on

Memory and cards for granite-embedding-125m-english (BF16)

249 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
granite-embedding-125m-english (above) ↗ 125MBF16 249 MBRTX 3060 12 GB
granite-embedding-30m-english ↗ 30MBF16 61 MBRTX 3060 12 GB

From the model card

What IBM says about granite-embedding-english

Read the model card

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,

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
ClassificationMTEB AmazonCounterfactualClassification (en-ext)accuracy67.361
ClassificationMTEB AmazonCounterfactualClassification (en-ext)f155.079
ClassificationMTEB AmazonCounterfactualClassification (en-ext)f1_weighted73.551
ClassificationMTEB AmazonCounterfactualClassification (en-ext)ap17.644
ClassificationMTEB AmazonCounterfactualClassification (en-ext)ap_weighted17.644
ClassificationMTEB AmazonCounterfactualClassification (en-ext)main_score67.361
ClassificationMTEB AmazonCounterfactualClassification (en)accuracy63.403
ClassificationMTEB AmazonCounterfactualClassification (en)f157.418
ClassificationMTEB AmazonCounterfactualClassification (en)f1_weighted66.970
ClassificationMTEB AmazonCounterfactualClassification (en)ap26.892
ClassificationMTEB AmazonCounterfactualClassification (en)ap_weighted26.892
ClassificationMTEB AmazonCounterfactualClassification (en)main_score63.403
ClassificationMTEB AmazonPolarityClassification (default)accuracy64.587
ClassificationMTEB AmazonPolarityClassification (default)f164.333
ClassificationMTEB AmazonPolarityClassification (default)f1_weighted64.333
ClassificationMTEB AmazonPolarityClassification (default)ap59.602
ClassificationMTEB AmazonPolarityClassification (default)ap_weighted59.602
ClassificationMTEB AmazonPolarityClassification (default)main_score64.587
ClassificationMTEB AmazonReviewsClassification (en)accuracy33.534
ClassificationMTEB AmazonReviewsClassification (en)f132.539
ClassificationMTEB AmazonReviewsClassification (en)f1_weighted32.539
ClassificationMTEB AmazonReviewsClassification (en)main_score33.534
RetrievalMTEB AppsRetrieval (default)ndcg_at_16.932
RetrievalMTEB AppsRetrieval (default)ndcg_at_39.577
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms