alt.freeweights.qwen / Qwen3-Reranker-0.6B-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.qwenSubject:

Qwen3-Reranker-0.6B-ONNX

Date: 2026-11-15Commit: 9995c50Signed: 2DC28CC7B26A283B ✓

Text ranking model. Onnx weights, 2.23 GB in all. Published by onnx-community under Apache-2.0.

qwen2.23GBQwen3-Reranker-0.6B-ONNXonnxpermissive
FactsParamsnot statedSize2.23 GBFormatsonnxTasktext rankingLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/Qwen3-Reranker-0.6B-ONNX
# manifest sha256 5165b8a10432… · 2.23 GB · 13 files
$ fw verify ./Qwen3-Reranker-0.6B-ONNX onnx-community/Qwen3-Reranker-0.6B-ONNX
From sourceHosted (signed)onnx-community/Qwen3-Reranker-0.6B-ONNXLast check: 2026-11-15 05:05 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Qwen3-Reranker-0.6B.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Evaluate with

Scan with

Overview

Size
2.23 GB
Weights
995 MB (smallest of 2 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text ranking
License
Apache-2.0 (permissive)
Files
13, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen3-Reranker-0.6B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:05 UTCpassed

Model card

From the publisher at commit 9995c50. Shown as plain text with links; images open at the publisher.

Qwen3-Reranker-0.6B (ONNX)#

ONNX conversion of Qwen/Qwen3-Reranker-0.6B for use with Transformers.js v4.

The model is exported with ORT graph optimization (level 2), which fuses Qwen3's grouped-query attention into com.microsoft.GroupQueryAttention ops — the contrib op Transformers.js v4 uses for accelerated inference.

Available ONNX Variants#

FileFormatNotes
onnx/model_quantized.onnxint8Dynamic int8 (MatMul/Gemm only)
onnx/model_q4.onnx4-bitcom.microsoft.MatMulNBits, block_size=32

Note: fp32 and fp16 variants are not provided because this model's weights exceed the ONNX single-file size limit and require external data files (model.onnx_data), which are not supported by ONNX Runtime Web (WASM/WebGPU).

How the Reranker Works#

Qwen3-Reranker is a CausalLM-based reranker — not a classifier. It scores relevance by:

  1. Formatting query + document into a structured chat prompt
  2. Running the model and reading logits for "yes" / "no" tokens at the last token position
  3. Computing score = softmax([yes_logit, no_logit])[0]

Usage (Transformers.js v4)#

import { AutoTokenizer, AutoModelForCausalLM } from "@huggingface/transformers";

const MODEL_ID = "onnx-community/Qwen3-Reranker-0.6B-ONNX";

const tokenizer = await AutoTokenizer.from_pretrained(MODEL_ID);
const model = await AutoModelForCausalLM.from_pretrained(MODEL_ID, {
  dtype: "q4",       // "q8" | "q4"
  device: "webgpu",  // or "wasm" / "cpu"
});

// Token IDs for binary scoring
const TOKEN_YES = tokenizer.convert_tokens_to_ids("yes");
const TOKEN_NO  = tokenizer.convert_tokens_to_ids("no");

const SYSTEM_PROMPT =
  'Judge whether the Document meets the requirements based on the Query and the Instruct provided. ' +
  'Note that the answer can only be "yes" or "no".';

function buildPrompt(query, doc, instruction = "Given a web search query, retrieve relevant passages that answer the query") {
  return (
    `<|im_start|>system\n${SYSTEM_PROMPT}<|im_end|>\n` +
    `<|im_start|>user\n<Instruct>: ${instruction}\n\n<Query>: ${query}\n\n<Document>: ${doc}<|im_end|>\n` +
    `<|im_start|>assistant\n<think>\n\n</think>\n`
  );
}

async function scoreDocument(query, doc) {
  const prompt = buildPrompt(query, doc);
  const inputs = tokenizer(prompt, { truncation: true, max_length: 8192 });
  const output = await model(inputs);

  // Extract logits for the last generated token
  const seqLen = output.logits.dims[1];
  const vocabSize = output.logits.dims[2];
  const lastLogits = output.logits.data.slice(
    (seqLen - 1) * vocabSize,
    seqLen * vocabSize
  );

  const yesScore = Math.exp(lastLogits[TOKEN_YES]);
  const noScore  = Math.exp(lastLogits[TOKEN_NO]);
  return yesScore / (yesScore + noScore);  // normalized probability
}

async function rerank(query, documents) {
  const scores = await Promise.all(documents.map(doc => scoreDocument(query, doc)));
  return documents
    .map((doc, i) => ({ doc, score: scores[i] }))
    .sort((a, b) => b.score - a.score);
}

// Example
const results = await rerank(
  "What is the capital of France?",
  [
    "Berlin is the capital of Germany.",
    "Paris is the capital and largest city of France.",
    "France is a country in Western Europe.",
  ]
);
console.log(results);
// [
//   { doc: "Paris is the capital...", score: 0.982 },
//   { doc: "France is a country...", score: 0.341 },
//   { doc: "Berlin is the capital...", score: 0.018 },
// ]

await model.dispose();

Notes#

  • Padding: left-padded (configured in tokenizer_config.json)
  • Context window: 32K tokens; recommended max_length: 8192 for practical use
  • Custom instructions: A short task description (English, 1–5 words) improves accuracy by 1–5%
  • WebGPU: Recommended for best performance in browsers with Transformers.js v4
  • q4 format: Uses com.microsoft.MatMulNBits (ORT contrib op), natively supported in v4

Original Model#

See Qwen/Qwen3-Reranker-0.6B for benchmarks, training details, and full documentation.

Files

13 files · 2.23 GBWeights 995 MB (smallest of 2 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.69 KBf6c5f777211f4018c1ba42f516665c75a548eadbf6198dd51eec11f4e63948ac
README.md4.41 KB775a3ecf448cf68de687447a9e67d9e0e0a5d9684912003dab589062832fa229
added_tokens.json707 Bc0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680
chat_template.jinja4.12 KB87a2728cb8dc9fe424d624542f6060ec05a1d285ebbec578bb078900e33396b5
config.json1.36 KBea7e71d263350d75f8fd0ad710328e96453be8ce2aa9dfe296000ee1366bb869
generation_config.json214 B64d86df2173901c58389974bde21f7d2ab9eb7d79f35a337753329d39cf265c0
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
onnx/model_q4.onnx995 MB787193952a9aa58374381ec7647b160ac6c200a386dbfc3bc998a3c458081330
onnx/model_quantized.onnx1.22 GBc9428382bb48bb31e01a6034647c86d6270761781735cafbf6d5cb4a396d0450
special_tokens_map.json613 B76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json11.4 MBaeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer_config.json5.40 KB443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
9995c50e23 pinned now2026-11-15 05:05 UTC13 files · 2.23 GB

Use it

$ fw get onnx-community/Qwen3-Reranker-0.6B-ONNX
# manifest sha256 5165b8a10432… · 2.23 GB · 13 files
$ fw verify ./Qwen3-Reranker-0.6B-ONNX onnx-community/Qwen3-Reranker-0.6B-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/Qwen3-Reranker-0.6B-ONNX.json --dir ./Qwen3-Reranker-0.6B-ONNX $ python3 fw.py verify ./Qwen3-Reranker-0.6B-ONNX ./onnx-community__Qwen3-Reranker-0.6B-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/Qwen3-Reranker-0.6B-ONNX --revision 9995c50e2310679108a55f5ccd16ba8be9f17c20 --local-dir ./Qwen3-Reranker-0.6B-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
775a3ecf448cf68de687447a9e67d9e0e0a5d9684912003dab589062832fa229
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.qwenSubject: Qwen3-Reranker-0.6B-ONNXDate: 2026-11-15Commit: 9995c50Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/Qwen3-Reranker-0.6B-ONNX
Pinned commit
9995c50e2310679108a55f5ccd16ba8be9f17c20
Manifest
Qwen3-Reranker-0.6B-ONNX.json · .minisig
Manifest sha256
5165b8a10432e3e6e669b61c54fbe73c131351a8f7b5ca7d87c1d627570f98f4
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:05 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/Qwen3-Reranker-0.6B-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/Qwen3-Reranker-0.6B-ONNX.json.minisig $ minisign -Vm Qwen3-Reranker-0.6B-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen3-Reranker-0.6B · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/Qwen3-Reranker-0.6B-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen3-Reranker-0.6B-ONNX.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF