Add native NVFP4 memory to the memory table and chart; note where throughput and NVFP4 memory were measured
Browse filesFiles changed (2)
14 unmodified lines151617181920212 unmodified lines24252627282912 unmodified lines4243444546474826 unmodified lines7576777879808118 unmodified lines10010110210310410510664 unmodified lines17117217317417517617717820 unmodified lines19920020120220320420514 unmodified lines**57 embedding models** (45 open, 12 API) scored on **Vietnamese retrieval**: 9 human-written Vietnamese datasets plus 4 machine-translated ones (≈ 340k documents, 80k queries). Exact search, no reranker.**Interactive explorer:** [huggingface.co/spaces/quocbao747/embedding-model-benchmark](https://huggingface.co/spaces/quocbao747/embedding-model-benchmark): pick datasets and metric, filter by memory, compare models.Updated 2026-12-05 16:55 GMT+7 · complete2 unmodified lines- **Best overall:** nemotron35-8b (76.9 native-4 nDCG@10). Best API model: gemini-embedding-2 (75.9, #4).- **Best small models:** bge-m3-all is the best open model under 5 GiB peak memory (72.5, 2.1 GiB); aiteamvn-vn-v2 is the best under 2 GiB (70.9, 1.4 GiB).- **Legal text:** aiteamvn-vn-v2 has the top Zalo Legal score of all 57 models (84.8), but scores only 39.9 on the translated sets.- **Qwen3-Embedding-4B** ranks #32 (68.3): #7 of 57 on Zalo Legal (76.5) but weak on ViQuAD (16.5), which pulls its average down.- **Ties:** models marked † carry about ±0.5 nDCG@10 ranking noise, so smaller gaps are ties.12 unmodified lines|---:|---|---:|---:|---:|---:|---:|---:|---|| 1 | [nemotron35-8b](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16) | **76.9** | 66.6 | 73.8 | 80.2 | 55.8 | 16.8 | bf16 || 2 | [nemotron3-8b](https://huggingface.co/nvidia/Nemotron-3-Embed-8B-BF16) † | **76.9** | 66.5 | 73.7 | 80.2 | 55.7 | 16.8 | bf16 || 3 | [nemotron35-8b-nvfp4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-NVFP4) | **76.8** | 66.3 | 73.6 | 79.6 | 55.7 | — | NVFP4 W4A4, emulated || 4 | [gemini-embedding-2](https://openrouter.ai/google/gemini-embedding-2) | **75.9** | 66.0 | 72.9 | 80.2 | 59.2 | API | API || 5 | [pplx-embed-v2-context-0.6b](https://openrouter.ai/perplexity/pplx-embed-v2-context-0.6b) | **74.0** | 63.4 | 70.8 | 74.7 | 50.2 | API | API || 6 | [openembed-9b](https://huggingface.co/UCSC-VLAA/OpenEmbed-9B) † | **73.4** | 62.1 | 70.1 | 74.5 | 51.4 | 19.6 | bf16 |26 unmodified lines| 33 | [skill-venus-0.6b](https://huggingface.co/inclusionAI/Skill-Venus-Embedding-0.6B) † | **68.2** | 56.3 | 64.5 | 70.5 | 44.8 | 1.6 | bf16 || 34 | [nemotron35-1b](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16) | **68.1** | 56.2 | 64.2 | 70.7 | 45.1 | 3.0 | bf16 || 35 | [nemotron3-1b](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16) † | **68.1** | 56.1 | 64.3 | 70.5 | 45.1 | 3.0 | bf16 || 36 | [nemotron35-1b-nvfp4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-NVFP4) | **67.9** | 56.0 | 64.2 | 70.6 | 45.0 | — | NVFP4 W4A4, emulated || 37 | [jina-v4](https://huggingface.co/jinaai/jina-embeddings-v4) † | **67.8** | 55.8 | 64.1 | 69.3 | 48.9 | 14.3 | bf16 || 38 | [jina-v3](https://huggingface.co/jinaai/jina-embeddings-v3) † | **67.5** | 55.7 | 63.9 | 68.0 | 43.6 | 2.1 | bf16 || 39 | [f2llm-v2-330m](https://huggingface.co/codefuse-ai/F2LLM-v2-330M) † | **67.2** | 56.0 | 63.6 | 68.3 | 44.6 | 1.1 | bf16 |18 unmodified linesNative-4 = mean over **Zalo Legal, TVPL, Table-Markdown, WebFAQ** (the four large human-written sets). Translated-4 = VN-MTEB SciFact / NFCorpus / ArguAna / FiQA. Metrics ×100.**Peak memory** = peak memory allocated by PyTorch while encoding 2,048 Zalo Legal documents with the same batch of 32 documents for every model (512-token window), i.e. weights + activations. **Precision** is the number format of the weights and activations during encoding: `bf16` (bfloat16) for almost all models, `fp16` for BGE-M3, and `NVFP4 W4A4, emulated` for the NVFP4 checkpoints. The NVFP4 checkpoints have no memory figure because their emulation does not behave like NVFP4 hardware (see Speed and memory). Raw data: [results/speed/peak_memory.csv](results/speed/peak_memory.csv).† Native-4 includes bf16-ranked scores, which carry about ±0.5 nDCG@10 tie noise: treat smaller gaps involving these models as ties. Unmarked models are ranked by exact fp32 search. See [docs/methodology.md](docs/methodology.md#ranking-precision).64 unmodified lines| nemotron3-8b | 76.9 | 26 | 7,485 | 254 | 16.8 | 14.8 | bf16 || openembed-4b | 72.1 | 26 | 7,058 | 199 | 12.2 | 8.5 | bf16 || openembed-9b | 73.4 | 19 | 5,102 | 146 | 19.6 | 15.6 | bf16 |**Setup and precision.** Every open model was measured one at a time on the same machine with nothing else running on it (PyTorch 2.15.0). Weights and activations are in **bf16** (bfloat16) for every model except BGE-M3 and its hybrid modes, which run in **fp16** (half precision); the Precision column shows it per model. All models use **the same batch size (32 documents per batch)**: 2,048 Zalo Legal documents and 818 queries, 512-token window (128 for para-multi-minilm-l12, its own limit), each model in its own prompt format. A fixed batch makes memory and speed comparable across models; small models could run faster with larger batches. The NVFP4 checkpoints of Nemotron-3.5 are not in this section: the test hardware has no native FP4 support, so they ran as a software emulation whose speed and memory say nothing about NVFP4 hardware (their accuracy is in the Nemotron-3.5 section; the NVFP4 checkpoint files are 5.12 GiB for 8B and 1.18 GiB for 1B). Absolute numbers depend on the hardware; the ranking and ratios are what transfer. OpenEmbed models (Qwen3.5 base) ran their linear-attention layers on the reference PyTorch path (no `flash-linear-attention` kernels), so they are slower here than they can be. Nemotron-3.5 runs slightly faster than Nemotron-3 with the same text weights because it is encoded through the card's Transformers path (our own length-sorted batching) rather than sentence-transformers. `bge-m3-all` computes dense + sparse + ColBERT outputs in one pass. Raw data: [results/speed/speed_unified.csv](results/speed/speed_unified.csv).## Datasets20 unmodified lines- **2,048-token window:** measured for 12 of 57 models (Zalo Legal + Tables only); openembed-0.8b has Tables only. Not yet run for the other 45, including top-10 models nemotron35-8b, nemotron3-8b, nemotron35-8b-nvfp4, gemini-embedding-2, pplx-embed-v2-context-0.6b, openembed-9b, pplx-embed-v1-4b, cohere-embed-5-pro, gemini-embedding-001, f2llm-v2-8b.- **Matryoshka truncation:** measured for 13 models only. Every other model is scored at its full embedding size.- **Exact fp32 re-ranking:** 39 models (marked †) are ranked in bf16, so gaps under about 0.5 nDCG@10 between them are ties until they are re-scored with fp32 search.- **NVFP4 speed and memory:** the NVFP4 checkpoints are only emulated, so their throughput and peak memory are not reported; accuracy only.- **API models:** no throughput or latency figures (network-bound, not comparable).- **Hybrid / sparse retrieval:** only BGE-M3 has sparse and multi-vector modes measured; its hybrid scores on the translated sets are carried over and not yet re-run with the current harness.- **English BEIR and TREC-COVID-VN:** scored for 3 models only (Qwen3-Embedding-4B, BGE-M3, EmbeddingGemma 2).14 unmodified lines151617181920212 unmodified lines2425262728293012 unmodified lines4344454647484926 unmodified lines7677787980818218 unmodified lines10110210310410510610764 unmodified lines17217317417517617717817918018118218320 unmodified lines20420520620720820921014 unmodified lines**57 embedding models** (45 open, 12 API) scored on **Vietnamese retrieval**: 9 human-written Vietnamese datasets plus 4 machine-translated ones (≈ 340k documents, 80k queries). Exact search, no reranker.**Interactive explorer:** [huggingface.co/spaces/quocbao747/embedding-model-benchmark](https://huggingface.co/spaces/quocbao747/embedding-model-benchmark): pick datasets and metric, filter by memory, compare models.Updated 2026-12-05 19:14 GMT+7 · run in progress2 unmodified lines- **Best overall:** nemotron35-8b (76.9 native-4 nDCG@10). Best API model: gemini-embedding-2 (75.9, #4).- **Best small models:** bge-m3-all is the best open model under 5 GiB peak memory (72.5, 2.1 GiB); aiteamvn-vn-v2 is the best under 2 GiB (70.9, 1.4 GiB).- **NVFP4 on native FP4 hardware** (memory measured on an NVIDIA GB10): nemotron35-8b-nvfp4 scores 76.8 at 5.7 GiB peak, within 0.15 of its bf16 version at 34% of the memory; every open model that scores higher needs at least 16.8 GiB. nemotron35-1b-nvfp4 fits under 2 GiB (67.9, 1.4 GiB) but scores below aiteamvn-vn-v2 (70.9).- **Legal text:** aiteamvn-vn-v2 has the top Zalo Legal score of all 57 models (84.8), but scores only 39.9 on the translated sets.- **Qwen3-Embedding-4B** ranks #32 (68.3): #7 of 57 on Zalo Legal (76.5) but weak on ViQuAD (16.5), which pulls its average down.- **Ties:** models marked † carry about ±0.5 nDCG@10 ranking noise, so smaller gaps are ties.12 unmodified lines|---:|---|---:|---:|---:|---:|---:|---:|---|| 1 | [nemotron35-8b](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16) | **76.9** | 66.6 | 73.8 | 80.2 | 55.8 | 16.8 | bf16 || 2 | [nemotron3-8b](https://huggingface.co/nvidia/Nemotron-3-Embed-8B-BF16) † | **76.9** | 66.5 | 73.7 | 80.2 | 55.7 | 16.8 | bf16 || 3 | [nemotron35-8b-nvfp4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-NVFP4) | **76.8** | 66.3 | 73.6 | 79.6 | 55.7 | 5.7 | NVFP4 W4A4 ‡ || 4 | [gemini-embedding-2](https://openrouter.ai/google/gemini-embedding-2) | **75.9** | 66.0 | 72.9 | 80.2 | 59.2 | API | API || 5 | [pplx-embed-v2-context-0.6b](https://openrouter.ai/perplexity/pplx-embed-v2-context-0.6b) | **74.0** | 63.4 | 70.8 | 74.7 | 50.2 | API | API || 6 | [openembed-9b](https://huggingface.co/UCSC-VLAA/OpenEmbed-9B) † | **73.4** | 62.1 | 70.1 | 74.5 | 51.4 | 19.6 | bf16 |26 unmodified lines| 33 | [skill-venus-0.6b](https://huggingface.co/inclusionAI/Skill-Venus-Embedding-0.6B) † | **68.2** | 56.3 | 64.5 | 70.5 | 44.8 | 1.6 | bf16 || 34 | [nemotron35-1b](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16) | **68.1** | 56.2 | 64.2 | 70.7 | 45.1 | 3.0 | bf16 || 35 | [nemotron3-1b](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16) † | **68.1** | 56.1 | 64.3 | 70.5 | 45.1 | 3.0 | bf16 || 36 | [nemotron35-1b-nvfp4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-NVFP4) | **67.9** | 56.0 | 64.2 | 70.6 | 45.0 | 1.4 | NVFP4 W4A4 ‡ || 37 | [jina-v4](https://huggingface.co/jinaai/jina-embeddings-v4) † | **67.8** | 55.8 | 64.1 | 69.3 | 48.9 | 14.3 | bf16 || 38 | [jina-v3](https://huggingface.co/jinaai/jina-embeddings-v3) † | **67.5** | 55.7 | 63.9 | 68.0 | 43.6 | 2.1 | bf16 || 39 | [f2llm-v2-330m](https://huggingface.co/codefuse-ai/F2LLM-v2-330M) † | **67.2** | 56.0 | 63.6 | 68.3 | 44.6 | 1.1 | bf16 |18 unmodified linesNative-4 = mean over **Zalo Legal, TVPL, Table-Markdown, WebFAQ** (the four large human-written sets). Translated-4 = VN-MTEB SciFact / NFCorpus / ArguAna / FiQA. Metrics ×100.**Peak memory** = peak memory allocated by PyTorch while encoding 2,048 Zalo Legal documents with the same batch of 32 documents for every model (512-token window), i.e. weights + activations. **Precision** is the number format of the weights and activations during encoding: `bf16` (bfloat16) for almost all models, `fp16` for BGE-M3, and `NVFP4 W4A4` for the NVFP4 checkpoints. ‡ NVFP4 memory was measured with native FP4 kernels on an NVIDIA GB10 (vLLM, batched by 8,192 tokens), not on the machine used for the other models; their scores come from an exact software emulation (see Nemotron-3.5 and NVFP4, and Speed and memory). Raw data: [results/speed/peak_memory.csv](results/speed/peak_memory.csv).† Native-4 includes bf16-ranked scores, which carry about ±0.5 nDCG@10 tie noise: treat smaller gaps involving these models as ties. Unmarked models are ranked by exact fp32 search. See [docs/methodology.md](docs/methodology.md#ranking-precision).64 unmodified lines| nemotron3-8b | 76.9 | 26 | 7,485 | 254 | 16.8 | 14.8 | bf16 || openembed-4b | 72.1 | 26 | 7,058 | 199 | 12.2 | 8.5 | bf16 || openembed-9b | 73.4 | 19 | 5,102 | 146 | 19.6 | 15.6 | bf16 || nemotron35-8b-nvfp4 ‡ | 76.8 | — | — | — | 5.7 | 5.0 | NVFP4 W4A4 (native FP4) || nemotron35-1b-nvfp4 ‡ | 67.9 | — | — | — | 1.4 | 1.1 | NVFP4 W4A4 (native FP4) |**Where it was measured.** Docs/s, doc tokens/s and queries/s were measured on an NVIDIA GeForce RTX 4090 (24 GB). ‡ The NVFP4 checkpoints are left out of the throughput columns. Their memory was measured separately on an NVIDIA GB10 with native FP4 kernels (vLLM 0.34.0, PyTorch 2.14.0, CUTLASS FP4 matrix multiply, no CUDA graphs) on the same 2,048 documents and 818 queries, 512-token window, batched by tokens (8192 tokens per step) instead of 32 documents. Peak memory is PyTorch's exact peak allocation while encoding (weights + activations; these models have no KV cache), weights = memory after loading; the average while encoding was 5.03 GiB (nemotron35-8b-nvfp4) and 1.10 GiB (nemotron35-1b-nvfp4). Their accuracy comes from the emulation described in the Nemotron-3.5 section.**Setup and precision.** Every other open model was measured one at a time on the same machine with nothing else running on it (PyTorch 2.15.0). Weights and activations are in **bf16** (bfloat16) for every model except BGE-M3 and its hybrid modes, which run in **fp16** (half precision); the Precision column shows it per model. All models use **the same batch size (32 documents per batch)**: 2,048 Zalo Legal documents and 818 queries, 512-token window (128 for para-multi-minilm-l12, its own limit), each model in its own prompt format. A fixed batch makes memory and speed comparable across models; small models could run faster with larger batches. Absolute numbers depend on the hardware; the ranking and ratios are what transfer. OpenEmbed models (Qwen3.5 base) ran their linear-attention layers on the reference PyTorch path (no `flash-linear-attention` kernels), so they are slower here than they can be. Nemotron-3.5 runs slightly faster than Nemotron-3 with the same text weights because it is encoded through the card's Transformers path (our own length-sorted batching) rather than sentence-transformers. `bge-m3-all` computes dense + sparse + ColBERT outputs in one pass. Raw data: [results/speed/speed_unified.csv](results/speed/speed_unified.csv).## Datasets20 unmodified lines- **2,048-token window:** measured for 12 of 57 models (Zalo Legal + Tables only); openembed-0.8b has Tables only. Not yet run for the other 45, including top-10 models nemotron35-8b, nemotron3-8b, nemotron35-8b-nvfp4, gemini-embedding-2, pplx-embed-v2-context-0.6b, openembed-9b, pplx-embed-v1-4b, cohere-embed-5-pro, gemini-embedding-001, f2llm-v2-8b.- **Matryoshka truncation:** measured for 13 models only. Every other model is scored at its full embedding size.- **Exact fp32 re-ranking:** 39 models (marked †) are ranked in bf16, so gaps under about 0.5 nDCG@10 between them are ties until they are re-scored with fp32 search.- **NVFP4 throughput:** the NVFP4 checkpoints have memory figures (native FP4, measured on a separate machine) but no throughput in the speed table.- **API models:** no throughput or latency figures (network-bound, not comparable).- **Hybrid / sparse retrieval:** only BGE-M3 has sparse and multi-vector modes measured; its hybrid scores on the translated sets are carried over and not yet re-run with the current harness.- **English BEIR and TREC-COVID-VN:** scored for 3 models only (Qwen3-Embedding-4B, BGE-M3, EmbeddingGemma 2).
README.md+11-6
assets/peak_memory.png

Large File Pointer Details
- SHA256: 932e3e6d47d5fda8922fc4285d045b69a92bbbd2aeaafec36f2d1cf0645dadf8
- Pointer size: 131 Bytes
- Size of remote file: 403 kB

Large File Pointer Details
- SHA256: 836f43ba8df702824f86695a0ad18efd48f34135720d6bab54698b4b447e8295
- Pointer size: 131 Bytes
- Size of remote file: 454 kB