How to use from
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-m3-GGUF:
# Run inference directly in the terminal:
llama cli -hf smarttasks/bge-m3-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf smarttasks/bge-m3-GGUF:
# Run inference directly in the terminal:
llama cli -hf smarttasks/bge-m3-GGUF:
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-m3-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf smarttasks/bge-m3-GGUF:
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-m3-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf smarttasks/bge-m3-GGUF:
Use Docker
docker model run hf.co/smarttasks/bge-m3-GGUF:
Quick Links

bge-m3 β€” Embedding GGUF (quantization-verified)

Quantized embedding model in GGUF, served in --embedding mode via llama.cpp. This is an encoder β€” it outputs vectors, not text. It is validated for retrieval quality and quantization fidelity, not chat behavior.

Files

  • bge-m3-Q4_K_M.gguf (437.8 MB)
  • bge-m3-Q5_K_M.gguf (467.7 MB)
  • bge-m3-Q8_0.gguf (634.6 MB)

Quantization drift (vs f16)

Mean cosine similarity of embeddings vs the f16 baseline. 1.0 = identical.

Quant Mean cosine Min cosine Verdict
Q4_K_M 0.97964 0.96919 good (>0.97)
Q5_K_M 0.99245 0.98567 excellent (>0.99)
Q8_0 0.99948 0.99928 excellent (>0.99)

Per-domain fidelity at Q4_K_M (which content types the quant preserves best):

Domain Mean cosine Min
long_form 0.97436 0.97297
science 0.97595 0.96919
legal 0.97711 0.96941
code 0.97744 0.97475
medical 0.98015 0.97413
everyday 0.98113 0.97455
finance 0.9831 0.97883
short_queries 0.98522 0.98368

Retrieval sanity (lightweight)

Built-in 12-query retrieval check (no external corpus): top-1 accuracy 1.0, MRR 1.0. healthy (top-1 >= 0.9)

Retrieval (MTEB)

Standardized MTEB retrieval scores (main metric, usually nDCG@10 β€” higher is better). These are comparable across models on the MTEB leaderboard.

Task Score
SciFact 0.6458

Metric: main_score (retrieval tasks: nDCG@10). Measured on the Q8_0 quant served via llama.cpp.

Dense-retrieval mode. These scores are for standard single-vector dense retrieval (what llama.cpp serves). Models like BGE-M3 that also support sparse/multi-vector (ColBERT) modes score higher in hybrid setups β€” that capability isn't exercised here, so compare this number against other models' dense scores, not hybrid ones.

What this is NOT

This card carries no safety, red-team, or viewpoint scores: those do not apply to an embedding model. For chat-model governance cards, see the SmartTasks text-LLM line.

Downloads last month
-
GGUF
Model size
0.6B params
Architecture
bert
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for smarttasks/bge-m3-GGUF

Base model

BAAI/bge-m3
Quantized
(284)
this model