Instructions to use smarttasks/bge-reranker-v2-m3-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use smarttasks/bge-reranker-v2-m3-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 smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
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 smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
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 smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
Use Docker
docker model run hf.co/smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use smarttasks/bge-reranker-v2-m3-GGUF with Ollama:
ollama run hf.co/smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
- Unsloth Studio
How to use smarttasks/bge-reranker-v2-m3-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 smarttasks/bge-reranker-v2-m3-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 smarttasks/bge-reranker-v2-m3-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for smarttasks/bge-reranker-v2-m3-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use smarttasks/bge-reranker-v2-m3-GGUF with Docker Model Runner:
docker model run hf.co/smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
- Lemonade
How to use smarttasks/bge-reranker-v2-m3-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull smarttasks/bge-reranker-v2-m3-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.bge-reranker-v2-m3-GGUF-Q4_K_M
List all available models
lemonade list
bge-reranker-v2-m3-GGUF
GGUF quantizations of BAAI/bge-reranker-v2-m3, a multilingual cross-encoder reranker. Validated and published by SmartTasks.
What this is (read first)
This is a reranker, not an embedding model. Unlike an embedder (which turns text into a vector), a reranker takes a [query, document] pair and directly outputs a single relevance score. Use it as the second stage of retrieval: first retrieve candidates with an embedder (e.g. BGE-M3), then rerank those candidates with this model for higher precision. It does not produce embeddings and cannot be used for vector search.
Validation
| Check | Result |
|---|---|
| Pairwise ranking accuracy | 1 (relevant vs. irrelevant, held-out triples) |
| Conversion | clean (XLM-RoBERTa arch, llama.cpp) |
| Quants | Q4_K_M, Q5_K_M, Q8_0 |
Relevant passages scored strongly positive; irrelevant passages scored strongly negative (clean separation preserved across quantization). SHA-256 hashes in SHA256SUMS.
Usage (llama.cpp)
Serve with the reranking endpoint enabled:
llama-server -m bge-reranker-v2-m3-Q8_0.gguf --reranking -c 2048 -ngl 99
Then POST to /rerank with a query and candidate documents; each returns a relevance_score. Higher = more relevant. Scores can be mapped to [0,1] via sigmoid.
Files
See SHA256SUMS for integrity hashes. Q8_0 for best fidelity; Q4_K_M for smallest footprint (ranking behavior preserved at all three levels).
Attribution
Derived from BAAI/bge-reranker-v2-m3 (Apache-2.0). See the original repo for authoritative model details.
First-party validation by the SmartTasks pipeline (ranking correctness + quantization fidelity). Not an independent certification.
- Downloads last month
- 238
4-bit
5-bit
8-bit
Model tree for smarttasks/bge-reranker-v2-m3-GGUF
Base model
BAAI/bge-reranker-v2-m3