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

bge-m3-doc-r2 (GGUF q8_0)

Fine-tuned on 4D doc document embeddings. Dataset: keisuke-miyako/doc-2026-0612

Usage (llama.cpp)

./llama-embedding -m bge-m3-doc-r2-q8_0.gguf --prompt "your query"
Relevance Min Max Average
3 0.23 0.84 0.63
2 0.03 0.83 0.59
1 0.02 0.78 0.52
0 -0.12 0.60 0.18
  • avg. spread: 0.45 (+0.09) ๐Ÿ‘๐Ÿป
  • lv. 3 vs 2 is separated by 0.04
  • lv. 3 vs 1 is separated by 0.05
  • lv. 0 is separated at 0.31
Threshold Positive Negative Gap
0.58 0.80 0.14 0.65
0.59 0.76 0.10 0.66
0.60 0.70 0.09 0.61
0.61 0.67 0.07 0.60
Downloads last month
50
GGUF
Model size
0.6B params
Architecture
bert
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for keisuke-miyako/bge-m3-doc-r2-gguf

Base model

BAAI/bge-m3
Quantized
(276)
this model