Docs: method notes for the December 2026 model batch (input formats, library versions)
Browse filesFiles changed (2)
35 unmodified lines36373839404135 unmodified lines- **Matryoshka truncation**: for MRL models, the first *d* dimensions are kept and re-normalised (Qwen3: 1024/512/256; EmbeddingGemma / Nandi: 512/256/128).- **bf16 vs fp16**: Qwen3-Embedding-0.6B in both (Zalo 67.08 vs 67.10).- **NVFP4 (Nemotron-3.5)**: the NVFP4 checkpoints use the `compressed-tensors` `nvfp4-pack-quantized` format: 4-bit (E2M1) weights with FP8 scales per 16 values and a global scale, and 4-bit inputs to every linear layer with dynamic per-16 scales and a static global scale (W4A4). They are run as a faithful emulation: the weights are unpacked with the library's own decompressor, each layer input is quantised and de-quantised with the library's own `forward_quantize`, and the product runs in bf16 with fp32 accumulation. This reproduces the checkpoint's rounding; only the final accumulation order can differ from FP4 hardware. Speed of the emulation is not representative of native FP4.- **Nemotron-3.5 input format**: the card's Transformers path (chat template `query:` / `passage:` system prefix, no BOS/EOS, mean pooling, bidirectional). The template rendering was checked token-for-token against `apply_chat_template`, and the card's example scores were reproduced before the full run.- **Mistral-Multimodal-Embed-1B input check**: re-encoding SciFact-VN with the card's own text path (`get_text_features`, 512 tokens) gives nDCG@10 48.97 against 49.35 in our run (document cosine 0.998 on average), so the stored scores stand.- **English → Vietnamese** (run 1): English scores are re-computed on exactly the VN-MTEB query subset, so the drop compares the same queries.35 unmodified lines36373839404142434435 unmodified lines- **Matryoshka truncation**: for MRL models, the first *d* dimensions are kept and re-normalised (Qwen3: 1024/512/256; EmbeddingGemma / Nandi: 512/256/128).- **bf16 vs fp16**: Qwen3-Embedding-0.6B in both (Zalo 67.08 vs 67.10).- **NVFP4 (Nemotron-3.5)**: the NVFP4 checkpoints use the `compressed-tensors` `nvfp4-pack-quantized` format: 4-bit (E2M1) weights with FP8 scales per 16 values and a global scale, and 4-bit inputs to every linear layer with dynamic per-16 scales and a static global scale (W4A4). They are run as a faithful emulation: the weights are unpacked with the library's own decompressor, each layer input is quantised and de-quantised with the library's own `forward_quantize`, and the product runs in bf16 with fp32 accumulation. This reproduces the checkpoint's rounding; only the final accumulation order can differ from FP4 hardware. Speed of the emulation is not representative of native FP4.- **December 2026 batch (harrier, F2LLM-v2, jina v3/v4/v5, AITeamVN, Vintern, dangvantuan, multilingual-e5)**: same datasets, 512-token window and bf16 as above, each model's own input format from its card or `config_sentence_transformers.json`. harrier and F2LLM-v2 get the same per-dataset instructions as Qwen3 (`Instruct: <task>Query: `). jina models use their retrieval adapters and prompts (`retrieval.query`/`retrieval.passage` for v3, `task="retrieval"` with `query`/`passage` or `document` for v4/v5; v4 single-vector, text only). multilingual-e5 uses `query: ` / `passage: `. dangvantuan/vietnamese-embedding is PhoBERT: text is word-segmented with `pyvi` as its card shows, and its window is 256 tokens (258 positions). Vintern-Embedding-1B is multi-vector (128-dim per token) and scored with exact MaxSim, using the card's `process_queries` / `process_docs` format.- **Library versions for models with their own code**: models that ship custom code run on the transformers version they were written for: jina v3/v5 and dangvantuan/vietnamese-document-embedding on 4.57.6; jina-v4 on 4.52.4 with peft 0.15.2 (the card's minimum; under 4.57 its embeddings were degenerate, every similarity ≈ 0.85, so 4.57 results were discarded); Vintern on 4.48.2 (pinned in its card; its optional `flash_attn` and video-only `decord` imports are bypassed, the text path is unchanged). Every other model uses transformers 5.25.1. Each model was smoke-tested on two small datasets before its full run.- **Nemotron-3.5 input format**: the card's Transformers path (chat template `query:` / `passage:` system prefix, no BOS/EOS, mean pooling, bidirectional). The template rendering was checked token-for-token against `apply_chat_template`, and the card's example scores were reproduced before the full run.- **Mistral-Multimodal-Embed-1B input check**: re-encoding SciFact-VN with the card's own text path (`get_text_features`, 512 tokens) gives nDCG@10 48.97 against 49.35 in our run (document cosine 0.998 on average), so the stored scores stand.- **English → Vietnamese** (run 1): English scores are re-computed on exactly the VN-MTEB query subset, so the drop compares the same queries.
28 unmodified lines29303132333428 unmodified lines| `para-multi-minilm-l12` | [`sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2`](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) | 0.118B | yes | plain text · 128 tokens | Apache-2.0 | 2 || `granite-311m-multi-r2` | [`ibm-granite/granite-embedding-311m-multilingual-r2`](https://huggingface.co/ibm-granite/granite-embedding-311m-multilingual-r2) | 0.312B | yes | plain text · CLS pooling | Apache-2.0 | 2 || `granite-97m-multi-r2` | [`ibm-granite/granite-embedding-97m-multilingual-r2`](https://huggingface.co/ibm-granite/granite-embedding-97m-multilingual-r2) | 0.097B | yes | plain text | Apache-2.0 | 2 || `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 |28 unmodified lines293031323334353637383940414243444546474849505152535455565728 unmodified lines| `para-multi-minilm-l12` | [`sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2`](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) | 0.118B | yes | plain text · 128 tokens | Apache-2.0 | 2 || `granite-311m-multi-r2` | [`ibm-granite/granite-embedding-311m-multilingual-r2`](https://huggingface.co/ibm-granite/granite-embedding-311m-multilingual-r2) | 0.312B | yes | plain text · CLS pooling | Apache-2.0 | 2 || `granite-97m-multi-r2` | [`ibm-granite/granite-embedding-97m-multilingual-r2`](https://huggingface.co/ibm-granite/granite-embedding-97m-multilingual-r2) | 0.097B | yes | plain text | Apache-2.0 | 2 || `harrier-0.6b` | [`microsoft/harrier-oss-v1-0.6b`](https://huggingface.co/microsoft/harrier-oss-v1-0.6b) | 0.596B | yes (vi listed) | Instruct: <task>Query: on queries · last-token pooling · Qwen3 base | MIT | 2 || `harrier-270m` | [`microsoft/harrier-oss-v1-270m`](https://huggingface.co/microsoft/harrier-oss-v1-270m) | 0.268B | yes (vi listed) | Instruct: <task>Query: on queries · last-token pooling · Gemma3 base | MIT | 2 || `f2llm-v2-8b` | [`codefuse-ai/F2LLM-v2-8B`](https://huggingface.co/codefuse-ai/F2LLM-v2-8B) | 7.57B | yes (vi listed) | Instruct: <task>Query: on queries · last-token pooling · Qwen3 base | Apache-2.0 | 2 || `f2llm-v2-4b` | [`codefuse-ai/F2LLM-v2-4B`](https://huggingface.co/codefuse-ai/F2LLM-v2-4B) | 4.02B | yes (vi listed) | as F2LLM-v2-8B | Apache-2.0 | 2 || `f2llm-v2-1.7b` | [`codefuse-ai/F2LLM-v2-1.7B`](https://huggingface.co/codefuse-ai/F2LLM-v2-1.7B) | 1.72B | yes (vi listed) | as F2LLM-v2-8B | Apache-2.0 | 2 || `f2llm-v2-0.6b` | [`codefuse-ai/F2LLM-v2-0.6B`](https://huggingface.co/codefuse-ai/F2LLM-v2-0.6B) | 0.596B | yes (vi listed) | as F2LLM-v2-8B | Apache-2.0 | 2 || `f2llm-v2-330m` | [`codefuse-ai/F2LLM-v2-330M`](https://huggingface.co/codefuse-ai/F2LLM-v2-330M) | 0.334B | yes (vi listed) | as F2LLM-v2-8B · pruned from 0.6B | Apache-2.0 | 2 || `f2llm-v2-160m` | [`codefuse-ai/F2LLM-v2-160M`](https://huggingface.co/codefuse-ai/F2LLM-v2-160M) | 0.159B | yes (vi listed) | as F2LLM-v2-8B · pruned from 0.6B | Apache-2.0 | 2 || `f2llm-v2-80m` | [`codefuse-ai/F2LLM-v2-80M`](https://huggingface.co/codefuse-ai/F2LLM-v2-80M) | 0.08B | yes (vi listed) | as F2LLM-v2-8B · pruned from 0.6B | Apache-2.0 | 2 || `jina-v3` | [`jinaai/jina-embeddings-v3`](https://huggingface.co/jinaai/jina-embeddings-v3) | 0.572B | yes (vi listed) | retrieval.query / retrieval.passage LoRA adapters and prompts · mean pooling | CC-BY-NC-4.0 | 2 || `jina-v4` | [`jinaai/jina-embeddings-v4`](https://huggingface.co/jinaai/jina-embeddings-v4) | 3.75B | multilingual | task=retrieval · Query: / Passage: · single-vector, text path of a Qwen2.5-VL-3B model | Qwen Research License (card) | 2 || `jina-v5-small` | [`jinaai/jina-embeddings-v5-text-small`](https://huggingface.co/jinaai/jina-embeddings-v5-text-small) | 0.596B | multilingual | task=retrieval · Query: / Document: · Qwen3-0.6B base | CC-BY-NC-4.0 | 2 || `jina-v5-nano` | [`jinaai/jina-embeddings-v5-text-nano`](https://huggingface.co/jinaai/jina-embeddings-v5-text-nano) | 0.212B | multilingual | task=retrieval · Query: / Document: · EuroBERT-210m base | CC-BY-NC-4.0 | 2 || `aiteamvn-vn` | [`AITeamVN/Vietnamese_Embedding`](https://huggingface.co/AITeamVN/Vietnamese_Embedding) | 0.568B | yes (Vietnamese model) | plain text · CLS pooling · BGE-M3 fine-tuned on Vietnamese | Apache-2.0 | 2 || `aiteamvn-vn-v2` | [`AITeamVN/Vietnamese_Embedding_v2`](https://huggingface.co/AITeamVN/Vietnamese_Embedding_v2) | 0.568B | yes (Vietnamese model) | plain text · CLS pooling · BGE-M3 fine-tuned on Vietnamese | Apache-2.0 | 2 || `vintern-emb-1b` | [`5CD-AI/Vintern-Embedding-1B`](https://huggingface.co/5CD-AI/Vintern-Embedding-1B) | 0.938B | yes (Vietnamese model) | Query: / Document: … Describe the document. in the chat template · multi-vector (128-dim per token), MaxSim | not stated | 2 || `dvt-vn-emb` | [`dangvantuan/vietnamese-embedding`](https://huggingface.co/dangvantuan/vietnamese-embedding) | 0.135B | yes (Vietnamese model) | pyvi word segmentation · mean pooling · PhoBERT, 256 tokens | Apache-2.0 | 2 || `dvt-vn-doc-emb` | [`dangvantuan/vietnamese-document-embedding`](https://huggingface.co/dangvantuan/vietnamese-document-embedding) | 0.305B | yes (Vietnamese model) | plain text · CLS pooling | Apache-2.0 | 2 || `me5-small` | [`intfloat/multilingual-e5-small`](https://huggingface.co/intfloat/multilingual-e5-small) | 0.118B | yes | query: / passage: prefixes · mean pooling | MIT | 2 || `me5-large` | [`intfloat/multilingual-e5-large`](https://huggingface.co/intfloat/multilingual-e5-large) | 0.56B | yes | query: / passage: prefixes · mean pooling | MIT | 2 || `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 |
docs/methodology.md+3
docs/models.md+23