Qwen3-Reranker-0.6B, GGUF f16 with the instruction in the query
A GGUF of Qwen/Qwen3-Reranker-0.6B (revision e61197ed) for
llama.cpp's llama-server --reranking --pooling rank, as Gramscii serves it.
What changed
The weights are the original ones, converted at f16 with llama.cpp's convert_hf_to_gguf.py. Only the rerank
template (tokenizer.chat_template.rerank) was rewritten with gguf_new_metadata.py: the converted template bakes the
default instruction in and exposes only {query} and {document}, so a caller could not set the instruction the
Qwen3 card recommends customizing per task. Here the instruction travels in the query:
<|im_start|>system
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".<|im_end|>
<|im_start|>user
<Instruct>: {query}
<Document>: {document}<|im_end|>
<|im_start|>assistant
<think>
</think>
How to call it
Send the instruction and the question as one query, in the card's own lines:
{"query": "Given a web search query, retrieve relevant passages that answer the query\n<Query>: what is the capital of China?",
"documents": ["The capital of China is Beijing."]}
relevance_score is the probability of "yes", between 0 and 1. As the Qwen3 card advises, write the instruction in
English, also when the question and the documents are in another language; a question written in the documents'
language scores them more reliably than a translation left to the model.
License
Apache-2.0, as the original model. Original work: Qwen Team, Alibaba Cloud.