MenteE AI · Embed Models
mentee-embed
Multilingual text embedding models trained entirely from scratch for Arabic, English, and Urdu — no pretrained backbone. v4 is the latest version: 2.6M triplets, 3-round distillation, 18K sents/sec. Three public versions: v1 (baseline), v3 (MS-MARCO + hard negatives), and v4 (mMARCO Arabic + full pipeline). Full benchmarks on the research page.
Overview
Most multilingual embedding models rely on a pretrained backbone like mBERT or XLM-R. mentee-embed starts from random initialization — a custom 50K BPE tokenizer, MLM pretraining on 1.1M trilingual sentences, then relational knowledge distillation from a teacher model.
Versions
v4 adds mMARCO Arabic retrieval data (500K triplets) and a third distillation round with hard negatives — producing a +146% bench MRR improvement over v3 while remaining the same 41M architecture.
| Version | Params | Batch | Data | Prot-A | Prot-C | Weights |
|---|---|---|---|---|---|---|
v1 Baseline — NLI + XNLI + OPUS | 41M | 192 | ~810K triplets | 0.585 | ~0.20 | MenteEAI/mentee-embed-v1 |
v3 + MS-MARCO + hard negatives | 41M | 512 | 2.1M triplets | 0.655 | 0.645 | MenteEAI/mentee-embed-v3 |
v4Recommended + mMARCO Arabic + 3-round distillation · 18K sents/sec | 41M | 512 | 2.6M triplets | 0.916 | 0.706 | MenteEAI/mentee-embed-v4 |
Model Evolution — Prot-A & Prot-C MRR@10
Throughput — sents/sec (RTX 5090, batch 128)
MIRACL — MRR@10 by Language
Quick Start
v4 and v3 load via standard transformers — no custom loader or extra library needed. v1 requires cloning the mentee-embeddings repo for the build_embedder helper.
# Install
pip install torch transformers tokenizers huggingface_hub
from transformers import AutoModel, AutoTokenizer
tok = AutoTokenizer.from_pretrained("MenteEAI/mentee-embed-v4", trust_remote_code=True)
model = AutoModel.from_pretrained("MenteEAI/mentee-embed-v4", trust_remote_code=True)
texts = [
"Machine learning is a branch of artificial intelligence",
"تعلم الآلة هو فرع من الذكاء الاصطناعي", # AR
"مشین لرننگ مصنوعی ذہانت کی ایک شاخ ہے", # UR
]
embeddings = model.encode(texts, tokenizer=tok)
# embeddings: torch.Tensor of shape (3, 384), L2-normalisedRequires trust_remote_code=True — this is standard for custom-architecture models on HuggingFace. The code runs locally on your machine; nothing is sent to any server.
Weights v1
huggingface.co/MenteEAI/mentee-embed-v1Weights v4
huggingface.co/MenteEAI/mentee-embed-v4Weights v3
huggingface.co/MenteEAI/mentee-embed-v3License
Apache 2.0
Cite this model
Published preprint — please cite if you use mentee-embed in your research.
How Far Can Multilingual Text Embeddings Be Trained From Scratch? A Compute-Efficient Study of Arabic, English, and Urdu
Shah, Syed Syab Ahmad · Team MenteE AI — MenteE AI
41M-parameter trilingual embedding model trained from scratch with ~2.6M triplets, 50K MLM steps, and 3-round distillation. Bench MRR@10 0.252 (+146% vs v3), MIRACL AR 0.874 (+96%), 18,115 sents/sec on RTX 5090 — the fastest model tested.
Show BibTeX
@misc{mentee-embed-v4-2026,
title = {How Far Can Multilingual Text Embeddings Be Trained From Scratch?
A Compute-Efficient Study of Arabic, English, and Urdu},
author = {Shah, Syed Syab Ahmad and Team MenteE AI},
year = {2026},
url = {https://huggingface.co/MenteEAI/mentee-embed-v4},
note = {Apache-2.0 License}
}