Add qwen-3 embedding 4b results
#5
by hotchpotch - opened
Add HAKARI-Bench results for Qwen/Qwen3-Embedding-4B
Summary
| Field | Value |
|---|---|
| Model | Qwen/Qwen3-Embedding-4B |
| Result directory | Qwen__Qwen3-Embedding-4B |
| Target path | hakari-results/Qwen__Qwen3-Embedding-4B |
| Result files | 551 total, 551 .json.xz |
| Evaluation method | dense |
| Core nDCG@10 | 0.6331 |
| Core score units | 88 grouped units from 257 raw task results |
Core nDCG@10
| Core component | nDCG@10 | Score units | Raw task results |
|---|---|---|---|
| MNanoBEIR | 0.6180 | 13 | 182 |
| NanoMMTEB-v2 | 0.5891 | 18 | 18 |
| NanoRTEB | 0.7366 | 14 | 14 |
| NanoMLDR | 0.6900 | 13 | 13 |
| NanoBRIGHT | 0.4439 | 20 | 20 |
| NanoCoIR | 0.8913 | 10 | 10 |
Reproducibility
| Field | Value |
|---|---|
| Model source | Qwen/Qwen3-Embedding-4B |
| Model revision | 5cf2132abc99cad020ac570b19d031efec650f2b |
| Dataset revision(s) | 017849a95097eea984680cbab35972f8d3812376, 0a6b8e4feaac801f0748d2f77291e93ceb2cfdc1, 0c8fdb149eee31b8dd5dc17fc82e6795dd1e8681, 158ceac28e2468e55a56b3d056ccbe33e13aa8d8, 193d979abe245c7e7e6dec6e9ad6360cf98edbf9, ... (48 total) |
| Evaluated at UTC | 2026-06-14T11:00:59.577164+00:00 to 2026-06-15T19:16:54.189547+00:00 |
| Generated at UTC | 2026-06-14T11:00:59.871708+00:00 to 2026-06-15T19:16:54.189564+00:00 |
| dtype | fp16 |
| device | not recorded |
| batch size | 1, 16, 64, 8 |
| attention implementation | flash_attention_2 |
| trust remote code | False |
| max sequence length | not recorded |
| candidate ranking | reranking_hybrid |
| rerank top-k | not recorded |
| query prompt name | not recorded |
| document prompt name | not recorded |
| Python | 3.12.12 (main, Dec 9 2025, 19:02:36) [Clang 21.1.4 ] |
| Platform | Linux-6.8.0-107-generic-x86_64-with-glibc2.39 |
| torch | 2.9.0 |
| transformers | 5.3.0 |
| sentence-transformers | 5.4.1 |
| datasets | 4.8.4 |
| CUDA | available=True, version=12.8 |
| CUDA devices | 0: NVIDIA GeForce RTX 5090, 1: NVIDIA GeForce RTX 5090 |
Command
PYTHONPATH=$PWD uv run hakari-bench evaluate dense \
--model Qwen/Qwen3-Embedding-4B \
--model-loader examples.custom_backends.tei_embedding:load_model \
--model-loader-kwargs-json '{"endpoint":"http://127.0.0.1:8080","model":"Qwen/Qwen3-Embedding-4B","timeout":600}' \
--all \
--dtype fp16 \
--attn-implementation flash_attention_2 \
--query-prompt $'Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery:' \
--document-prompt '' \
--embedding-variant truncate:2048,1536,1024,768,512,256,128,64,32 \
--batch-size 16 \
--results-dir tmp/tei-qwen3-embedding-4b-full-hakari
Submitter Notes
- These are standard
--alldense results generated through a Text Embeddings Inference OpenAI embeddings-compatible backend. - TEI served
Qwen/Qwen3-Embedding-4Blocally athttp://127.0.0.1:8080with imageghcr.io/huggingface/text-embeddings-inference:120-1.9, dtypefloat16,--max-batch-tokens 40960,--max-client-batch-size 128, and--payload-limit 64000000. - Prompt settings follow the Qwen3 embedding retrieval guidance: query prefix
Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery:and no document prefix. - The run included full-dimension results plus default
int8,binaryandrescore:int8,binaryvariants, and explicit truncation variants for 2048, 1536, 1024, 768, 512, 256, 128, 64, and 32 dimensions. - The evaluation was resumed. Earlier attempts used batch sizes 64, 8, and 1 before increasing the TEI payload limit for long-document tasks; the final resumed command used batch size 16. Existing result files were reused, so per-task JSON preserves the batch size used when each task file was produced.
- Final CLI summary: primary metric
ndcg@10, primary metric mean across all evaluated result files0.6455653533036781, evaluated count 339, cache hit count 212.
Checklist
- Result files are committed under
hakari-results/Qwen__Qwen3-Embedding-4B/. - Result files are compressed
.json.xz; no caches, DuckDB files, HTML reports, or local scratch artifacts are included. - The result JSON records model revision, dataset revision, runtime configuration, and package versions.
- Core nDCG@10 above was generated from the submitted result files.
- Any non-default prompt, sequence length, attention implementation, candidate ranking, or reranker setting is documented above.
hotchpotch changed pull request status to open
hotchpotch changed pull request status to merged