diff --git a/README.md b/README.md index 3cca0911a75cbf7657aff44d2fe908ca6fddb163..e9663dbead36b789f39c8fa99ab2fad2b080d7ee 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,10 @@ tags: # Vietnamese embedding benchmark -**21 open embedding models** scored on **Vietnamese retrieval**: 9 human-written Vietnamese datasets plus 4 machine-translated ones (≈ 340k documents, 80k queries). Exact search, no reranker. -Updated 2026-12-03 23:37 GMT+7 · run in progress +**24 open embedding models** scored on **Vietnamese retrieval**: 9 human-written Vietnamese datasets plus 4 machine-translated ones (≈ 340k documents, 80k queries). Exact search, no reranker. +Updated 2026-12-04 00:50 GMT+7 · run in progress + +> ⏳ Still running: nemotron3-8b, openembed-9b. Charts and table update automatically when they finish. ![Vietnamese retrieval leaderboard](assets/leaderboard.png) @@ -33,26 +35,29 @@ Updated 2026-12-03 23:37 GMT+7 · run in progress | # | Model | Native-4 nDCG@10 | P@1 | MRR@10 | Zalo Legal | Translated-4 | |---:|---|---:|---:|---:|---:|---:| | 1 | [gemini-embedding-2](https://openrouter.ai/google/gemini-embedding-2) | **75.9** | 66.0 | 72.9 | 80.2 | 59.2 | -| 2 | [bge-m3-all](https://huggingface.co/BAAI/bge-m3) ¹ | **72.4** | — | 69.0 | 74.7 | 45.2 | -| 3 | [octen-8b](https://huggingface.co/Octen/Octen-Embedding-8B) | **71.2** | 60.2 | 67.8 | 73.8 | 56.8 | -| 4 | [qwen3-8b](https://huggingface.co/Qwen/Qwen3-Embedding-8B) | **70.7** | 59.5 | 67.3 | 75.1 | 54.2 | -| 5 | [octen-4b](https://huggingface.co/Octen/Octen-Embedding-4B) | **70.1** | 58.9 | 66.8 | 73.6 | 54.2 | -| 6 | [pplx-embed-v1-0.6b](https://openrouter.ai/perplexity/pplx-embed-v1-0.6b) | **70.0** | 58.7 | 66.5 | 70.1 | 47.5 | -| 7 | [openembed-2b](https://huggingface.co/UCSC-VLAA/OpenEmbed-2B) | **69.7** | 57.8 | 66.2 | 71.8 | 47.3 | -| 8 | [bge-m3](https://huggingface.co/BAAI/bge-m3) ¹ | **69.3** | 57.6 | 65.6 | 71.6 | 44.4 | -| 9 | [voyage-4-lite](https://openrouter.ai/mongodb/voyage-4-lite) | **69.1** | 57.5 | 65.6 | 68.2 | 50.8 | -| 10 | [qwen3-4b](https://huggingface.co/Qwen/Qwen3-Embedding-4B) ¹ | **68.4** | 57.3 | 65.1 | 76.7 | 52.8 | -| 11 | [skill-venus-0.6b](https://huggingface.co/inclusionAI/Skill-Venus-Embedding-0.6B) | **68.2** | 56.3 | 64.5 | 70.5 | 44.8 | -| 12 | [embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) | **66.8** | 54.1 | 63.1 | 67.9 | 47.1 | -| 13 | [openembed-0.8b](https://huggingface.co/UCSC-VLAA/OpenEmbed-0.8B) | **66.6** | 54.5 | 62.9 | 69.6 | 43.3 | -| 14 | [text-embedding-3-large](https://platform.openai.com/docs/guides/embeddings) | **66.5** | 53.7 | 62.6 | 65.3 | 46.4 | -| 15 | [octen-0.6b](https://huggingface.co/Octen/Octen-Embedding-0.6B) | **65.1** | 53.4 | 61.5 | 66.3 | 48.0 | -| 16 | [embeddinggemma-2](https://huggingface.co/google/embeddinggemma-2) ¹ | **65.1** | 53.2 | 61.5 | 69.6 | 45.9 | -| 17 | [qwen3-0.6b](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) | **62.9** | 51.3 | 59.3 | 67.1 | 46.9 | -| 18 | [granite-97m-multi-r2](https://huggingface.co/ibm-granite/granite-embedding-97m-multilingual-r2) | **61.9** | 50.4 | 58.3 | 62.8 | 37.7 | -| 19 | [text-embedding-3-small](https://platform.openai.com/docs/guides/embeddings) | **58.4** | 46.2 | 54.4 | 56.5 | 35.8 | -| 20 | [mistral-embed-1b](https://huggingface.co/mistralai/Mistral-Multimodal-Embed-1B) | **39.9** | 27.6 | 35.8 | 35.2 | 28.2 | -| 21 | [para-multi-minilm-l12](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) | **39.4** | 28.6 | 35.7 | 41.3 | 28.1 | +| 2 | [gemini-embedding-001](https://openrouter.ai/google/gemini-embedding-001) | **72.8** | 62.3 | 69.6 | 75.3 | 59.9 | +| 3 | [bge-m3-all](https://huggingface.co/BAAI/bge-m3) ¹ | **72.5** | 61.3 | 69.0 | 74.7 | 45.2 | +| 4 | [openembed-4b](https://huggingface.co/UCSC-VLAA/OpenEmbed-4B) | **72.1** | 60.4 | 68.6 | 73.0 | 50.4 | +| 5 | [octen-8b](https://huggingface.co/Octen/Octen-Embedding-8B) | **71.2** | 60.2 | 67.8 | 73.8 | 56.8 | +| 6 | [qwen3-8b](https://huggingface.co/Qwen/Qwen3-Embedding-8B) | **70.7** | 59.5 | 67.3 | 75.1 | 54.2 | +| 7 | [octen-4b](https://huggingface.co/Octen/Octen-Embedding-4B) | **70.1** | 58.9 | 66.8 | 73.6 | 54.2 | +| 8 | [pplx-embed-v1-0.6b](https://openrouter.ai/perplexity/pplx-embed-v1-0.6b) | **70.0** | 58.7 | 66.5 | 70.1 | 47.5 | +| 9 | [openembed-2b](https://huggingface.co/UCSC-VLAA/OpenEmbed-2B) | **69.7** | 57.8 | 66.2 | 71.8 | 47.3 | +| 10 | [bge-m3](https://huggingface.co/BAAI/bge-m3) ¹ | **69.3** | 57.6 | 65.6 | 71.6 | 44.4 | +| 11 | [voyage-4-lite](https://openrouter.ai/mongodb/voyage-4-lite) | **69.1** | 57.5 | 65.6 | 68.2 | 50.8 | +| 12 | [qwen3-4b](https://huggingface.co/Qwen/Qwen3-Embedding-4B) ¹ | **68.4** | 57.3 | 65.1 | 76.7 | 52.8 | +| 13 | [skill-venus-0.6b](https://huggingface.co/inclusionAI/Skill-Venus-Embedding-0.6B) | **68.2** | 56.3 | 64.5 | 70.5 | 44.8 | +| 14 | [nemotron3-1b](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16) | **68.1** | 56.1 | 64.3 | 70.5 | — | +| 15 | [embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) | **66.8** | 54.1 | 63.1 | 67.9 | 47.1 | +| 16 | [openembed-0.8b](https://huggingface.co/UCSC-VLAA/OpenEmbed-0.8B) | **66.6** | 54.5 | 62.9 | 69.6 | 43.3 | +| 17 | [text-embedding-3-large](https://platform.openai.com/docs/guides/embeddings) | **66.5** | 53.7 | 62.6 | 65.3 | 46.4 | +| 18 | [octen-0.6b](https://huggingface.co/Octen/Octen-Embedding-0.6B) | **65.1** | 53.4 | 61.5 | 66.3 | 48.0 | +| 19 | [embeddinggemma-2](https://huggingface.co/google/embeddinggemma-2) ¹ | **65.1** | 53.2 | 61.5 | 69.6 | 45.9 | +| 20 | [qwen3-0.6b](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) | **62.9** | 51.3 | 59.3 | 67.1 | 46.9 | +| 21 | [granite-97m-multi-r2](https://huggingface.co/ibm-granite/granite-embedding-97m-multilingual-r2) | **61.9** | 50.4 | 58.3 | 62.8 | 37.7 | +| 22 | [text-embedding-3-small](https://platform.openai.com/docs/guides/embeddings) | **58.4** | 46.2 | 54.4 | 56.5 | 35.8 | +| 23 | [mistral-embed-1b](https://huggingface.co/mistralai/Mistral-Multimodal-Embed-1B) | **39.9** | 27.6 | 35.8 | 35.2 | 28.2 | +| 24 | [para-multi-minilm-l12](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) | **39.4** | 28.6 | 35.7 | 41.3 | 28.1 | Native-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. diff --git a/assets/bge_m3_modes.png b/assets/bge_m3_modes.png index 4ca1978496560cc681d33d2b57ff48c55a255ecb..32f7ede5b8417c94966ff6a4838cdc7f263e40f9 100644 --- a/assets/bge_m3_modes.png +++ b/assets/bge_m3_modes.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4cfc1800477970643a21b21b383b074b33a9efe1ae04443cd2f9be3601fd3c98 -size 159338 +oid sha256:d5f50e11dcacaaf4573b9ceff2fb252b2d8df0c19cb99271f0b55cbda5e82d2a +size 242741 diff --git a/assets/heatmap.png b/assets/heatmap.png index 53b621458987cac2631dbedce525e135ed8a1606..caef3d5619f3761b4e16d07e28baafe645b55a71 100644 --- a/assets/heatmap.png +++ b/assets/heatmap.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:89419b1eda4a9260ee02a634308807121ca5bb8069ca2c11542c87c314a350d2 -size 285363 +oid sha256:bf2ed6e94f7142de4c0c5567ff9e14a85d119406b100e2e158183128940618fc +size 452363 diff --git a/assets/leaderboard.png b/assets/leaderboard.png index e90d5e1f0bfd406ad994b4b552be31618dfa8e6c..eed6e64910a82e8fd4e6ebdcd39a8900de933b1a 100644 --- a/assets/leaderboard.png +++ b/assets/leaderboard.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c880226c09e7b9d12343d08bbb53c259d5621cbd3fcdfb8850d96808607f5c5 -size 183195 +oid sha256:fdeafb716a71e2a87c8b48c739f12069485d2c58d7112393d99ccc146d917ef9 +size 286925 diff --git a/assets/long_context.png b/assets/long_context.png index 26089a3f3e66090ad71303cc1f77d756a5ffbc93..1d7e56c1d0f61e18cc6678457ea5f62ca2a3286f 100644 --- a/assets/long_context.png +++ b/assets/long_context.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4534d9fcd2586e820bc96240041723cfe32d7c307a5ea9cde89f46c4b3a73735 -size 199711 +oid sha256:faeba1b2a0371150da22e4b61fe54bb2f6f8764049e18550a421d8ab6261cde9 +size 311478 diff --git a/assets/mrl.png b/assets/mrl.png index 6a4eef32c9a41a57f9a1299b64faf46640909d28..0e20f61b0228e8eae7307ef275afde4b64557483 100644 --- a/assets/mrl.png +++ b/assets/mrl.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8c66010876170ecedf635dc92ca0c94fd7001fd986984baa5c72cdd549b941e2 -size 265576 +oid sha256:95c2684f280bd72787c6ba68b80d1fbe4d5bf7f9328c6f953ba0ba5168b2a99a +size 402063 diff --git a/assets/size_vs_accuracy.png b/assets/size_vs_accuracy.png index 6b9203135741785658c35707e9d914a193539ba7..bb921a9e8683807ef1a06d04b00e6ce17426b5d2 100644 --- a/assets/size_vs_accuracy.png +++ b/assets/size_vs_accuracy.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:22f2e0f8e3b3dfba9d9eda8f564e0789f341cc5e487708dec1d4112d693a500c -size 140225 +oid sha256:eb1785f36489cbc4e17798d1ff8862d636f569c2b5329474b689fa97c904f457 +size 253679 diff --git a/code/run2/report_pro.py b/code/run2/report_pro.py index 7b2973c7747319fac171ef70ab780519c99f8b24..245479f5057362ca77d82f8c0af6686af7cfa649 100644 --- a/code/run2/report_pro.py +++ b/code/run2/report_pro.py @@ -14,12 +14,12 @@ SHORT = {"ZacLegalTextRetrieval": "Zalo Legal", "TVPLRetrieval": "TVPL legal", " "WebFAQRetrieval:vie": "WebFAQ", "VieQuADRetrieval": "ViQuAD", "MLQARetrieval:vie-vie": "MLQA", "XQuADRetrieval:vi": "XQuAD", "BelebeleRetrieval:vie_Latn-vie_Latn": "Belebele", "PublicHealthQA:vietnamese": "PublicHealth", "SciFact-VN": "SciFact-VN", "NFCorpus-VN": "NFCorpus-VN", "ArguAna-VN": "ArguAna-VN", "FiQA2018-VN": "FiQA-VN"} -PARAMS = {"omnievie-4b": 4.54, "openembed-2b": 2.21, "mistral-embed-1b": 1.24, "openembed-0.8b": 0.85, "qwen3-0.6b": 0.60, +PARAMS = {"nemotron3-8b": 7.95, "openembed-9b": 8.39, "openembed-4b": 4.54, "nemotron3-1b": 1.14, "omnievie-4b": 4.54, "openembed-2b": 2.21, "mistral-embed-1b": 1.24, "openembed-0.8b": 0.85, "qwen3-0.6b": 0.60, "skill-venus-0.6b": 0.60, "nandi-450m": 0.44, "embeddinggemma-300m": 0.30, "nandi-150m": 0.146, "para-multi-minilm-l12": 0.118, "all-mpnet-base": 0.109, "bge-base-en-v1.5": 0.109, "granite-97m-multi-r2": 0.097, "all-minilm-l12": 0.033, "all-minilm-l6": 0.023, "qwen-fp16": 4.02, "bgem3-fp16": 0.568, "eg2-fp32": 0.271, "qwen3-8b": 7.57, "qwen3-4b": 4.02, "text-embedding-3-small": None, "text-embedding-3-large": None, "gemini-embedding-2": None, "gemini-embedding-001": None, "voyage-4-lite": None, "pplx-embed-v1-0.6b": 0.6, "octen-8b": 7.57, "octen-4b": 4.02, "octen-0.6b": 0.60, "bge-m3": 0.568, "bge-m3-all": 0.568, "embeddinggemma-2": 0.271} -VI_SUPPORT = {"omnievie-4b": "?", "openembed-2b": "EN card", "openembed-0.8b": "EN card", "mistral-embed-1b": "yes", "qwen3-0.6b": "yes", +VI_SUPPORT = {"nemotron3-8b": "yes", "nemotron3-1b": "yes", "openembed-9b": "EN card", "openembed-4b": "EN card", "omnievie-4b": "?", "openembed-2b": "EN card", "openembed-0.8b": "EN card", "mistral-embed-1b": "yes", "qwen3-0.6b": "yes", "skill-venus-0.6b": "via Qwen3", "nandi-450m": "no", "nandi-150m": "no", "embeddinggemma-300m": "yes", "para-multi-minilm-l12": "yes", "all-mpnet-base": "no", "bge-base-en-v1.5": "no", "granite-97m-multi-r2": "yes", "all-minilm-l12": "no", "all-minilm-l6": "no", "qwen3-8b": "yes", "qwen3-4b": "yes", "text-embedding-3-small": "API", "text-embedding-3-large": "API", "gemini-embedding-2": "API", "gemini-embedding-001": "API", "voyage-4-lite": "API", "pplx-embed-v1-0.6b": "API", "octen-8b": "multilingual", "octen-4b": "multilingual", "octen-0.6b": "multilingual", "bge-m3": "yes", "bge-m3-all": "yes", "embeddinggemma-2": "yes"} diff --git a/code/run2/worker.py b/code/run2/worker.py index f08acd8d1ec0eaef605442d4bc1840ef4f6b9767..6c2bf6ef4c543e908e1a2b5148203cd004f039ff 100644 --- a/code/run2/worker.py +++ b/code/run2/worker.py @@ -22,7 +22,7 @@ def log(msg): def jid(j): - return f"{j['model']}__{j['task'].replace(':', '_')}" + return j.get("id") or f"{j['model']}__{j['task'].replace(':', '_')}" def release_own_stale(): @@ -143,7 +143,23 @@ def make_enc(spec): return zoo.Enc(key, dtype=dt or "bf16", max_len=int(L) if L else None) +def run_shard(enc, j): + """Document-chunk job (option A): encode corpus[start:end] (or all queries) and save fp16 embeddings for a later merge.""" + corpus, queries, _ = data.load_task(j["task"]) + d = R / "shards" / j["model"] / j["task"].replace(":", "_"); d.mkdir(parents=True, exist_ok=True) + t = time.time() + if j["shard"] == "q": + E = enc.encode_queries([q["text"] for q in queries], j["task"]); f = d / "queries.npy" + else: + E = enc.encode_docs(corpus[j["start"]:j["end"]]); f = d / f"docs_{j['start']:07d}.npy" + tmp = f.with_suffix(".tmp.npy"); np.save(tmp, np.asarray(E, dtype=np.float32).astype(np.float16)); tmp.rename(f) + log(f"SHARD {jid(j)} n={len(E)} {time.time()-t:.0f}s nan={int(np.isnan(E).any(1).sum())}") + return [] + + def run_job(enc, j): + if j.get("shard") is not None: + return run_shard(enc, j) task = j["task"] corpus, queries, qrels = data.load_task(task) if j["model"].startswith("bge-m3"): @@ -224,12 +240,16 @@ def main(): log(f"loaded {j['model']} in {time.time()-t:.1f}s") t = time.time() res = run_job(enc, j) - with open(R / "metrics" / f"{name}.jsonl", "w") as f: - for r in res: - f.write(json.dumps({**r, "wall_s": time.time() - t}) + "\n") + if res: + with open(R / "metrics" / f"{name}.jsonl", "w") as f: + for r in res: + f.write(json.dumps({**r, "wall_s": time.time() - t}) + "\n") (R / "done" / f"{name}.done").write_text(str(time.time())) - m = res[0] - log(f"DONE {name} nDCG@10={m['ndcg10']:.2f} P@1={m['p1']:.2f} MRR@10={m['mrr10']:.2f} R@100={m['recall100']:.2f} ({time.time()-t:.0f}s)") + if res: + m = res[0] + log(f"DONE {name} nDCG@10={m['ndcg10']:.2f} P@1={m['p1']:.2f} MRR@10={m['mrr10']:.2f} R@100={m['recall100']:.2f} ({time.time()-t:.0f}s)") + else: + log(f"DONE {name} (shard) ({time.time()-t:.0f}s)") except Exception as e: (R / "done" / f"{name}.failed").write_text(traceback.format_exc()) (R / "done" / f"{name}.done").write_text("FAILED") diff --git a/code/run2/zoo.py b/code/run2/zoo.py index 4b0b1b88abc9800e0e8186e1b036698166971b67..48d2b871fa07bc3188dd3c7f64c8c6bc6b340de6 100644 --- a/code/run2/zoo.py +++ b/code/run2/zoo.py @@ -60,6 +60,8 @@ def base(task): class Enc: def __init__(self, key, dtype="bf16", max_len=None): + if dtype == "bf16" and os.environ.get("EMBED_DTYPE"): # e.g. fp16 on GPUs without native bf16 (GPU) + dtype = os.environ["EMBED_DTYPE"] self.key, self.dtype_name = key, dtype self.hf, self.kind, self.max_len, self.bs = MODELS[key] override = max_len diff --git a/docs/methodology.md b/docs/methodology.md index 32c5fe4959af2ceae0d32c4566d7621548de2c0f..7b35158ff555f95f066ab3efd5dd74157ff8d914 100644 --- a/docs/methodology.md +++ b/docs/methodology.md @@ -24,7 +24,7 @@ Jobs (model × dataset, or document shards of 5,000 docs for 8B models) are pull | others (paraphrase-multilingual, granite, Mistral-Embed) | raw text | raw text | model config | | OpenAI text-embedding-3-small (API) | raw text, first 512 tokens (cl100k_base) | raw text, first 512 tokens | API (1,536-d; Matryoshka rows = first 1024/512/256 dims re-normalised) | -Models are pinned to the Hugging Face commit downloaded on 2026-12-03. API models: OpenAI models through the **Batch API** (50% price; text-embedding-3-small ≈ $0.93), and Gemini / Voyage / Perplexity through **OpenRouter** (≈ $13.7 for all three). All API inputs are cut to the first 512 tokens with the cl100k_base tokenizer, because the providers' own tokenizers aren't public. Precision: bf16 in run 2; run 1 used fp16 (EmbeddingGemma 2: fp32). +Models are pinned to the Hugging Face commit downloaded on 2026-12-03. API models: OpenAI models through the **Batch API** (50% price; text-embedding-3-small ≈ $0.93), and Gemini (embedding-2, embedding-001) / Voyage / Perplexity through **OpenRouter** (≈ $22.5 for all four). All API inputs are cut to the first 512 tokens with the cl100k_base tokenizer, because the providers' own tokenizers aren't public. Precision: bf16 in run 2; run 1 used fp16 (EmbeddingGemma 2: fp32). ## 3. Hybrid retrieval (BGE-M3) diff --git a/docs/models.md b/docs/models.md index 0522585b9410a01b2d5e6ca8a9585f527a317150..70fef6d0f36383439ac674c34430505a755d14dc 100644 --- a/docs/models.md +++ b/docs/models.md @@ -4,6 +4,10 @@ Each model is run with its own recommended input format. Max input = min(model d | Model key | Hugging Face | Params | Vietnamese in model card | Input format | License | Run | |---|---|---:|---|---|---|---| +| `nemotron3-8b` | [`nvidia/Nemotron-3-Embed-8B-BF16`](https://huggingface.co/nvidia/Nemotron-3-Embed-8B-BF16) | 7.95B | yes (34 languages incl. vi) | query: / passage: prefixes · bidirectional Ministral3 · mean pooling | OpenMDW-1.1 | 2 | +| `openembed-9b` | [`UCSC-VLAA/OpenEmbed-9B`](https://huggingface.co/UCSC-VLAA/OpenEmbed-9B) | 8.39B | EN card, multilingual base | query: 'Find a passage that answers the given query.' (assumed) · Qwen3.5 base | CC-BY-NC-4.0 | 2 | +| `openembed-4b` | [`UCSC-VLAA/OpenEmbed-4B`](https://huggingface.co/UCSC-VLAA/OpenEmbed-4B) | 4.54B | EN card, multilingual base | query: 'Find a passage that answers the given query.' (assumed) · Qwen3.5 base | CC-BY-NC-4.0 | 2 | +| `nemotron3-1b` | [`nvidia/Nemotron-3-Embed-1B-BF16`](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16) | 1.14B | yes (34 languages incl. vi) | query: / passage: prefixes · bidirectional Ministral3 · mean pooling | OpenMDW-1.1 | 2 | | `qwen3-8b` | [`Qwen/Qwen3-Embedding-8B`](https://huggingface.co/Qwen/Qwen3-Embedding-8B) | 7.57B | yes | instruction on queries · last-token pooling · left padding | Apache-2.0 | 2 | | `octen-8b` | [`Octen/Octen-Embedding-8B`](https://huggingface.co/Octen/Octen-Embedding-8B) | 7.57B | multilingual | Qwen3 format (LoRA fine-tune) · doc prompt ' ' | Apache-2.0 | 2 | | `qwen3-4b` | [`Qwen/Qwen3-Embedding-4B`](https://huggingface.co/Qwen/Qwen3-Embedding-4B) | 4.02B | yes | instruction on queries · last-token pooling · left padding | Apache-2.0 | 1 + 2 | @@ -23,12 +27,12 @@ Each model is run with its own recommended input format. Max input = min(model d | `text-embedding-3-small` | [OpenAI text-embedding-3-small (API)](https://platform.openai.com/docs/guides/embeddings) | n/a | multilingual | plain text · first 512 cl100k tokens · OpenAI Batch API | commercial API | 2 | | `text-embedding-3-large` | [OpenAI text-embedding-3-large (API)](https://platform.openai.com/docs/guides/embeddings) | n/a | multilingual | plain text · first 512 cl100k tokens · OpenAI Batch API | commercial API | 2 | | `gemini-embedding-2` | [google/gemini-embedding-2 (API via OpenRouter)](https://openrouter.ai/google/gemini-embedding-2) | n/a | multilingual | task: search result | query: … / title: … | text: … · first 512 cl100k tokens | commercial API | 2 | -| `gemini-embedding-001` | [google/gemini-embedding-001 (API via OpenRouter)](https://openrouter.ai/google/gemini-embedding-001) | n/a | multilingual | query / document task handling per provider docs · first 512 cl100k tokens | commercial API | 2 | +| `gemini-embedding-001` | [google/gemini-embedding-001 (API via OpenRouter)](https://openrouter.ai/google/gemini-embedding-001) | n/a | multilingual | input_type query / document (provider pinned to Google Vertex, where document mode takes effect) · first 512 cl100k tokens | commercial API | 2 | | `voyage-4-lite` | [mongodb/voyage-4-lite (API via OpenRouter)](https://openrouter.ai/mongodb/voyage-4-lite) | n/a | multilingual | input_type query / document · first 512 cl100k tokens | commercial API | 2 | | `pplx-embed-v1-0.6b` | [perplexity/pplx-embed-v1-0.6b (API via OpenRouter)](https://openrouter.ai/perplexity/pplx-embed-v1-0.6b) | 0.6B | multilingual | plain text (input_type has no effect) · first 512 cl100k tokens | commercial API | 2 | ## Excluded -- **No Vietnamese support** (tested, then removed from this benchmark): [`sentence-transformers/all-MiniLM-L12-v2`](https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2), [`FrontiersMind/EmbeddingNandi-450M`](https://huggingface.co/FrontiersMind/EmbeddingNandi-450M), [`FrontiersMind/EmbeddingNandi-150M`](https://huggingface.co/FrontiersMind/EmbeddingNandi-150M), [`sentence-transformers/all-MiniLM-L6-v2`](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2), [`sentence-transformers/all-mpnet-base-v2`](https://huggingface.co/sentence-transformers/all-mpnet-base-v2), [`BAAI/bge-base-en-v1.5`](https://huggingface.co/BAAI/bge-base-en-v1.5). +- **No Vietnamese support** (tested, then removed from this benchmark): [`sentence-transformers/all-MiniLM-L12-v2`](https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2), [`sentence-transformers/all-mpnet-base-v2`](https://huggingface.co/sentence-transformers/all-mpnet-base-v2), [`FrontiersMind/EmbeddingNandi-450M`](https://huggingface.co/FrontiersMind/EmbeddingNandi-450M), [`sentence-transformers/all-MiniLM-L6-v2`](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2), [`FrontiersMind/EmbeddingNandi-150M`](https://huggingface.co/FrontiersMind/EmbeddingNandi-150M), [`BAAI/bge-base-en-v1.5`](https://huggingface.co/BAAI/bge-base-en-v1.5). - `knowledgator/EdgeCoder-31M`: a backbone for fine-tuning, not an embedding model; failed the sanity check. - `tencent/OmniEVIE-4B`: removed before any result. diff --git a/reports/run2-vietnamese-benchmark-report.html b/reports/run2-vietnamese-benchmark-report.html index f0285ac5591837656740912df82040261d711c02..84e3c6d8da32db253c138e8b44757ffc6e68b086 100644 --- a/reports/run2-vietnamese-benchmark-report.html +++ b/reports/run2-vietnamese-benchmark-report.html @@ -17,12 +17,12 @@ th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;le .callout{border-radius:8px;padding:10px 14px;margin:10px 0;font-size:14px;background:var(--track)} .bar{display:inline-block;height:10px;border-radius:3px;background:var(--gemma);margin-right:6px;vertical-align:middle}.chart .pl{fill:var(--ink);font-size:10.5px}:root{--c1:var(--qwen)} tr.run1 td{color:var(--muted)} tr.t4sep td{background:var(--track);font-size:12.5px} tr.t4m td:first-child{border-left:3px solid var(--accent)} td.sep,th.sep{width:6px;padding:0;border:none} td.na{color:var(--muted2);font-size:11px}

Vietnamese Embedding Benchmark

-

21 embedding models (bf16) incl. Qwen3-Embedding-8B and the re-run run-1 models · 9 native Vietnamese + 4 machine-translated retrieval sets · 274/326 jobs (0 failed) · stage: final · compared with the run-1 Qwen3-Embedding-4B, BGE-M3 and EmbeddingGemma 2 where the tasks overlap · built 2026-12-03 23:26 GMT+7

+

26 embedding models (bf16) incl. Qwen3-Embedding-8B and the re-run run-1 models · 9 native Vietnamese + 4 machine-translated retrieval sets · 316/371 jobs (0 failed) · stage: update: + OpenEmbed-4B, partial OpenEmbed-9B / Nemotron-3 · compared with the run-1 Qwen3-Embedding-4B, BGE-M3 and EmbeddingGemma 2 where the tasks overlap · built 2026-12-04 00:36 GMT+7

gemini-embedding-2
best native Vietnamese accuracy (avg nDCG@10 over the 4 large native sets: 75.9)
gemini-embedding-2
best P@1 on native Vietnamese (first result correct: 66.0%)
embeddinggemma-300m
best model under 350M params (66.8 nDCG@10)
-
274/326
jobs completed
+
316/371
jobs completed

Conclusions

Verdict for Vietnamese retrieval. None of the 14 new models beats the run-1 Qwen3-Embedding-4B (Zalo Legal nDCG@10 76.7, translated-4 avg 52.8). It is still the most accurate on every overlapping set. Among the new models, OpenEmbed-2B is the most accurate (native-4 69.7, P@1 57.8). The best quality for its size is embeddinggemma-300m, which reaches 72.2 on Zalo Legal with a 2,048-token window. That beats BGE-M3 dense (71.6) at about half its size. Models without Vietnamese support were removed after testing.
@@ -46,26 +46,26 @@ th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;le

1 · Vietnamese leaderboard

-
#ModelParamsVI in cardNative-4 nDCG@10P@1MRR@10R@10R@100Zalo Legal nDCG@10Zalo P@1All 9 native nDCGTranslated-4 nDCG
1gemini-embedding-2
google/gemini-embedding-2 (OpenRouter)
APIAPI75.966.072.985.793.380.267.083.159.2
2bge-m3-all
BAAI/bge-m3 (dense+sparse+ColBERT) · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
0.57Byes72.4—69.0—92.574.7—79.045.2
3octen-8b
Octen/Octen-Embedding-8B
7.57Bmultilingual71.260.267.882.292.173.858.579.356.8
4qwen3-8b
Qwen/Qwen3-Embedding-8B
7.57Byes70.759.567.381.991.275.159.569.954.2
5octen-4b
Octen/Octen-Embedding-4B
4.02Bmultilingual70.158.966.881.591.773.658.577.354.2
6pplx-embed-v1-0.6b
perplexity/pplx-embed-v1-0.6b (OpenRouter)
0.60BAPI70.058.766.581.491.670.153.977.247.5
7openembed-2b
UCSC-VLAA/OpenEmbed-2B
2.21BEN card69.757.866.281.992.371.854.976.747.3
8bge-m3
BAAI/bge-m3 · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
0.57Byes69.357.665.681.390.971.654.676.144.4
9voyage-4-lite
mongodb/voyage-4-lite (OpenRouter)
APIAPI69.157.565.680.892.068.252.577.750.8
10qwen3-4b
Qwen/Qwen3-Embedding-4B · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
4.02Byes68.457.365.179.489.176.761.469.752.8
11skill-venus-0.6b
inclusionAI/Skill-Venus-Embedding-0.6B
0.60Bvia Qwen368.256.364.580.591.770.553.974.044.8
12embeddinggemma-300m
google/embeddinggemma-300m
0.30Byes66.854.163.179.690.967.947.874.347.1
13openembed-0.8b
UCSC-VLAA/OpenEmbed-0.8B
0.85BEN card66.654.562.979.090.569.652.773.243.3
14text-embedding-3-large
OpenAI text-embedding-3-large (API)
APIAPI66.553.762.679.590.865.345.474.246.4
15octen-0.6b
Octen/Octen-Embedding-0.6B
0.60Bmultilingual65.153.461.577.489.266.349.571.248.0
16embeddinggemma-2
google/embeddinggemma-2 · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
0.27Byes65.153.261.577.490.369.654.872.745.9
17qwen3-0.6b
Qwen/Qwen3-Embedding-0.6B
0.60Byes62.951.359.375.187.267.150.965.646.9
18granite-97m-multi-r2
ibm-granite/granite-embedding-97m-multilingual-r2
0.10Byes61.950.458.373.786.462.846.468.737.7
19text-embedding-3-small
OpenAI text-embedding-3-small (API)
APIAPI58.446.254.471.586.156.539.266.035.8
20mistral-embed-1b
mistralai/Mistral-Multimodal-Embed-1B
1.24Byes39.927.635.853.573.535.220.147.628.2
21para-multi-minilm-l12
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
0.12Byes39.428.635.751.970.941.326.053.328.1
+
#ModelParamsVI in cardNative-4 nDCG@10P@1MRR@10R@10R@100Zalo Legal nDCG@10Zalo P@1All 9 native nDCGTranslated-4 nDCG
1gemini-embedding-2
google/gemini-embedding-2 (OpenRouter)
APIAPI75.966.072.985.793.380.267.083.159.2
2gemini-embedding-001
google/gemini-embedding-001 (API via OpenRouter)
APIAPI72.862.369.683.292.175.360.581.359.9
3bge-m3-all
BAAI/bge-m3 (dense+sparse+ColBERT) · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
0.57Byes72.4—69.0—92.574.7—79.045.2
4openembed-4b
UCSC-VLAA/OpenEmbed-4B
4.54BEN card72.160.468.683.793.673.056.0—50.4
5octen-8b
Octen/Octen-Embedding-8B
7.57Bmultilingual71.260.267.882.292.173.858.579.356.8
6qwen3-8b
Qwen/Qwen3-Embedding-8B
7.57Byes70.759.567.381.991.275.159.569.954.2
7octen-4b
Octen/Octen-Embedding-4B
4.02Bmultilingual70.158.966.881.591.773.658.577.354.2
8pplx-embed-v1-0.6b
perplexity/pplx-embed-v1-0.6b (OpenRouter)
0.60BAPI70.058.766.581.491.670.153.977.247.5
9openembed-2b
UCSC-VLAA/OpenEmbed-2B
2.21BEN card69.757.866.281.992.371.854.976.747.3
10bge-m3
BAAI/bge-m3 · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
0.57Byes69.357.665.681.390.971.654.676.144.4
11voyage-4-lite
mongodb/voyage-4-lite (OpenRouter)
APIAPI69.157.565.680.892.068.252.577.750.8
12qwen3-4b
Qwen/Qwen3-Embedding-4B · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
4.02Byes68.457.365.179.489.176.761.469.752.8
13skill-venus-0.6b
inclusionAI/Skill-Venus-Embedding-0.6B
0.60Bvia Qwen368.256.364.580.591.770.553.974.044.8
14embeddinggemma-300m
google/embeddinggemma-300m
0.30Byes66.854.163.179.690.967.947.874.347.1
15openembed-0.8b
UCSC-VLAA/OpenEmbed-0.8B
0.85BEN card66.654.562.979.090.569.652.773.243.3
16text-embedding-3-large
OpenAI text-embedding-3-large (API)
APIAPI66.553.762.679.590.865.345.474.246.4
17octen-0.6b
Octen/Octen-Embedding-0.6B
0.60Bmultilingual65.153.461.577.489.266.349.571.248.0
18embeddinggemma-2
google/embeddinggemma-2 · run-1 model: Zalo + translated from run 1, other sets re-run on GPU
0.27Byes65.153.261.577.490.369.654.872.745.9
19qwen3-0.6b
Qwen/Qwen3-Embedding-0.6B
0.60Byes62.951.359.375.187.267.150.965.646.9
20granite-97m-multi-r2
ibm-granite/granite-embedding-97m-multilingual-r2
0.10Byes61.950.458.373.786.462.846.468.737.7
21text-embedding-3-small
OpenAI text-embedding-3-small (API)
APIAPI58.446.254.471.586.156.539.266.035.8
22mistral-embed-1b
mistralai/Mistral-Multimodal-Embed-1B
1.24Byes39.927.635.853.573.535.220.147.628.2
23para-multi-minilm-l12
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
0.12Byes39.428.635.751.970.941.326.053.328.1
24nemotron3-1b
nvidia/Nemotron-3-Embed-1B-BF16
1.14Byes—————70.553.6——
25nemotron3-8b
7.95Byes—————————
26openembed-9b
UCSC-VLAA/OpenEmbed-9B
8.39BEN card—————74.558.6——

Native-4 = the four large human-written sets (Zalo Legal 818 q, TVPL 9,985 q, TableMarkdown 35,791 q, WebFAQ 10,000 q), averaged with equal weight. "All 9" adds ViQuAD, MLQA, XQuAD, Belebele and PublicHealthQA (smaller or easier, mostly Wikipedia QA). Max sequence length = min(model default, 512). The Zalo Legal and Translated-4 columns are the ones shared with the run 1 benchmark, so compare the grey run 1 rows on those two columns. BGE-M3 all three modes has no P@1 because the run 1 hybrid run didn't record it.

2 · nDCG@10 per task (heatmap)

-
ModelZalo LegalTVPL legalTablesWebFAQViQuADMLQAXQuADBelebelePublicHealthSciFact-VNNFCorpus-VNArguAna-VNFiQA-VN
gemini-embedding-280.287.445.490.771.586.397.496.692.682.640.865.048.5
bge-m3-all74.782.447.385.461.886.497.596.079.865.133.346.935.7
octen-8b73.884.240.086.861.583.695.598.390.176.138.264.248.5
qwen3-8b75.184.137.686.011.967.392.296.878.473.937.260.545.1
octen-4b73.684.238.384.457.481.294.594.687.172.439.761.642.9
pplx-embed-v1-0.6b70.181.641.287.159.783.497.195.379.263.834.054.937.6
openembed-2b71.881.045.080.958.180.494.993.484.573.533.650.531.4
bge-m371.681.340.084.456.982.995.993.278.462.031.050.534.1
voyage-4-lite68.282.143.782.363.583.096.694.984.770.534.656.841.5
qwen3-4b76.783.830.183.016.570.592.793.381.172.638.857.941.8
skill-venus-0.6b70.580.043.379.047.879.793.492.479.666.530.852.729.1
embeddinggemma-300m67.979.540.479.358.878.295.393.076.870.534.155.028.9
openembed-0.8b69.678.041.677.252.577.992.890.778.768.631.446.826.4
text-embedding-3-large65.379.137.484.254.678.792.991.984.064.936.051.033.8
octen-0.6b66.377.935.480.938.377.092.392.081.069.632.856.033.4
embeddinggemma-269.676.741.173.156.781.395.194.166.468.433.053.928.2
qwen3-0.6b67.176.429.578.811.571.990.090.574.668.332.255.032.3
granite-97m-multi-r262.873.730.780.445.971.888.085.978.757.425.643.024.9
text-embedding-3-small56.570.133.273.744.171.389.483.172.255.327.240.320.6
mistral-embed-1b35.250.518.355.521.053.171.162.461.149.320.331.311.8
para-multi-minilm-l1241.352.612.251.434.064.984.182.756.542.919.637.212.8
+
ModelZalo LegalTVPL legalTablesWebFAQViQuADMLQAXQuADBelebelePublicHealthSciFact-VNNFCorpus-VNArguAna-VNFiQA-VN
gemini-embedding-280.287.445.490.771.586.397.496.692.682.640.865.048.5
gemini-embedding-00175.386.140.389.469.186.597.796.291.184.340.167.547.4
bge-m3-all74.782.447.385.461.886.497.596.079.865.133.346.935.7
openembed-4b73.083.747.584.161.481.996.1—87.273.836.655.236.2
octen-8b73.884.240.086.861.583.695.598.390.176.138.264.248.5
qwen3-8b75.184.137.686.011.967.392.296.878.473.937.260.545.1
octen-4b73.684.238.384.457.481.294.594.687.172.439.761.642.9
pplx-embed-v1-0.6b70.181.641.287.159.783.497.195.379.263.834.054.937.6
openembed-2b71.881.045.080.958.180.494.993.484.573.533.650.531.4
bge-m371.681.340.084.456.982.995.993.278.462.031.050.534.1
voyage-4-lite68.282.143.782.363.583.096.694.984.770.534.656.841.5
qwen3-4b76.783.830.183.016.570.592.793.381.172.638.857.941.8
skill-venus-0.6b70.580.043.379.047.879.793.492.479.666.530.852.729.1
embeddinggemma-300m67.979.540.479.358.878.295.393.076.870.534.155.028.9
openembed-0.8b69.678.041.677.152.577.992.890.778.768.631.446.826.4
text-embedding-3-large65.379.137.484.254.678.792.991.984.064.936.051.033.8
octen-0.6b66.377.935.480.938.377.092.392.081.069.632.856.033.4
embeddinggemma-269.676.741.173.156.781.395.194.166.468.433.053.928.2
qwen3-0.6b67.176.429.578.811.571.990.090.574.668.332.255.032.3
granite-97m-multi-r262.873.730.780.445.971.888.085.978.757.425.643.024.9
text-embedding-3-small56.570.133.273.744.171.389.483.172.255.327.240.320.6
mistral-embed-1b35.250.518.355.521.053.171.162.461.149.320.331.311.8
para-multi-minilm-l1241.352.612.251.434.064.984.182.756.542.919.637.212.8
nemotron3-1b70.5—46.474.9———————49.033.0
nemotron3-8b——51.5————————55.2—
openembed-9b74.5—49.085.0—83.596.794.988.174.937.255.6—

Left block: native Vietnamese · right block: machine-translated VN-MTEB. Grey italic rows are the run-1 models (not re-tested, per decision). They only have scores where tasks overlap; "n/a" marks native sets they were never run on.

3 · Head-to-head with the run-1 models (overlapping tasks)

-
ModelAvg nDCG@10 (Zalo + 4 translated)Avg P@1Zalo nDCG@10Zalo P@1Zalo MRR@10
gemini-embedding-263.454.680.267.075.6
octen-8b60.250.873.858.568.4
qwen3-8b58.448.375.159.569.9
octen-4b58.048.773.658.568.6
qwen3-4b57.648.776.761.471.8
Qwen3-Embedding-4B (run 1)57.648.776.761.471.8
voyage-4-lite54.345.568.252.563.2
openembed-2b52.240.971.854.966.9
pplx-embed-v1-0.6b52.143.570.153.964.5
octen-0.6b51.642.366.349.560.6
embeddinggemma-300m51.340.567.947.862.1
bge-m3-all51.1—74.7—69.4
BGE-M3 all three modes (run 1)51.1—74.7—69.4
qwen3-0.6b51.042.367.150.961.1
embeddinggemma-250.641.469.654.864.7
EmbeddingGemma 2 (run 1)50.641.469.654.864.7
text-embedding-3-large50.239.565.345.458.9
skill-venus-0.6b49.941.170.553.964.6
bge-m349.840.771.654.665.5
BGE-M3 (run 1)49.840.771.654.665.5
openembed-0.8b48.639.269.652.764.0
granite-97m-multi-r242.734.162.846.457.2
text-embedding-3-small40.031.956.539.250.2
para-multi-minilm-l1230.821.041.326.035.3
mistral-embed-1b29.622.535.220.129.6
-

4 · Size vs Vietnamese legal accuracy (Zalo Legal nDCG@10)

0204060801000.03B0.1B0.3B1B3Bparameters (log scale)mistral-embed-1b: 35.2mistral-embed-1b 35.2para-multi-minilm-l12: 41.3para-multi-minilm-l12 41.3granite-97m-multi-r2: 62.8granite-97m-multi-r2 62.8octen-0.6b: 66.3octen-0.6b 66.3qwen3-0.6b: 67.1qwen3-0.6b 67.1embeddinggemma-300m: 67.9embeddinggemma-300m 67.9openembed-0.8b: 69.6openembed-0.8b 69.6embeddinggemma-2: 69.6embeddinggemma-2 69.6EmbeddingGemma 2 (run 1): 69.6EmbeddingGemma 2 (run 1) 69.6pplx-embed-v1-0.6b: 70.1pplx-embed-v1-0.6b 70.1skill-venus-0.6b: 70.5skill-venus-0.6b 70.5bge-m3: 71.6bge-m3 71.6BGE-M3 (run 1): 71.6BGE-M3 (run 1) 71.6openembed-2b: 71.8openembed-2b 71.8octen-4b: 73.6octen-4b 73.6octen-8b: 73.8octen-8b 73.8bge-m3-all: 74.7bge-m3-all 74.7qwen3-8b: 75.1qwen3-8b 75.1qwen3-4b: 76.7qwen3-4b 76.7Qwen3-4B (run 1): 76.7Qwen3-4B (run 1) 76.7
+
ModelAvg nDCG@10 (Zalo + 4 translated)Avg P@1Zalo nDCG@10Zalo P@1Zalo MRR@10
gemini-embedding-263.454.680.267.075.6
gemini-embedding-00162.954.375.360.570.0
octen-8b60.250.873.858.568.4
qwen3-8b58.448.375.159.569.9
octen-4b58.048.773.658.568.6
qwen3-4b57.648.776.761.471.8
Qwen3-Embedding-4B (run 1)57.648.776.761.471.8
openembed-4b54.944.373.056.067.4
voyage-4-lite54.345.568.252.563.2
openembed-2b52.240.971.854.966.9
pplx-embed-v1-0.6b52.143.570.153.964.5
octen-0.6b51.642.366.349.560.6
embeddinggemma-300m51.340.567.947.862.1
bge-m3-all51.1—74.7—69.4
BGE-M3 all three modes (run 1)51.1—74.7—69.4
qwen3-0.6b51.042.367.150.961.1
embeddinggemma-250.641.469.654.864.7
EmbeddingGemma 2 (run 1)50.641.469.654.864.7
text-embedding-3-large50.239.565.345.458.9
skill-venus-0.6b49.941.170.553.964.6
bge-m349.840.771.654.665.5
BGE-M3 (run 1)49.840.771.654.665.5
openembed-0.8b48.639.269.652.764.0
granite-97m-multi-r242.734.162.846.457.2
text-embedding-3-small40.031.956.539.250.2
para-multi-minilm-l1230.821.041.326.035.3
mistral-embed-1b29.622.535.220.129.6
nemotron3-1b——70.553.664.6
nemotron3-8b—————
openembed-9b——74.558.669.5
+

4 · Size vs Vietnamese legal accuracy (Zalo Legal nDCG@10)

0204060801000.03B0.1B0.3B1B3Bparameters (log scale)mistral-embed-1b: 35.2mistral-embed-1b 35.2para-multi-minilm-l12: 41.3para-multi-minilm-l12 41.3granite-97m-multi-r2: 62.8granite-97m-multi-r2 62.8octen-0.6b: 66.3octen-0.6b 66.3qwen3-0.6b: 67.1qwen3-0.6b 67.1embeddinggemma-300m: 67.9embeddinggemma-300m 67.9openembed-0.8b: 69.6openembed-0.8b 69.6embeddinggemma-2: 69.6embeddinggemma-2 69.6EmbeddingGemma 2 (run 1): 69.6EmbeddingGemma 2 (run 1) 69.6pplx-embed-v1-0.6b: 70.1pplx-embed-v1-0.6b 70.1skill-venus-0.6b: 70.5skill-venus-0.6b 70.5nemotron3-1b: 70.5nemotron3-1b 70.5bge-m3: 71.6bge-m3 71.6BGE-M3 (run 1): 71.6BGE-M3 (run 1) 71.6openembed-2b: 71.8openembed-2b 71.8openembed-4b: 73.0openembed-4b 73.0octen-4b: 73.6octen-4b 73.6octen-8b: 73.8octen-8b 73.8openembed-9b: 74.5openembed-9b 74.5bge-m3-all: 74.7bge-m3-all 74.7qwen3-8b: 75.1qwen3-8b 75.1qwen3-4b: 76.7qwen3-4b 76.7Qwen3-4B (run 1): 76.7Qwen3-4B (run 1) 76.7

Orange = run-1 models. Purple = models tested on the GPU.

5 · Tokenization, truncation and throughput (measured during the run)

-
ModelMax lenTokens / VI wordDocs truncatedEncode docs/s (smoke test, 1 job per GPU)Peak VRAM GiBTotal encode min
gemini-embedding-2512——%nan0.00.0
bge-m3-all512——%nan11.60.0
octen-8b5121.4113.6%nan17.6265.4
qwen3-8b512——%5417.6289.7
octen-4b5121.4113.6%nan10.1153.9
pplx-embed-v1-0.6b512——%nan0.00.0
openembed-2b5121.3311.8%1088.276.8
bge-m3512——%nan11.60.0
voyage-4-lite512——%nan0.00.0
qwen3-4b5121.5014.1%nan10.1113.0
skill-venus-0.6b5121.4213.7%2933.027.4
embeddinggemma-300m5121.3913.7%5732.516.8
openembed-0.8b5121.3311.8%1309.295.5
text-embedding-3-large512——%nan0.00.0
octen-0.6b5121.4113.6%nan3.029.9
embeddinggemma-25121.4814.3%nan8.218.8
qwen3-0.6b5121.4213.7%2933.027.4
granite-97m-multi-r25121.3911.8%2,1814.64.2
text-embedding-3-small512——%nan0.00.0
mistral-embed-1b5121.4614.6%4654.724.3
para-multi-minilm-l121281.2662.8%7,3200.81.8
+
ModelMax lenTokens / VI wordDocs truncatedEncode docs/s (smoke test, 1 job per GPU)Peak VRAM GiBTotal encode min
gemini-embedding-2512——%nan0.00.0
gemini-embedding-001512——%nan0.00.0
bge-m3-all512——%nan11.60.0
openembed-4b5121.3311.8%2212.3305.9
octen-8b5121.4113.6%nan17.6265.4
qwen3-8b512——%5417.6289.7
octen-4b5121.4113.6%nan10.1153.9
pplx-embed-v1-0.6b512——%nan0.00.0
openembed-2b5121.3311.8%1088.276.8
bge-m3512——%nan11.60.0
voyage-4-lite512——%nan0.00.0
qwen3-4b5121.5014.1%nan10.1113.0
skill-venus-0.6b5121.4213.7%2933.027.4
embeddinggemma-300m5121.3913.7%5732.516.8
openembed-0.8b5121.3311.8%1309.284.4
text-embedding-3-large512——%nan0.00.0
octen-0.6b5121.4113.6%nan3.029.9
embeddinggemma-25121.4814.3%nan8.218.8
qwen3-0.6b5121.4213.7%2933.027.4
granite-97m-multi-r25121.3911.8%2,1814.64.2
text-embedding-3-small512——%nan0.00.0
mistral-embed-1b5121.4614.6%4654.724.3
para-multi-minilm-l121281.2662.8%7,3200.81.8
nemotron3-1b5121.4816.0%1393.0333.6
nemotron3-8b5121.8236.1%2618.7102.6
openembed-9b5121.4115.6%1719.6330.5

Throughput comes from the smoke test (one job per GPU, mixed real Vietnamese documents), because the full run deliberately ran 2 jobs per GPU (and some jobs on a gpu-b) to keep the GPUs at 100%, so its per-job timings aren't comparable. Tokens per word and truncation share come from the native-4 + FiQA-VN corpora with each model's own tokenizer (with its document prefix). English-only vocabularies break Vietnamese into many more tokens, and with 128–256-token windows they read only part of each document.

6 · Embedding size: Matryoshka truncation (native-4 avg nDCG@10)

-
gemini-embedding-23072d: 75.91536d: 75.8768d: 75.6
qwen3-8b4096d: 70.71024d: 70.3512d: 69.5256d: 68.2
voyage-4-lite1024d: 69.1512d: 68.1256d: 65.0
qwen3-4b2560d: —512d: —256d: —128d: —
embeddinggemma-300m768d: 66.8512d: 65.3256d: 62.8128d: 58.6
text-embedding-3-large3072d: 66.51024d: 65.5512d: 64.4256d: 61.8
embeddinggemma-2768d: —512d: —256d: —128d: —
qwen3-0.6b1024d: 62.9512d: 62.1256d: 60.2128d: 58.1
text-embedding-3-small1536d: 58.41024d: 57.8512d: 56.1256d: 51.9
+
gemini-embedding-23072d: 75.91536d: 75.8768d: 75.6
gemini-embedding-0013072d: 72.81536d: 72.7768d: 72.3
qwen3-8b4096d: 70.71024d: 70.3512d: 69.5256d: 68.2
voyage-4-lite1024d: 69.1512d: 68.1256d: 65.0
qwen3-4b2560d: —512d: —256d: —128d: —
embeddinggemma-300m768d: 66.8512d: 65.3256d: 62.8128d: 58.6
text-embedding-3-large3072d: 66.51024d: 65.5512d: 64.4256d: 61.8
embeddinggemma-2768d: —512d: —256d: —128d: —
qwen3-0.6b1024d: 62.9512d: 62.1256d: 60.2128d: 58.1
text-embedding-3-small1536d: 58.41024d: 57.8512d: 56.1256d: 51.9

7 · Long documents: 512 → 2,048 tokens (nDCG@10)

ModelTablesZalo LegalTVPL legal
bge-m340.0 → 40.4 (+0.4)
71.6 → 74.3 (+2.7)
81.3 → 81.3 (-0.0)
bge-m3-all47.3 → 47.9 (+0.6)
74.7 → 77.5 (+2.8)
82.4 → 82.4 (+0.0)
embeddinggemma-300m40.4 → 41.4 (+0.9)
34% of docs cut at 512
67.9 → 72.2 (+4.4)
19% of docs cut at 512
79.5 → 79.2 (-0.2)
8% of docs cut at 512
granite-97m-multi-r230.7 → 31.2 (+0.5)
23% of docs cut at 512
62.8 → 63.0 (+0.3)
21% of docs cut at 512
73.7 → 73.7 (-0.0)
9% of docs cut at 512
mistral-embed-1b18.3 → 18.5 (+0.3)
36% of docs cut at 512
35.2 → 42.7 (+7.5)
20% of docs cut at 512
50.5 → 50.4 (-0.1)
9% of docs cut at 512
octen-4b38.3 → 38.5 (+0.2)
33% of docs cut at 512
73.6 → 76.3 (+2.7)
20% of docs cut at 512
84.2 → 84.3 (+0.1)
8% of docs cut at 512
octen-8b40.0 → 40.3 (+0.3)
33% of docs cut at 512
73.8 → 77.1 (+3.3)
20% of docs cut at 512
84.2 → 84.3 (+0.1)
8% of docs cut at 512
openembed-0.8b41.6 → 42.5 (+0.9)
28% of docs cut at 512
69.6 → — (—)
18% of docs cut at 512
78.0 → — (—)
7% of docs cut at 512
openembed-2b45.0 → 46.3 (+1.3)
28% of docs cut at 512
71.8 → 70.0 (-1.8)
18% of docs cut at 512
81.0 → — (—)
7% of docs cut at 512
qwen3-0.6b29.5 → 30.7 (+1.2)
33% of docs cut at 512
67.1 → 70.1 (+3.0)
20% of docs cut at 512
76.4 → 76.5 (+0.0)
8% of docs cut at 512
qwen3-4b30.1 → 31.6 (+1.6)
33% of docs cut at 512
76.7 → 78.4 (+1.8)
83.8 → 83.9 (+0.1)
8% of docs cut at 512
qwen3-8b37.6 → 38.6 (+1.0)
75.1 → 78.3 (+3.2)
84.1 → 84.3 (+0.2)

Extra tier run after the main queue to keep the GPUs busy: the four long-context models with Vietnamese support, re-encoded with a 2,048-token window on the three native sets that have the longest documents.

8 · bf16 vs fp16 spot-check (Qwen3-Embedding-0.6B)

-
TasknDCG bf16nDCG fp16ΔP@1 bf16 → fp16NaN rows fp16
Zalo Legal67.0867.10+0.0250.89 → 50.890
SciFact-VN68.3368.13-0.2055.22 → 53.730
+
TasknDCG bf16nDCG fp16ΔP@1 bf16 → fp16NaN rows fp16
Zalo Legal67.0867.05-0.0350.89 → 50.890
SciFact-VN68.3368.13-0.2055.22 → 53.730

Method