2026-12-05, commercial-clean revision: retrained from scratch with the same recipe after removing one dataset whose license we could not confirm for commercial use (findnitai/english-to-hinglish). Its Hinglish→English pairs were replaced by Hinglish chat written by Ornith-1.5-35B-A3B (MIT), the COMI-LINGUA MT train split and the PHINC train split (both CC BY 4.0). Test results are equal or slightly better (English STS 83.9 → 84.1). The previous weights are at revision
f8207bb.v2 (2026-11-26): better at graded similarity: English STS 80.0 → 83.9 (test), after adding everyday English sentences (SNLI) to training. The other results moved by 0.001 at most. The first version is the
v1tag (revision="v1").
A 140M-parameter sentence embedding model for Indian languages as people actually type them: native script, romanized ("kal meeting cancel ho gayi"), and code-mixed, plus English. A romanized message, its native-script original and its English translation land close together, so you can search native-script documents with romanized queries (or the reverse) without transliterating first.
Languages: Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Punjabi, Urdu, English. Output: 1024-dimensional, L2-normalized vectors (cosine = dot product). Max input length used in training: 128 tokens.
Try it in your browser: romanized search demo.
It is a distillation of BAAI/bge-m3 (568M) into jhu-clsp/mmBERT-small, trained so that romanized and native inputs map to the teacher's embedding of the native sentence, and Indic inputs map to the teacher's embedding of the English translation.
kal meeting कल मीटिंग The meeting நாளை கூட்டம் aaj bahut
cancel ho कैंसल हो गई tomorrow was ரத்து garmi hai
gayi cancelled. செய்யப்பட்டது yaar
kal meeting cancel ho gayi 1.00 0.91 0.97 0.96 0.54
कल मीटिंग कैंसल हो गई 0.91 1.00 0.88 0.91 0.59
The meeting tomorrow was cancelled. 0.97 0.88 1.00 0.97 0.53
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("altslate/indic-embed-small")
docs = ["कल मीटिंग कैंसल हो गई", "আজ খুব গরম পড়েছে", "நாளை கூட்டம் ரத்து செய்யப்பட்டது"]
query = "kal meeting cancel ho gayi"
scores = model.encode([query]) @ model.encode(docs).T
print(scores) # [[0.91 0.55 0.96]]: the Hindi original and the Tamil translation score high, the unrelated Bengali sentence low
No prefix or instruction is needed. Tested with sentence-transformers 5.1.2 (transformers 4.57.6) and 6.3.0 (transformers 5.24.0); both give the same vectors.
onnx/model.onnx (fp32, 564 MB) and onnx/model_fp16.onnx (282 MB) contain the whole sentence encoder, including pooling
and the projection head. Read the sentence_embedding output (already normalized):
import { AutoTokenizer, AutoModel } from "@huggingface/transformers";
const tok = await AutoTokenizer.from_pretrained("altslate/indic-embed-small");
const model = await AutoModel.from_pretrained("altslate/indic-embed-small", { dtype: "fp16" }); // or "fp32"
const { sentence_embedding } = await model(tok(["kal meeting cancel ho gayi", "कल मीटिंग कैंसल हो गई"], { padding: true, truncation: true, max_length: 128 }));
const [a, b] = sentence_embedding.tolist();
console.log(a.reduce((s, x, i) => s + x * b[i], 0)); // ~0.91
Tested with @huggingface/transformers 4.3.2 in Node 22: fp32 matches PyTorch (cosine 1.0000 on every test sentence), fp16 min
cosine 0.9997. Dynamic int8 quantization lost too much on this model (mean cosine 0.94 against fp32), so there is
no int8 file. Don't use the feature-extraction pipeline: it would mean-pool the 384-d token states and skip the projection head.
All test sets are held out: no sentence from any of them (or from their dev splits) was used in training. Model choices (four training rounds, which checkpoint to ship) were made on the dev splits, with one exception noted under STS. Recall@1 is averaged over both directions and over the 10 languages; STS is Spearman × 100.
| Model | Params | Romanized ↔ native (Dakshina) | English ↔ Indic (FLORES) | English ↔ romanized Indic (FLORES, our romanizer) | English ↔ Indic STS | English STS |
|---|---|---|---|---|---|---|
| altslate/indic-embed-small (this revision) | 140M | 0.993 | 0.999 | 0.996 | 53.0 | 84.1 |
previous revision (v2, f8207bb) |
140M | 0.992 | 0.999 | 0.996 | 53.0 | 83.9 |
| first version (v1) | 140M | 0.993 | 0.999 | 0.996 | 53.0 | 80.0 |
| l3cube-pune/indic-sentence-similarity-sbert | 237M | 0.824 | 0.996 | 0.652 | 56.3 | 85.3 |
| BAAI/bge-m3 (teacher) | 568M | 0.608 | 0.999 | 0.413 | 53.2 | 84.8 |
| sentence-transformers/LaBSE | 471M | 0.507 | 1.000 | 0.423 | 56.5 | 72.2 |
| intfloat/multilingual-e5-small | 118M | 0.479 | 0.996 | 0.286 | 42.4 | 83.4 |
| paraphrase-multilingual-MiniLM-L12-v2 | 118M | 0.076 | 0.474 | 0.112 | 22.5 | 84.3 |
Per language, romanized ↔ native recall@1 (Dakshina test, 1000 sentences each):
| hi | bn | ta | te | mr | gu | kn | ml | pa | ur | |
|---|---|---|---|---|---|---|---|---|---|---|
| this model | 1.00 | 0.99 | 0.99 | 0.99 | 1.00 | 1.00 | 1.00 | 1.00 | 0.99 | 0.99 |
| l3cube indic sbert | 0.97 | 0.69 | 0.62 | 0.83 | 0.90 | 0.87 | 0.78 | 0.85 | 0.89 | 0.85 |
| bge-m3 | 0.69 | 0.65 | 0.47 | 0.59 | 0.63 | 0.58 | 0.52 | 0.56 | 0.65 | 0.74 |
The tasks:
Teacher: BAAI/bge-m3 dense embeddings (CLS, normalized). Student: mmBERT-small encoder → mean pooling → linear 384 → 1024 → L2 normalization. Loss: MSE to the teacher vector of the target sentence + in-batch contrastive loss (temperature 0.05; rows that share a target are not negatives). Four rounds, each fine-tuning the previous one (batch 128, AdamW, linear warm-up and decay):
About 10 GPU hours in total on one NVIDIA DGX Spark (GB10), plus about an hour of teacher encoding. The only model-generated text is about 39k Hinglish chat lines with their English meaning, written by Ornith-1.5-35B-A3B (MIT). No closed or API model was used.
Data (all used under their licenses; none of it is redistributed here):
| Data | Used for | License |
|---|---|---|
| Dakshina native Wikipedia sentences (TRAIN split) and romanization lexicons (TRAIN) | native sentences; word romanizations | CC BY-SA 4.0 |
| Aksharantar word pairs (TRAIN) | word romanizations | CC0 / CC-BY 4.0 (per source) |
| English Wikipedia (one shard of the 20231101 dump) | English sentences | CC BY-SA 4.0 |
| Hinglish chat lines and their English meaning, written by Ornith-1.5-35B-A3B | Hinglish → English pairs | MIT (model output) |
| COMI-LINGUA MT train split (romanized Hindi → English) | Hinglish → English pairs | CC BY 4.0 |
| PHINC (our train split) | Hinglish → English pairs | CC BY 4.0 |
| stanfordnlp/snli premises and hypotheses (train split, 10–300 characters) | English sentences (v2) | CC BY-SA 4.0 |
| allenai/nllb mined English–Indic bitext (highest-scoring part, filtered, ≤2% from any one website) | English–Indic pairs | ODC-BY 1.0 (CommonCrawl-derived; upstream terms apply) |
Every sentence that appears in any evaluation set above (Dakshina dev/test, all FLORES splits, IndicCrosslingualSTS) was removed from the training data before training (exact match after whitespace normalization; for the SNLI sentences also near-duplicates of these and of STS Benchmark, as described above).
Code: github.com/AltSlate-Labs/indic-chat-toolkit.
The weights are Apache-2.0 and may be used commercially. Every training dataset above allows commercial use under its license (attribution and share-alike terms apply to the data, not to this model's outputs, as we read them; ODC-BY for the NLLB bitext asks you to respect the terms of its CommonCrawl sources). The only model-generated training text comes from an MIT-licensed model. This revision exists because an earlier training dataset's license could not be confirmed, so it was removed; check the licenses yourself if your use depends on them.
Apache-2.0. The base model (mmBERT-small) and the teacher (bge-m3) are MIT-licensed.
If you use this model, please cite the teacher, the base model and the datasets above (Dakshina: Roark et al., 2020; Aksharantar: Madhani et al., 2022; NLLB: NLLB Team, 2022), and the multilingual distillation method (Reimers & Gurevych, 2020).
onnx/model.onnx 538 MiBmodel.safetensors 536 MiBonnx/model_fp16.onnx 269 MiB2_Dense/model.safetensors 2 MiB