Instructions to use WhiskyAKM/MiniCPM5-2B-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-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-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf WhiskyAKM/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 WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
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-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
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-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use WhiskyAKM/MiniCPM5-2B-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-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-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
- Ollama
How to use WhiskyAKM/MiniCPM5-2B-GGUF with Ollama:
ollama run hf.co/WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use WhiskyAKM/MiniCPM5-2B-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-GGUF:Q4_K_M
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-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use WhiskyAKM/MiniCPM5-2B-GGUF with Docker Model Runner:
docker model run hf.co/WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
- Lemonade
How to use WhiskyAKM/MiniCPM5-2B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull WhiskyAKM/MiniCPM5-2B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MiniCPM5-2B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use WhiskyAKM/MiniCPM5-2B-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-GGUF:Q4_K_M
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-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use WhiskyAKM/MiniCPM5-2B-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-GGUF:Q4_K_M
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-GGUF:Q4_K_M" \ --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"
Upload folder using huggingface_hub
Browse files- .gitattributes +3 -0
- README.md +22 -0
- minicpm5-2b-dspark-Q4_K_M.gguf +3 -0
- minicpm5-2b-dspark-Q8_0.gguf +3 -0
- minicpm5-2b-dspark-bf16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -41,3 +41,6 @@ minicpm5-2b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 41 |
minicpm5-2b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
minicpm5-2b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
minicpm5-2b-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
minicpm5-2b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
minicpm5-2b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
minicpm5-2b-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
minicpm5-2b-dspark-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
minicpm5-2b-dspark-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
minicpm5-2b-dspark-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -49,6 +49,16 @@ MiniCPM5-2B is designed for local assistants, coding agents, tool-use workflows,
|
|
| 49 |
| `minicpm5-2b-Q4_K_S.gguf` | Q4_K_S | 1.4 GB | Smaller, slight quality loss |
|
| 50 |
| `minicpm5-2b-Q4_0.gguf` | Q4_0 | 1.4 GB | Legacy 4-bit, broad compatibility |
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
## Usage
|
| 53 |
|
| 54 |
### llama.cpp CLI
|
|
@@ -70,6 +80,17 @@ MiniCPM5-2B is designed for local assistants, coding agents, tool-use workflows,
|
|
| 70 |
|
| 71 |
The GGUF also works with **Ollama** and **LM Studio**.
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
### Thinking Mode
|
| 74 |
|
| 75 |
The model supports deep-thinking output. You can control it per request via the chat template, e.g. with an OpenAI-compatible API:
|
|
@@ -98,6 +119,7 @@ These GGUF files were created from the BF16 source model using `llama-quantize`
|
|
| 98 |
## Acknowledgements
|
| 99 |
|
| 100 |
- Original model: [openbmb/MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B)
|
|
|
|
| 101 |
- Quantization tool: [llama.cpp](https://github.com/ggml-org/llama.cpp)
|
| 102 |
|
| 103 |
## License
|
|
|
|
| 49 |
| `minicpm5-2b-Q4_K_S.gguf` | Q4_K_S | 1.4 GB | Smaller, slight quality loss |
|
| 50 |
| `minicpm5-2b-Q4_0.gguf` | Q4_0 | 1.4 GB | Legacy 4-bit, broad compatibility |
|
| 51 |
|
| 52 |
+
### DSpark Draft Model (Speculative Decoding)
|
| 53 |
+
|
| 54 |
+
| File | Quantization | Size | Use Case |
|
| 55 |
+
| :------------------------------- | :----------- | :---- | :---------------------------------------------- |
|
| 56 |
+
| `minicpm5-2b-dspark-bf16.gguf` | BF16 | 623 MB | Draft model, full precision |
|
| 57 |
+
| `minicpm5-2b-dspark-Q8_0.gguf` | Q8_0 | 334 MB | Draft model, near-lossless |
|
| 58 |
+
| `minicpm5-2b-dspark-Q4_K_M.gguf` | Q4_K_M | 186 MB | Draft model, smallest footprint |
|
| 59 |
+
|
| 60 |
+
These are the [MiniCPM5-2B-DSpark](https://huggingface.co/openbmb/MiniCPM5-2B-DSpark) draft models, trained for speculative decoding with MiniCPM5-2B. They accelerate generation without changing the target model's outputs.
|
| 61 |
+
|
| 62 |
## Usage
|
| 63 |
|
| 64 |
### llama.cpp CLI
|
|
|
|
| 80 |
|
| 81 |
The GGUF also works with **Ollama** and **LM Studio**.
|
| 82 |
|
| 83 |
+
### Speculative Decoding (DSpark)
|
| 84 |
+
|
| 85 |
+
Pair the target model with a DSpark draft model to speed up inference. Draft model quality has minimal impact on output, so smaller quants (e.g. Q4_K_M) are usually fine:
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
./llama-server \
|
| 89 |
+
-m minicpm5-2b-Q4_K_M.gguf \
|
| 90 |
+
-md minicpm5-2b-dspark-Q4_K_M.gguf \
|
| 91 |
+
--host 0.0.0.0 --port 8080
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
### Thinking Mode
|
| 95 |
|
| 96 |
The model supports deep-thinking output. You can control it per request via the chat template, e.g. with an OpenAI-compatible API:
|
|
|
|
| 119 |
## Acknowledgements
|
| 120 |
|
| 121 |
- Original model: [openbmb/MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B)
|
| 122 |
+
- Draft model: [openbmb/MiniCPM5-2B-DSpark](https://huggingface.co/openbmb/MiniCPM5-2B-DSpark)
|
| 123 |
- Quantization tool: [llama.cpp](https://github.com/ggml-org/llama.cpp)
|
| 124 |
|
| 125 |
## License
|
minicpm5-2b-dspark-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ad0b44d4facfc422ececd107992562e09ded4912e5c4432256d872c02b40e48
|
| 3 |
+
size 194103104
|
minicpm5-2b-dspark-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ed1f40c1b346a94a504451acbfd7a01a6ec9aa9a87b4a5704c052beee5bd732
|
| 3 |
+
size 349218624
|
minicpm5-2b-dspark-bf16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cf18d0d5838ec2c92dc330f7ecc8c16dcc508ec1eb5e7a515f3b816a9c0c139
|
| 3 |
+
size 652732224
|