How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="keisuke-miyako/bge-m3-doc-r4-gguf",
	filename="bge-m3-doc-r4-q8_0.gguf",
)
output = llm(
	"Once upon a time,",
	max_tokens=512,
	echo=True
)
print(output)

bge-m3-doc-r4 (GGUF q8_0)

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

Usage (llama.cpp)

./llama-embedding -m bge-m3-doc-r4-q8_0.gguf --prompt "your query"

Benchmarks

Relevance Min Max Average
3 0.31 0.84 0.64
2 0.04 0.82 0.60
1 0.06 0.77 0.53
0 -0.11 0.61 0.19
  • avg. spread: 0.45
  • lv. 3 vs 2 is separated by 0.04
  • lv. 3 vs 1 is separated by 0.11
  • lv. 0 is well separated at 0.19 (-0.01) ๐Ÿ‘๐Ÿป
Threshold Positive Negative Gap
0.54 0.97 0.31 0.65
0.55 0.95 0.29 0.65
0.56 0.93 0.26 0.67
0.57 0.90 0.23 0.67
0.58 0.88 0.18 0.69
0.59 0.83 0.15 0.67
0.60 0.78 0.12 0.65
0.61 0.74 0.09 0.64
  • gap peak: 0.58
Downloads last month
45
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-r4-gguf

Base model

BAAI/bge-m3
Quantized
(276)
this model