Instructions to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with 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 WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: llama cli -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: llama cli -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
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 WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: ./llama-cli -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
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 WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4 # Run inference directly in the terminal: ./build/bin/llama-cli -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Use Docker
docker model run hf.co/WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
- LM Studio
- Jan
- vLLM
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
- Ollama
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with Ollama:
ollama run hf.co/WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
- Unsloth Desktop
- Pi
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with Docker Model Runner:
docker model run hf.co/WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
- Lemonade
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Run and chat with the model
lemonade run user.MiniCPM5-2B-NVFP4-GGUF-NVFP4
List all available models
lemonade list
- Hermes Agent
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF:NVFP4" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
MiniCPM5-2B NVFP4 GGUF
GGUF quantized version of openbmb/MiniCPM5-2B, the second model in the MiniCPM5 series. It is a dense 2B Transformer (LlamaForCausalLM) built for on-device, local deployment, and resource-constrained scenarios, reaching 2B-class open-source SOTA.
Model Overview
MiniCPM5-2B is designed for local assistants, coding agents, tool-use workflows, and reasoning scenarios where a compact model is preferred. It keeps a small deployment footprint while providing native long-context support (131,072 tokens), and was post-trained with RL + OPD (On-Policy Distillation). It supports a chat template with thinking/reasoning mode (controlled via enable_thinking) and XML-style tool calling.
Model Architecture
| Property | Value |
|---|---|
| Architecture | LlamaForCausalLM (dense) |
| Total Parameters | 2.52B |
| Non-Embedding Parameters | 1.98B |
| Layers | 42 |
| Attention Heads (GQA) | 16 Q / 2 KV |
| Context Length | 131,072 (128K) |
| Original Precision | bfloat16 |
| Supported Languages | en, zh |
Available GGUF Files
| File | Quantization | Size | Use Case |
|---|---|---|---|
minicpm5-2b-nvfp4.gguf |
NVFP4 | 1.4 GB | 4-bit NVFP4, compact, quality/size balance |
minicpm5-2b-dspark-nvfp4.gguf |
NVFP4 | 1.4 GB | Draft model |
Usage
llama.cpp CLI
./llama-cli \
-m minicpm5-2b-nvfp4.gguf \
-p "Explain quantum computing in simple terms." \
--temp 1.0 --top-p 0.95
llama-server (OpenAI-compatible API)
./llama-server \
-m minicpm5-2b-nvfp4.gguf \
--host 0.0.0.0 --port 8080
The GGUF also works with Ollama and LM Studio.
Thinking Mode
The model supports deep-thinking output. You can control it per request via the chat template, e.g. with an OpenAI-compatible API:
"chat_template_kwargs": {"enable_thinking": false}
Tool Calling
MiniCPM5-2B emits XML-style tool calls. Tool definitions are injected into the prompt, and tool results are returned in the observation/tool role. SGLang's built-in minicpm5 parser converts these to OpenAI-compatible tool_calls natively (see upstream model card).
Generation Parameters
Recommended parameters from the original model:
| Parameter | Value |
|---|---|
| Temperature | 1.0 |
| Top-P | 0.95 |
Quantization
This GGUF was quantized to NVFP4 (a 4-bit floating-point format) from the BF16 source model, verified with llama.cpp's GGUF reader. All weight tensors use NVFP4; the embedding/output and norm tensors are kept in higher precision (Q6_K / F32) to preserve quality. Recommended sampling settings are stored in the file's metadata: temperature 1.0, top-p 0.95.
Acknowledgements
- Original model: openbmb/MiniCPM5-2B
- Quantization tool: llama.cpp
License
- Downloads last month
- 710
4-bit
Model tree for WhiskyAKM/MiniCPM5-2B-NVFP4-GGUF
Base model
openbmb/MiniCPM5-2B