Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 16 min read Announcement mediumAdept

Granite Embedding Multilingual R2: Open Apache 2.0 Multilingual Embeddings with 32K Context — Best Sub-100M Retrieval Quality

IBM's Granite Embedding Multilingual R2 is a pair of Apache 2.0 ModernBERT-based embedding models covering 200+ languages and 9 programming languages, with 32K-token context (64x R1). The 97M model scores 60.3 on MTEB Multilingual Retrieval, well ahead of other open sub-100M models such as multilingual-e5-small (50.9), and encodes over 2,500 docs/sec on an H100. The 311M model reaches 65.2 and leads LongEmbed at 71.7. It was trained with multi-teacher distillation from decoder LLMs, contrastive fine-tuning, checkpoint merging and Matryoshka objectives, so embeddings can be truncated from 768 to 256 dimensions at a cost of only 0.5 points. Both models are drop-in replacements in sentence-transformers, LangChain and similar frameworks.

Assumes: text embeddingsretrieval-augmented generationtransformer encoders

Related posts

  • Welcome EmbeddingGemma, Google's new efficient embedding model

    Hugging Face mediumAdept

    EmbeddingGemma is Google's 308M-parameter multilingual text embedding model. It is built on a Gemma3 backbone modified to use bidirectional attention, with mean pooling and two dense layers producing 768-dimensional vectors. It supports a 2K-token context and over 100 languages, runs in under 200 MB of RAM when quantized, and ranks highest among text-only multilingual models under 500M parameters on MMTEB. Because it was trained with Matryoshka Representation Learning, embeddings can be truncated to 512, 256 or 128 dimensions, and inputs need task-specific prompts such as "task: search result | query: " to get correct results. Code examples cover Sentence Transformers, LangChain, LlamaIndex, Haystack, txtai, Transformers.js, TEI and ONNX, plus a finetuning walkthrough on the MIRIAD medical dataset whose resulting model outperforms models twice its size on that task.

  • mmBERT: ModernBERT goes Multilingual

    Hugging Face hardMaster

    mmBERT is a massively multilingual encoder built on the ModernBERT architecture with the Gemma 2 tokenizer, trained on over 3T tokens covering 1,833 languages. It is the first model to clearly beat XLM-R on XTREME, GLUE and MTEB v2 retrieval, and it runs 2-4x faster with an 8,192-token context. The training recipe has three phases that add languages progressively (60 → 110 → 1,833), anneal the sampling temperature (0.7 → 0.5 → 0.3) and lower the mask ratio (30% → 15% → 5%), then combines decay-phase variants with TIES merging. Low-resource languages added only in the final 100B-token decay phase are still learned effectively, and on Faroese QA the model outperforms Gemini 2.5 Pro and o3.

  • Build a Domain-Specific Embedding Model in Under a Day

    Hugging Face mediumAdept

    A single-GPU pipeline fine-tunes Llama-Nemotron-Embed-1B-v2 for a specific domain in under a day without manual labels. An LLM generates synthetic single- and multi-hop QA pairs from raw documents, which are quality-filtered. The base model then mines hard negatives, using a 95% margin ceiling to avoid false negatives. Training is a contrastive biencoder run at temperature 0.02, followed by BEIR evaluation, ONNX/TensorRT export and serving through NIM. On NVIDIA docs this gave about 10% gains in NDCG@10 and Recall@10, and Atlassian raised Jira Recall@60 from 0.751 to 0.951. The guide also covers practical defaults: 1–2 epochs for real data, LR 1e-5, and 1 positive plus 4 hard negatives per query.

  • Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers

    Hugging Face mediumAdept

    Sentence Transformers v6.0 adds a MultiVectorEncoder model type for ColBERT-style late-interaction retrieval, with a full training stack covering models, datasets, losses, training arguments, evaluators and the trainer. A guide walks through finetuning on MIRIAD medical question-passage pairs. The resulting mLateOn-medical model, trained in 14.5 hours on one RTX 3090, beats every general-purpose dense, sparse, lexical and multi-vector retriever the author tested. Key findings: '-unsupervised' checkpoints taken before supervised finetuning adapt to a new domain better than finished ones, which barely improved or regressed. Lifting the 180–512 token document caps matters too, since truncation cost up to 0.24 NDCG@10 on long passages. A punctuation skiplist shrinks the index by 9.6% with a slight quality gain, and CachedMultiVectorMultipleNegativesRankingLoss allows large effective batch sizes.

  • MTEB: Massive Text Embedding Benchmark

    Hugging Face mediumAdept

    MTEB is a benchmark of 56 datasets across 8 embedding tasks (classification, clustering, retrieval, STS, bitext mining and more) covering up to 112 languages, with a public leaderboard of over 2000 results. Initial results show a speed/quality tradeoff: GloVe is fast but weak, all-MiniLM-L6-v2 and all-mpnet-base-v2 balance speed and quality, and multi-billion-parameter models like ST5-XXL, GTR-XXL and SGPT-5.8B lead but produce large embeddings (up to 4096 dimensions). Because rankings vary widely by task, the leaderboard should be checked per task. Any model can be evaluated with the `mteb` Python library and submitted via model card metadata.

The quest for software engineering knowledge.

Look:
Layout: