MiniCPM5-2B GGUF (imatrix-calibrated)

GGUF conversions of openbmb/MiniCPM5-2B with importance-matrix calibration, so the K-quants and i-quants keep more quality at small sizes than uncalibrated equivalents.

Pipeline: convert_hf_to_gguf.py --outtype f16 with latest llama.cpp, then llama-imatrix over 100 chunks of WikiText-2 train (ctx 512), then llama-quantize --imatrix for the calibrated types. The exact matrix used is included as MiniCPM5-2B.imatrix, and every file below carries a measured perplexity (WikiText-2 test subset, 200KB, ctx 512, llama-perplexity on CPU).

Files

File Quant Size Calibrated PPL vs F16
MiniCPM5-2B-Q8_0.gguf Q8_0 ~2.4 GB - 15.18 +0.02
MiniCPM5-2B-Q6_K.gguf Q6_K ~2.0 GB - 15.24 +0.08
MiniCPM5-2B-Q5_K_M.gguf Q5_K_M ~1.7 GB yes 15.39 +0.23
MiniCPM5-2B-Q4_K_M.gguf Q4_K_M ~1.5 GB yes 15.65 +0.49
MiniCPM5-2B-IQ4_XS.gguf IQ4_XS ~1.4 GB yes 15.88 +0.72
MiniCPM5-2B.imatrix - 3 MB - - -

F16 reference PPL: 15.16.

Pick Q4_K_M for the best size/quality trade-off (+0.49 PPL at 1.5 GB), IQ4_XS for the smallest usable file (+0.72 at 1.4 GB), Q8_0 for near-lossless (+0.02).

Usage

# llama.cpp
./llama-cli -m MiniCPM5-2B-Q4_K_M.gguf -p "Explain quantization in one sentence."

# Ollama
ollama create minicpm5-2b -f - <<EOF
FROM ./MiniCPM5-2B-Q4_K_M.gguf
EOF
ollama run minicpm5-2b
Downloads last month
191
GGUF
Model size
3B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for saidutta69/MiniCPM5-2B-GGUF

Quantized
(83)
this model