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

granite-embedding-278m-multilingual

Date: 2026-11-14Commit: a9cb533Signed: 2DC28CC7B26A283B ✓

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

278M params2.80GBgranite-embedding-278m-multilingualonnx safetensorspermissive
FactsParams278MSize2.80 GBFormatsonnx, safetensorsTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-embedding-278m-multilingual
# manifest sha256 2ac65b1c57f0… · 2.80 GB · 13 files
$ fw verify ./granite-embedding-278m-multilingual ibm-granite/granite-embedding-278m-multilingual
From sourceHosted (signed)ibm-granite/granite-embedding-278m-multilingualLast 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
2.80 GB
Weights
556 MB (safetensors)
Parameters
278M
Formats
onnx, safetensors
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
13, 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 a9cb533. Shown as plain text with links; images open at the publisher.

Granite-Embedding-278m-multilingual#

Model Summary: Granite-Embedding-278M-Multilingual is a 278M parameter model from the Granite Embeddings suite that can be used to generate high quality text embeddings. This model produces embedding vectors of size 768 and is trained using a combination of open source relevance-pair datasets with permissive, enterprise-friendly license, and IBM collected and generated datasets. This model is developed using contrastive finetuning, knowledge distillation and model merging for improved performance.

Supported Languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite-Embedding-278M-Multilingual for languages beyond these 12 languages.

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-278m-multilingual"
# 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-278m-Multilingual 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-278m-multilingual"

# 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: The average performance of the Granite-Embedding-278M-Multilingual on Multilingual Miracl (across 18 langauges), Mintaka Retrieval (across 8 languages) and MTEB Retrieval for English (across 15 tasks), German (across 4 tasks), Spanish (across 2 tasks), Frenc (across 5 tasks), Japanese (across 2 tasks), Arabic (1 task), Korean (1 task) and Chinese (across 8 tasks) is reported below.

ModelParamters (M)Embedding DimensionMiracl (18)Mintaka Retrieval (8)MTEB English (15)MTEB German (4)MTEB Spanish (2)MTEB French (5)MTEB Japanese (2)MTEB Arabic (1)MTEB Korean (1)MTEB Chinese (8)
granite-embedding-278M-multilingual27876858.323.248.271.252.654.161.764.271.845.2

Model Architecture: Granite-Embedding-278m-Multilingual is based on an encoder-only XLM-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
Multilingual MC452,823,484
Multilingual Webhose12,369,322
English Wikipedia20,745,403
Multilingual Wikimedia2,911,090
Miracl Corpus (Title-Body)10,120,398
Stack Exchange Duplicate questions (titles)304,525
Stack Exchange Duplicate questions (titles)304,525
Stack Exchange Duplicate questions (bodies)250,519
Machine Translations of Stack Exchange Duplicate questions (titles)187,195
Stack Exchange (Title, Answer) pairs4,067,139
Stack Exchange (Title, Body) pairs23,978,013
Stack Exchange (Title, Body) pairs23,978,013
Machine Translations of Stack Exchange (Title+Body, Answer) pairs1,827,15
SearchQA582,261
S2ORC (Title, Abstract)41,769,185
WikiAnswers Duplicate question pairs77,427,422
CCNews614,664
XSum226,711
SimpleWiki102,225
Machine Translated Cross Lingual Parallel Corpora28,376,115
SPECTER citation triplets684,100
Machine Translations of SPECTER citation triplets4,104,600
Natural Questions (NQ)100,231
SQuAD2.087,599
HotpotQA85,000
Fever109,810
PubMed20,000,000
Multilingual Miracl Triples81,409
Multilingual MrTydi Triples48,715
Sadeeem Question Asnwering4,037
DBPedia Title-Body Pairs4,635,922
Synthetic: English Query-Wikipedia Passage1,879,093
Synthetic: English Fact Verification9,888
Synthetic: Multilingual Query-Wikipedia Passage300,266
Synthetic: Multilingual News Summaries37,489
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-278m-Multilingual is finetuned on 12 languages, and has a context length of 512 tokens (longer texts will be truncated to this size).

Resources

Files

13 files · 2.80 GBWeights 556 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
1_Pooling/config.json191 Bd81961da36b56f4a1abfbf59a2469e1c49efa04b94a876908c48780894b0b307
README.md610 KB5f899714f04d612484d6daeb2c9f9ab93680382ccaa95090643cc691f11c6633
config.json698 B1a0e6b783e85be5265ab4fa3a92b79c0d5fd733617fe3d3264411cf3e5d13c8e
model.onnx1.11 GBaefac97b384f92932a61a19900d41c870679d5b8e6ceb682768eb153d0e31c7d
model.safetensors556 MBb522423ae15d1a6fd48c55ef4f599c0c2c0737603da94e4b4815760c2c06ebac
modules.json350 B21ddb3037a55ebf4549eb5c1dc44c3f28f10b56ec7f1335c92fd90e5b30d88ac
pytorch_model.bin1.11 GBc1d9f400f9763ed18e1b9aeb560b03b19123b42946a8231184aa2ce06868dfa5
sentence_bert_config.json54 Bed20daeb5b882c3e1f116ce7b3d53e6643d11063aa9baaa31f5ae91770cfad8f
sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
special_tokens_map.json239 B378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tokenizer.json9.08 MB2a0d7366dd7780ea36cc42431dd74cd79289b783ab01acd33013fcc96865a8e9
tokenizer_config.json418 B0b3223bec744a0e449daf1ece51510681d25c935aaf16373039e836c3d94559e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a9cb533849 pinned now manifest updated, same commit2026-11-14 21:16 UTC13 files · 2.80 GB
a9cb5338492026-11-14 21:16 UTC13 files · 2.80 GB

Use it

$ fw get ibm-granite/granite-embedding-278m-multilingual
# manifest sha256 2ac65b1c57f0… · 2.80 GB · 13 files
$ fw verify ./granite-embedding-278m-multilingual ibm-granite/granite-embedding-278m-multilingual
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-278m-multilingual.json --dir ./granite-embedding-278m-multilingual $ python3 fw.py verify ./granite-embedding-278m-multilingual ./ibm-granite__granite-embedding-278m-multilingual.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-embedding-278m-multilingual --revision a9cb5338491faf32b73dd17b714a31821c021bbf --local-dir ./granite-embedding-278m-multilingual
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-278m-multilingual", revision="a9cb5338491faf32b73dd17b714a31821c021bbf") model = AutoModel.from_pretrained("ibm-granite/granite-embedding-278m-multilingual", revision="a9cb5338491faf32b73dd17b714a31821c021bbf", 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-278m-multilingual", revision="a9cb5338491faf32b73dd17b714a31821c021bbf") 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
5f899714f04d612484d6daeb2c9f9ab93680382ccaa95090643cc691f11c6633
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-278m-multilingualDate: 2026-11-14Commit: a9cb533Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-embedding-278m-multilingual
Pinned commit
a9cb5338491faf32b73dd17b714a31821c021bbf
Manifest
granite-embedding-278m-multilingual.json · .minisig
Manifest sha256
2ac65b1c57f05a235dde71ca3515c3109f78f9115c4485f8104d273f73c9d910
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-278m-multilingual.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-embedding-278m-multilingual.json.minisig $ minisign -Vm granite-embedding-278m-multilingual.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.

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

Variants

1 quantized or adapter build of granite-embedding-278m-multilingual. 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