Hugging FaceRadu Florian, Parul Awasthy, Aashka Trivedi, Madison LeeAnnouncement
Granite Embedding Multilingual R2: Open Apache 2.0 Multilingual Embeddings with 32K Context — Best Sub-100M Retrieval Quality
Summary
Granite Embedding Multilingual R2 introduces two Apache 2.0 multilingual embedding models built on ModernBERT: a 97M-parameter compact model and a 311M full-size model. Both cover more than 200 languages, receive enhanced retrieval training for 52 languages and nine programming languages, and support context lengths up to 32,768 tokens, compared with 512 for the R1 models. The compact model scores 60.3 on MTEB Multilingual Retrieval, while the full-size model scores 65.2; the reported results place them among the strongest open models in their parameter ranges. R2 replaces the XLM-RoBERTa architecture with alternating attention lengths, rotary position embeddings, newer multilingual and code tokenizers, and Flash Attention 2.0 support, while the 311M model adds Matryoshka embeddings and both models provide ONNX and OpenVINO weights.
Context
Multilingual embedding systems face a trade-off between broad language coverage and model size: smaller models are faster but may sacrifice languages or retrieval quality. The release addresses multilingual retrieval, cross-lingual search, retrieval-augmented generation over multilingual corpora, and code retrieval across international teams.
Approach / What changed
The R2 models use ModernBERT encoders, multilingual and code-capable tokenizers, retrieval-pair and cross-lingual training for 52 languages, and training data assembled from IBM-curated, public, internally generated, and synthetic sources. The 311M model uses knowledge distillation, contrastive fine-tuning, model merging, and Matryoshka Representation Learning; the 97M model uses a pruned 180K-token GPT-OSS-derived vocabulary and a pruning methodology. Both ship with ONNX and OpenVINO weights.
Takeaways
The 97M model scores 60.3 on MTEB Multilingual Retrieval across 18 languages, compared with 50.9 for multilingual-e5-small, according to the post.
The 311M model produces 768-dimensional embeddings and supports Matryoshka truncation, allowing a storage and speed trade-off; the 97M model produces 384-dimensional embeddings.
Both models support more than 200 languages, enhanced retrieval quality for 52 languages, 32,768-token contexts, and cross-lingual code retrieval across Python, Go, Java, JavaScript, PHP, Ruby, SQL, C, and C++.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.