Views
No views yet
convert_hf_to_gguf.py.| File | Quant | Size | Description |
|---|---|---|---|
Qwen3-Reranker-8B-F16.gguf | F16 | 14.10 GB | Full precision, no quality loss |
Qwen3-Reranker-8B-Q8_0.gguf | Q8_0 | 7.49 GB | 8-bit quantized, half the size |
4.5e-23) because they're missing reranker-specific tensors. See llama.cpp #16407. This one works:Doc 0 (relevant): relevance_score = 0.99XX
Doc 1 (irrelevant): relevance_score = 0.00XXllama-server -m Qwen3-Reranker-8B-f16.gguf --reranking --pooling rank --embedding --port 80811curl http://localhost:8081/v1/rerank \
2 -H "Content-Type: application/json" \
3 -d '{
4 "query": "employment termination notice period",
5 "documents": [
6 "The Labour Code requires 30 calendar days written notice.",
7 "Corporate tax rates for small enterprises."
8 ]
9 }'/v1/rerank, not /v1/embeddings. The embeddings endpoint returns zeros for reranker models.convert_hf_to_gguf.py detects Qwen3-Reranker and does things naive converters skip:cls.output.weight (the yes/no classifier) from lm_headpooling_type = RANK metadataclassifier.output_labels = ["yes", "no"]1[Qwen3-Reranker-8B-f16]
2model = /path/to/Qwen3-Reranker-8B-f16.gguf
3reranking = true
4pooling = rank
5embedding = true
6ctx-size = 327681pip install huggingface_hub gguf torch safetensors sentencepiece
2python -c "from huggingface_hub import snapshot_download; snapshot_download('Qwen/Qwen3-Reranker-8B', local_dir='Qwen3-Reranker-8B-src')"
3python convert_hf_to_gguf.py --outtype f16 --outfile Qwen3-Reranker-8B-f16.gguf Qwen3-Reranker-8B-src/