ONNX Model Zoo

DocDBrown/Qwen3-rerank-8B-onnx

By DocDBrown · ↓ 0 · ♥ 0 · Updated 2025-12-24

What's in this repo

This page lists the files in DocDBrown/Qwen3-rerank-8B-onnx, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 339 files, including 74 .weight, 6 .json, 1 .md, 1 .jinja, 1 .txt, 1 .onnx
  • Last updated 2025-12-24

ONNX files

File Size Download
model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Qwen3-Reranker-8B (ONNX Version)

  • translated to open neural network exchange for rust inference

  • 💡 Just pull the image from docker image hub 💡

Highlights

The Qwen3 Embedding model series is the latest proprietary model of the Qwen family, specifically designed for text embedding and ranking tasks. Building upon the dense foundational models of the Qwen3 series, it provides a comprehensive range of text embeddings and reranking models in various sizes (0.6B, 4B, and 8B). This series inherits the exceptional multilingual capabilities, long-text understanding, and reasoning skills of its foundational model. The Qwen3 Embedding series represents significant advancements in multiple text embedding and ranking tasks, including text retrieval, code retrieval, text classification, text clustering, and bitext mining.

Exceptional Versatility: The embedding model has achieved state-of-the-art performance across a wide range of downstream application evaluations. The 8B size embedding model ranks No.1 in the MTEB multilingual leaderboard (as of June 5, 2025, score 70.58), while the reranking model excels in various text retrieval scenarios.

Comprehensive Flexibility: The Qwen3 Embedding series offers a full spectrum of sizes (from 0.6B to 8B) for both embedding and reranking models, catering to diverse use cases that prioritize efficiency and effectiveness. Developers can seamlessly combine these two modules. Additionally, the embedding model allows for flexible vector definitions across all dimensions, and both embedding and reranking models support user-defined instructions to enhance performance for specific tasks, languages, or scenarios.

Multilingual Capability: The Qwen3 Embedding series offer support for over 100 languages, thanks to the multilingual capabilites of Qwen3 models. This includes various programming languages, and provides robust multilingual, cross-lingual, and code retrieval capabilities.

Model Overview

Qwen3-Reranker-8B has the following features:

  • Model Type: Text Reranking
  • Supported Languages: 100+ Languages
  • Number of Paramaters: 8B
  • Context Length: 32k

For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub.

documents = [ "The capital of China is Beijing.", "Gravity is a force that attracts two bodies towards each other. It gives weight to physical objects and is responsible for the movement of planets around the sun.", ]

pairs = [format_instruction(task, query, doc) for query, doc in zip(queries, documents)]

Tokenize the input texts

inputs = process_inputs(pairs) scores = compute_logits(inputs)

print("scores: ", scores)


📌 **Tip**: We recommend that developers customize the `instruct` according to their specific scenarios, tasks, and languages. Our tests have shown that in most retrieval scenarios, not using an `instruct` on the query side can lead to a drop in retrieval performance by approximately 1% to 5%.

## Evaluation

| Model                              | Param  | MTEB-R  | CMTEB-R | MMTEB-R | MLDR   | MTEB-Code | FollowIR |
|------------------------------------|--------|---------|---------|---------|--------|-----------|----------|
| **Qwen3-Embedding-0.6B**               | 0.6B   | 61.82   | 71.02   | 64.64   | 50.26  | 75.41     | 5.09     |
| Jina-multilingual-reranker-v2-base | 0.3B   | 58.22   | 63.37   | 63.73   | 39.66  | 58.98     | -0.68    |
| gte-multilingual-reranker-base                      | 0.3B   | 59.51   | 74.08   | 59.44   | 66.33  | 54.18     | -1.64    |
| BGE-reranker-v2-m3                 | 0.6B   | 57.03   | 72.16   | 58.36   | 59.51  | 41.38     | -0.01    |
| **Qwen3-Reranker-0.6B**                | 0.6B   | 65.80   | 71.31   | 66.36   | 67.28  | 73.42     | 5.41     |
| **Qwen3-Reranker-4B**                  | 4B   | **69.76** | 75.94   | 72.74   | 69.97  | 81.20     | **14.84** |
| **Qwen3-Reranker-8B**                  | 8B     | 69.02   | **77.45** | **72.94** | **70.19** | **81.22** | 8.05     |

> **Note**:  
> - Evaluation results for reranking models. We use the retrieval subsets of MTEB(eng, v2), MTEB(cmn, v1), MMTEB and MTEB (Code), which are MTEB-R, CMTEB-R, MMTEB-R and MTEB-Code.
> - All scores are our runs based on the top-100 candidates retrieved by dense embedding model [Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B).

## Citation
If you find our work helpful, feel free to give us a cite.

@article{qwen3embedding, title={Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models}, author={Zhang, Yanzhao and Li, Mingxin and Long, Dingkun and Zhang, Xin and Lin, Huan and Yang, Baosong and Xie, Pengjun and Yang, An and Liu, Dayiheng and Lin, Junyang and Huang, Fei and Zhou, Jingren}, journal={arXiv preprint arXiv:2506.05176}, year={2025} }

Model info

text-ranking transformers
transformers onnx qwen3 text-generation text-ranking arxiv:2506.05176 base_model:Qwen/Qwen3-8B-Base base_model:quantized:Qwen/Qwen3-8B-Base license:apache-2.0 endpoints_compatible region:us
↓ 0 ♥ 0

Created: 2025-12-12

Updated: 2025-12-24

View on Hugging Face

Files (339)

.gitattributes
LICENCE
README.md
added_tokens.json
chat_template.jinja
config.json
merges.txt
model.embed_tokens.weight
model.layers.0.input_layernorm.weight
model.layers.0.post_attention_layernorm.weight
model.layers.1.input_layernorm.weight
model.layers.1.post_attention_layernorm.weight
model.layers.10.input_layernorm.weight
model.layers.10.post_attention_layernorm.weight
model.layers.11.input_layernorm.weight
model.layers.11.post_attention_layernorm.weight
model.layers.12.input_layernorm.weight
model.layers.12.post_attention_layernorm.weight
model.layers.13.input_layernorm.weight
model.layers.13.post_attention_layernorm.weight
model.layers.14.input_layernorm.weight
model.layers.14.post_attention_layernorm.weight
model.layers.15.input_layernorm.weight
model.layers.15.post_attention_layernorm.weight
model.layers.16.input_layernorm.weight
model.layers.16.post_attention_layernorm.weight
model.layers.17.input_layernorm.weight
model.layers.17.post_attention_layernorm.weight
model.layers.18.input_layernorm.weight
model.layers.18.post_attention_layernorm.weight
model.layers.19.input_layernorm.weight
model.layers.19.post_attention_layernorm.weight
model.layers.2.input_layernorm.weight
model.layers.2.post_attention_layernorm.weight
model.layers.20.input_layernorm.weight
model.layers.20.post_attention_layernorm.weight
model.layers.21.input_layernorm.weight
model.layers.21.post_attention_layernorm.weight
model.layers.22.input_layernorm.weight
model.layers.22.post_attention_layernorm.weight
model.layers.23.input_layernorm.weight
model.layers.23.post_attention_layernorm.weight
model.layers.24.input_layernorm.weight
model.layers.24.post_attention_layernorm.weight
model.layers.25.input_layernorm.weight
model.layers.25.post_attention_layernorm.weight
model.layers.26.input_layernorm.weight
model.layers.26.post_attention_layernorm.weight
model.layers.27.input_layernorm.weight
model.layers.27.post_attention_layernorm.weight
model.layers.28.input_layernorm.weight
model.layers.28.post_attention_layernorm.weight
model.layers.29.input_layernorm.weight
model.layers.29.post_attention_layernorm.weight
model.layers.3.input_layernorm.weight
model.layers.3.post_attention_layernorm.weight
model.layers.30.input_layernorm.weight
model.layers.30.post_attention_layernorm.weight
model.layers.31.input_layernorm.weight
model.layers.31.post_attention_layernorm.weight
model.layers.32.input_layernorm.weight
model.layers.32.post_attention_layernorm.weight
model.layers.33.input_layernorm.weight
model.layers.33.post_attention_layernorm.weight
model.layers.34.input_layernorm.weight
model.layers.34.post_attention_layernorm.weight
model.layers.35.input_layernorm.weight
model.layers.35.post_attention_layernorm.weight
model.layers.4.input_layernorm.weight
model.layers.4.post_attention_layernorm.weight
model.layers.5.input_layernorm.weight
model.layers.5.post_attention_layernorm.weight
model.layers.6.input_layernorm.weight
model.layers.6.post_attention_layernorm.weight
model.layers.7.input_layernorm.weight
model.layers.7.post_attention_layernorm.weight
model.layers.8.input_layernorm.weight
model.layers.8.post_attention_layernorm.weight
model.layers.9.input_layernorm.weight
model.layers.9.post_attention_layernorm.weight
model.norm.weight
model.onnx ONNX
onnx__MatMul_11237
onnx__MatMul_11244
onnx__MatMul_11245
onnx__MatMul_11268
onnx__MatMul_11269
onnx__MatMul_11270
onnx__MatMul_11271
onnx__MatMul_11272
onnx__MatMul_11279
onnx__MatMul_11280
onnx__MatMul_11303
onnx__MatMul_11304
onnx__MatMul_11305
onnx__MatMul_11306
onnx__MatMul_11307
onnx__MatMul_11314
onnx__MatMul_11315
onnx__MatMul_11338
onnx__MatMul_11339
onnx__MatMul_11340
onnx__MatMul_11341
onnx__MatMul_11342
onnx__MatMul_11349
onnx__MatMul_11350
onnx__MatMul_11373
onnx__MatMul_11374
onnx__MatMul_11375
onnx__MatMul_11376
onnx__MatMul_11377
onnx__MatMul_11384
onnx__MatMul_11385
onnx__MatMul_11408
onnx__MatMul_11409
onnx__MatMul_11410
onnx__MatMul_11411
onnx__MatMul_11412
onnx__MatMul_11419
onnx__MatMul_11420
onnx__MatMul_11443
onnx__MatMul_11444
onnx__MatMul_11445
onnx__MatMul_11446
onnx__MatMul_11447
onnx__MatMul_11454
onnx__MatMul_11455
onnx__MatMul_11478
onnx__MatMul_11479
onnx__MatMul_11480
onnx__MatMul_11481
onnx__MatMul_11482
onnx__MatMul_11489
onnx__MatMul_11490
onnx__MatMul_11513
onnx__MatMul_11514
onnx__MatMul_11515
onnx__MatMul_11516
onnx__MatMul_11517
onnx__MatMul_11524
onnx__MatMul_11525
onnx__MatMul_11548
onnx__MatMul_11549
onnx__MatMul_11550
onnx__MatMul_11551
onnx__MatMul_11552
onnx__MatMul_11559
onnx__MatMul_11560
onnx__MatMul_11583
onnx__MatMul_11584
onnx__MatMul_11585
onnx__MatMul_11586
onnx__MatMul_11587
onnx__MatMul_11594
onnx__MatMul_11595
onnx__MatMul_11618
onnx__MatMul_11619
onnx__MatMul_11620
onnx__MatMul_11621
onnx__MatMul_11622
onnx__MatMul_11629
onnx__MatMul_11630
onnx__MatMul_11653
onnx__MatMul_11654
onnx__MatMul_11655
onnx__MatMul_11656
onnx__MatMul_11657
onnx__MatMul_11664
onnx__MatMul_11665
onnx__MatMul_11688
onnx__MatMul_11689
onnx__MatMul_11690
onnx__MatMul_11691
onnx__MatMul_11692
onnx__MatMul_11699
onnx__MatMul_11700
onnx__MatMul_11723
onnx__MatMul_11724
onnx__MatMul_11725
onnx__MatMul_11726
onnx__MatMul_11727
onnx__MatMul_11734
onnx__MatMul_11735
onnx__MatMul_11758
onnx__MatMul_11759
onnx__MatMul_11760
onnx__MatMul_11761
onnx__MatMul_11762
onnx__MatMul_11769
onnx__MatMul_11770
onnx__MatMul_11793
onnx__MatMul_11794
onnx__MatMul_11795
onnx__MatMul_11796
onnx__MatMul_11797
onnx__MatMul_11804
onnx__MatMul_11805
onnx__MatMul_11828
onnx__MatMul_11829
onnx__MatMul_11830
onnx__MatMul_11831
onnx__MatMul_11832
onnx__MatMul_11839
onnx__MatMul_11840
onnx__MatMul_11863
onnx__MatMul_11864
onnx__MatMul_11865
onnx__MatMul_11866
onnx__MatMul_11867
onnx__MatMul_11874
onnx__MatMul_11875
onnx__MatMul_11898
onnx__MatMul_11899
onnx__MatMul_11900
onnx__MatMul_11901
onnx__MatMul_11902
onnx__MatMul_11909
onnx__MatMul_11910
onnx__MatMul_11933
onnx__MatMul_11934
onnx__MatMul_11935
onnx__MatMul_11936
onnx__MatMul_11937
onnx__MatMul_11944
onnx__MatMul_11945
onnx__MatMul_11968
onnx__MatMul_11969
onnx__MatMul_11970
onnx__MatMul_11971
onnx__MatMul_11972
onnx__MatMul_11979
onnx__MatMul_11980
onnx__MatMul_12003
onnx__MatMul_12004
onnx__MatMul_12005
onnx__MatMul_12006
onnx__MatMul_12007
onnx__MatMul_12014
onnx__MatMul_12015
onnx__MatMul_12038
onnx__MatMul_12039
onnx__MatMul_12040
onnx__MatMul_12041
onnx__MatMul_12042
onnx__MatMul_12049
onnx__MatMul_12050
onnx__MatMul_12073
onnx__MatMul_12074
onnx__MatMul_12075
onnx__MatMul_12076
onnx__MatMul_12077
onnx__MatMul_12084
onnx__MatMul_12085
onnx__MatMul_12108
onnx__MatMul_12109
onnx__MatMul_12110
onnx__MatMul_12111
onnx__MatMul_12112
onnx__MatMul_12119
onnx__MatMul_12120
onnx__MatMul_12143
onnx__MatMul_12144
onnx__MatMul_12145
onnx__MatMul_12146
onnx__MatMul_12147
onnx__MatMul_12154
onnx__MatMul_12155
onnx__MatMul_12178
onnx__MatMul_12179
onnx__MatMul_12180
onnx__MatMul_12181
onnx__MatMul_12182
onnx__MatMul_12189
onnx__MatMul_12190
onnx__MatMul_12213
onnx__MatMul_12214
onnx__MatMul_12215
onnx__MatMul_12216
onnx__MatMul_12217
onnx__MatMul_12224
onnx__MatMul_12225
onnx__MatMul_12248
onnx__MatMul_12249
onnx__MatMul_12250
onnx__MatMul_12251
onnx__MatMul_12252
onnx__MatMul_12259
onnx__MatMul_12260
onnx__MatMul_12283
onnx__MatMul_12284
onnx__MatMul_12285
onnx__MatMul_12286
onnx__MatMul_12287
onnx__MatMul_12294
onnx__MatMul_12295
onnx__MatMul_12318
onnx__MatMul_12319
onnx__MatMul_12320
onnx__MatMul_12321
onnx__MatMul_12322
onnx__MatMul_12329
onnx__MatMul_12330
onnx__MatMul_12353
onnx__MatMul_12354
onnx__MatMul_12355
onnx__MatMul_12356
onnx__MatMul_12357
onnx__MatMul_12364
onnx__MatMul_12365
onnx__MatMul_12388
onnx__MatMul_12389
onnx__MatMul_12390
onnx__MatMul_12391
onnx__MatMul_12392
onnx__MatMul_12399
onnx__MatMul_12400
onnx__MatMul_12423
onnx__MatMul_12424
onnx__MatMul_12425
onnx__MatMul_12426
onnx__MatMul_12427
onnx__MatMul_12434
onnx__MatMul_12435
onnx__MatMul_12458
onnx__MatMul_12459
onnx__MatMul_12460
onnx__MatMul_12461
onnx__MatMul_12462
onnx__MatMul_12469
onnx__MatMul_12470
onnx__MatMul_12493
onnx__MatMul_12494
onnx__MatMul_12495
onnx__MatMul_12496
onnx__MatMul_12497
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models