Skip to content

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

Hugging Face 30 min read Release mediumAdept

Introducing the Ettin Reranker Family

Six Sentence Transformers CrossEncoder rerankers (17M to 1B parameters) built on the Ettin ModernBERT encoders are released with their data and full training recipe. They were distilled with pointwise MSE on mxbai-rerank-large-v2 scores. On MTEB(eng, v2) Retrieval, top-100 reranked across six embedders, the 1B model matches its 1.54B teacher (0.6114 vs 0.6115 NDCG@10). The 17M beats the legacy ms-marco-MiniLM-L12-v2 by +0.051, and the 150M edges out Qwen3-Reranker-0.6B. The architecture uses a plain AutoModel with CLS pooling, which ablations found beat mean pooling, plus a small dense head, enabling unpadded Flash Attention 2 for 1.7x-8.3x speedups over fp32+SDPA with 8K context.

Assumes: embedding-based retrievaltransformer encodersknowledge distillation basics

Related posts

  • Training and Finetuning Reranker Models with Sentence Transformers

    Hugging Face mediumAdept

    Sentence Transformers can finetune reranker (cross-encoder) models on domain data. The guide covers each training component: dataset loading and column-format rules, hard-negative mining with mine_hard_negatives, loss functions such as BinaryCrossEntropyLoss and CachedMultipleNegativesRankingLoss, training arguments, evaluators and the CrossEncoderTrainer. A small ModernBERT-base reranker finetuned on GooAQ with mined hard negatives outperforms the 13 most commonly used public rerankers on that evaluation data, including models 4x larger. The large variant beats all general-purpose rerankers tested there, which makes the case for domain finetuning in retrieve-and-rerank pipelines.

  • Ettin Suite: SoTA Paired Encoders and Decoders

    Hugging Face hardMaster

    Ettin is a suite of paired encoder-only and decoder-only models (17M–1B parameters) trained on identical open data (2T tokens), architecture and three-phase recipe derived from ModernBERT, differing only in attention pattern and objective (MLM vs CLM). The encoders beat ModernBERT and the decoders match or beat Llama 3.2 1B and SmolLM2. The controlled comparison shows encoders dominate classification and retrieval (a 150M encoder beats a 400M decoder on MNLI) while decoders win at generation. Continued training with the opposite objective for 50B tokens fails to close the gap, so architecture choice matters beyond the objective. Usage and fine-tuning code for Sentence Transformers and PyLate ColBERT embeddings is included.

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

  • Multimodal Embedding & Reranker Models with Sentence Transformers

    Hugging Face mediumAdept

    Sentence Transformers v5.4 extends its familiar encode/similarity and CrossEncoder APIs to images, audio, video and mixed text-image inputs, mapping them into a shared embedding space for cross-modal search, visual document retrieval and multimodal RAG. Code examples show loading VLM-based models such as Qwen3-VL-Embedding-2B, using encode_query/encode_document for prompt-aware retrieval, ranking mixed-modality documents with multimodal rerankers, and combining both in a retrieve-then-rerank pipeline. Cross-modal similarity scores run lower than within-modality scores because of the modality gap, but relative ordering is preserved. VLM models need roughly 8 GB of VRAM for 2B variants and about 20 GB for 8B, while CLIP or text-only models suit CPU inference.

The quest for software engineering knowledge.

Look:
Layout: