Instructions to use ethicalabs/Qwen3-Reranker-8B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ethicalabs/Qwen3-Reranker-8B-GGUF", filename="Qwen3-Reranker-8B.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Use Docker
docker model run hf.co/ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
- LM Studio
- Jan
- Ollama
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with Ollama:
ollama run hf.co/ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
- Unsloth Studio
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ethicalabs/Qwen3-Reranker-8B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ethicalabs/Qwen3-Reranker-8B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ethicalabs/Qwen3-Reranker-8B-GGUF to start chatting
- Pi
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with Docker Model Runner:
docker model run hf.co/ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
- Lemonade
How to use ethicalabs/Qwen3-Reranker-8B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ethicalabs/Qwen3-Reranker-8B-GGUF:Q8_0
Run and chat with the model
lemonade run user.Qwen3-Reranker-8B-GGUF-Q8_0
List all available models
lemonade list
ethicalabs/Qwen3-Reranker-8B-GGUF
This is a Q8_0 quantized GGUF of Qwen/Qwen3-Reranker-8B
converted with llama.cpp's convert_hf_to_gguf.py (commit b820cc8).
Why this exists
All publicly available Q8_0 GGUF conversions of Qwen3-Reranker-8B (as of July 2026)
are broken for use with llama.cpp's /v1/rerank endpoint — they return null
relevance scores on every query.
| Source | Size | tokenizer.chat_template.rerank |
Rerank works? |
|---|---|---|---|
| Voodisss | 8.71 GB | ✗ | ✗ |
| mradermacher | 8.71 GB | ✗ | ✗ |
| QuantFactory | 8.71 GB | ✗ | ✗ |
| DevQuasar | 8.71 GB | ✗ | ✗ |
| This repo | 8.04 GB | ✓ | ✓ |
Root cause
The broken GGUFs are missing the tokenizer.chat_template.rerank key in the GGUF
metadata. Without it, llama.cpp's /v1/rerank endpoint uses the default chat
template to format query+document pairs, which truncates the input (128 tokens
instead of 560) and produces null relevance scores.
Converting from the original HuggingFace model with a recent llama.cpp
convert_hf_to_gguf.py correctly adds this key, producing a working GGUF.
The file size difference (8.04 GB vs 8.71 GB) is because the broken conversions duplicate shared weights (embedding/output layer), bloating the file by ~670 MB.
Verification
Tested with llama.cpp server-vulkan image (commit 7af4279f4)
Conversion command
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
pip install transformers torch sentencepiece
python convert_hf_to_gguf.py Qwen/Qwen3-Reranker-8B --outtype q8_0 --outfile Qwen3-Reranker-8B.Q8_0.gguf
models.ini config
[qwen3-reranker-8b]
model = ../models/Qwen3-Reranker-8B.Q8_0.gguf
load-on-startup = 1
reranking = true
embeddings = true
pooling = rank
spec-default = 1
ctx-size = 32768
Usage with llama.cpp
Start the server:
llama-server --models-preset models.ini --port 9001 --host 0.0.0.0
Rerank API:
curl -X POST http://localhost:9001/v1/rerank \
-H "Content-Type: application/json" \
-d '{"model":"qwen3-reranker-8b","query":"your query","documents":["doc1","doc2"]}'
Original Model Card — Qwen3-Reranker-8B
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.
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.
Multilingual Capability: The Qwen3 Embedding series offer support for over 100 languages, thanks to the multilingual capabilites of Qwen3 models.
Model Overview
- Model Type: Text Reranking
- Supported Languages: 100+ Languages
- Number of Parameters: 8B
- Context Length: 32k
For more details, see the Qwen3 Embedding blog and GitHub.
Citation
@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}
}
- Downloads last month
- 131
8-bit