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 axteam/MiniCPM5-2B-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf axteam/MiniCPM5-2B-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 axteam/MiniCPM5-2B-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf axteam/MiniCPM5-2B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf axteam/MiniCPM5-2B-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama cli -hf axteam/MiniCPM5-2B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/axteam/MiniCPM5-2B-GGUF:Q4_K_M
Quick Links

MiniCPM5-2B ยท GGUF (llama.cpp)

GGUF quantizations of openbmb/MiniCPM5-2B for llama.cpp / Ollama / LM Studio. Produced by axteam.

Files

File Size Notes
MiniCPM5-2B-Q4_K_M.gguf 1.6 GB 4-bit k-quant (medium) โ€” recommended size/quality balance.
MiniCPM5-2B-Q8_0.gguf 2.7 GB 8-bit โ€” closest to the original.

Text generation via llama.cpp. Converted with llama.cpp convert_hf_to_gguf.py; the original chat_template is embedded.

Quantization method

These GGUF files are post-training quantization (PTQ) made with llama.cpp (convert_hf_to_gguf.py โ†’ llama-quantize): the BF16 weights are quantized block-wise (k-quants: per-block scales with mixed bit allocation), with no retraining. The original chat_template is embedded in each file.

Requirements

llama.cpp build โ‰ฅ b9354 โ€” architecture llama + pre-tokenizer minicpm5 needs โ‰ฅ b9354, and the commands on this card use -fa on (โ‰ฅ b6325). Load-checked here with b12005 (commit e0f142d) and b10724 on CPU โ€” the loader accepts the model, tokenizer and the -fa on / q8_0 KV-cache flags; no generation was run in that check.
Memory the chosen GGUF file (sizes in the table) plus KV cache for the context (-c); --cache-type-k/v q8_0 -fa on halves the KV cache.
Input text.
Ollama / LM Studio not tested here.

Run with llama.cpp

# pull one quant straight from the Hub and serve an OpenAI-compatible API on :8080
llama-server -hf axteam/MiniCPM5-2B-GGUF:Q4_K_M -c 8192 --jinja

# or download a single file and chat in the terminal
hf download axteam/MiniCPM5-2B-GGUF MiniCPM5-2B-Q4_K_M.gguf --local-dir .
llama-cli -m MiniCPM5-2B-Q4_K_M.gguf -c 8192 --jinja

Query the server:

curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
  "messages": [{"role": "user", "content": "๋Œ€ํ•œ๋ฏผ๊ตญ์˜ ์ˆ˜๋„๋Š” ์–ด๋””์ธ๊ฐ€์š”?"}],
  "temperature": 1.0, "top_p": 0.95, "max_tokens": 512
}'

Reduce KV-cache memory (optional, run-time)

KV-cache type is chosen at run time in llama.cpp (it is not baked into the file):

llama-server -hf axteam/MiniCPM5-2B-GGUF:Q4_K_M -c 8192 --jinja --cache-type-k q8_0 --cache-type-v q8_0 -fa on

Ollama

ollama run hf.co/axteam/MiniCPM5-2B-GGUF:Q4_K_M

LM Studio

Search for axteam/MiniCPM5-2B-GGUF in the model browser and pick a quant (e.g. Q4_K_M).

Recommended sampling (from the original generation_config.json): temperature=1.0, top_p=0.95.

License

Quantized derivative of openbmb/MiniCPM5-2B (Apache-2.0). Original weights & tokenizer belong to OpenBMB.


ํ•œ๊ตญ์–ด ์š”์•ฝ

openbmb/MiniCPM5-2B ๋ฅผ llama.cpp ์šฉ GGUF(Q8_0ยทQ4_K_M) ๋กœ ๋ณ€ํ™˜. Q8_0=8๋น„ํŠธ ์ตœ๊ณ ํ’ˆ์งˆ, Q4_K_M=4๋น„ํŠธ(Q8_0 ์˜ ์•ฝ 60% ํฌ๊ธฐ)(์†Œํ˜• ๋ชจ๋ธ์€ 4๋น„ํŠธ ์†์‹ค์ด ํผ). ์›๋ณธ chat_template ๋‚ด์žฅ. ๋ผ์ด์„ ์Šค Apache-2.0(์›๋ณธ OpenBMB).

  • ํŒŒ์ผ โ€” Q4_K_M(4๋น„ํŠธยท๊ถŒ์žฅ), Q8_0(8๋น„ํŠธยท์›๋ณธ์— ๊ฐ€์žฅ ๊ฐ€๊นŒ์›€).
  • ์š”๊ตฌ์‚ฌํ•ญ โ€” llama.cpp b9354 ์ด์ƒ(๊ตฌ์กฐ llama + pre-tokenizer minicpm5 ๋Š” b9354+, ์นด๋“œ ๋ช…๋ น์˜ -fa on ์€ b6325+). b12005ยทb10724 ์—์„œ CPU ๋กœ๋“œ ์ ๊ฒ€(์ƒ์„ฑ์€ ์•ˆ ํ•ด ๋ด„). OllamaยทLM Studio ๋Š” ๋ฏธํ™•์ธ.
  • ์‹คํ–‰ โ€” llama-server -hf axteam/MiniCPM5-2B-GGUF:Q4_K_M -c 8192 --jinja (OpenAI ํ˜ธํ™˜ ์„œ๋ฒ„ :8080) ๋˜๋Š” llama-cli -m MiniCPM5-2B-Q4_K_M.gguf --jinja.
  • Ollama โ€” ollama run hf.co/axteam/MiniCPM5-2B-GGUF:Q4_K_M. LM Studio ์—์„œ๋Š” axteam/MiniCPM5-2B-GGUF ๊ฒ€์ƒ‰.
  • KV ์บ์‹œ ์ ˆ๊ฐ(๋Ÿฐํƒ€์ž„) โ€” --cache-type-k q8_0 --cache-type-v q8_0 -fa on.
  • ๊ถŒ์žฅ ์ƒ˜ํ”Œ๋ง temperature=1.0, top_p=0.95.
Downloads last month
110
GGUF
Model size
3B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

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

Model tree for axteam/MiniCPM5-2B-GGUF

Quantized
(130)
this model

Collection including axteam/MiniCPM5-2B-GGUF