F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World
Organizations: Ant Group · Shanghai Jiao Tong University
Abstract
We present F2LLM-v2, a new family of general-purpose, multilingual embedding models in 8 distinct sizes ranging from 80M to 14B. Trained on a newly curated composite of 60 million publicly available high-quality data samples, F2LLM-v2 supports more than 200 languages, with a particular emphasis on previously underserved mid- and low-resource languages. By integrating a two-stage LLM-based embedding training pipeline with matryoshka learning, model pruning, and knowledge distillation techniques, we present models that are far more efficient than previous LLM-based embedding models while retaining competitive performances. Extensive evaluations confirm that F2LLM-v2-14B ranks first on 11 MTEB benchmarks, while the smaller models in the family also set a new state of the art for resource-constrained applications. To facilitate open-source embedding model research, we release all models, data, code, and intermediate checkpoints.
Figures & tables
| 80M | 160M | 330M | 0.6B | 1.7B | 4B | 8B | 14B | |
| Model Configuration | ||||||||
| Hidden Size | 320 | 640 | 896 | 1024 | 2048 | 2560 | 4096 | 5120 |
| MLP Intermediate Size | 2048 | 1536 | 2560 | 3072 | 6144 | 9728 | 12288 | 17408 |
| Transformer Layers | 8 | 9 | 16 | 28 | 28 | 36 | 36 | 40 |
| Attention Heads | 16 | 16 | 16 | 16 | 16 | 32 | 32 | 40 |
| KV Heads | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 |
| 80M | 160M | 330M | 0.6B | 1.7B | |
|---|---|---|---|---|---|
| w. distillation (F2LLM-v2) | 58.04 | 60.53 | 64.55 | 66.72 | 69.13 |
| w.o. distillation | 53.37 | 56.27 | 62.77 | 65.87 | 68.58 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Language | Samples | Language | Samples |
|---|---|---|---|
| python | 1,972,390 | css | 1,003 |
| php | 553,651 | typescript | 888 |
| java | 483,469 | r | 636 |
| cpp | 393,514 | lisp | 467 |
| go | 351,586 | jsx | 436 |
| javascript | 245,632 | objective-c | 327 |
Text Embeddings
Text embeddings map words, sentences, or documents to vectors for measuring meaning, retrieving information, and organizing text.
See all 54 papersBootstrapping Embeddings for Low Resource Languages
SkMTEB: Slovak Massive Text Embedding Benchmark and Model Adaptation
e5-sk-small (45M parameters) and e5-sk-large (365M) by applying vocabulary trimming and fine-tuning to Multilingual E5 models. Despite size reductions of up to 62%, our open-source models achieve competitive performance with proprietary APIs while remaining locally deployable for semantic search and retrieval-augmented generation (RAG). We release the benchmark, models, datasets, and code openly, hoping our approach offers a replicable path for other under-resourced languages.