Instructions to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF", filename="MiniCPM5-1B-Agentic-Tooluse-Nemotron-DPO.F16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-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 juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf juithealien/MiniCPM5-1B-Agentic-Tooluse-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 juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf juithealien/MiniCPM5-1B-Agentic-Tooluse-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 juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf juithealien/MiniCPM5-1B-Agentic-Tooluse-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 juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
Use Docker
docker model run hf.co/juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "juithealien/MiniCPM5-1B-Agentic-Tooluse-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": "juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
- Ollama
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with Ollama:
ollama run hf.co/juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
- Unsloth Studio
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF to start chatting
- Pi
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-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 juithealien/MiniCPM5-1B-Agentic-Tooluse-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 juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf juithealien/MiniCPM5-1B-Agentic-Tooluse-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 "juithealien/MiniCPM5-1B-Agentic-Tooluse-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"
- Docker Model Runner
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with Docker Model Runner:
docker model run hf.co/juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
- Lemonade
How to use juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MiniCPM5-1B-Agentic-Tooluse-GGUF-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)MiniCPM5-1B Agentic Tooluse Nemotron DPO GGUF
25 Likes and I'll finetune this further (Work In Progress)
Current GGUF exports of the July 2026 Nemotron SFT+DPO repaired
MiniCPM5-1B-Agentic-Tooluse-Merged-FP16.
These files were generated from the latest evaluated merged checkpoint. The previous warning that this repository had not been regenerated is no longer applicable.
Model Family
| Use case | Repository |
|---|---|
| Current F16, Q8_0, and Q4_K_M GGUF files | This repository |
| Standalone merged Hugging Face model | MiniCPM5-1B-Agentic-Tooluse-Merged-FP16 |
| PEFT/LoRA adapter | MiniCPM5-1B-Agentic-Tooluse-QLoRA-v2 |
Current Files
| File | Size | Recommended use |
|---|---|---|
MiniCPM5-1B-Agentic-Tooluse-Nemotron-DPO.F16.gguf |
2.17 GB | Highest-fidelity GGUF and reference conversion |
MiniCPM5-1B-Agentic-Tooluse-Nemotron-DPO.Q8_0.gguf |
1.15 GB | High fidelity with lower memory use |
MiniCPM5-1B-Agentic-Tooluse-Nemotron-DPO.Q4_K_M.gguf |
688 MB | Recommended local size/speed balance |
CONVERSION_METADATA.json |
Small | Exact source and converter revisions |
The pre-Nemotron exports are retained under legacy/ for reproducibility. Use the root-level Nemotron-DPO files for the current model.
Provenance
- Base model:
openbmb/MiniCPM5-1B - Current adapter:
ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-QLoRA-v2 - Conversion source:
ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-Merged-FP16 - Source revision:
67e1cad9b15ffc21d0877bf952d9ece2eeda5d35 - llama.cpp revision:
683f0c72e5b3c07fab90bfd9ec2ce8661d624228 - Quantizations: F16, Q8_0, Q4_K_M
The export pipeline checked each output's GGUF magic, format version, size, and successful completion by llama-quantize. Full task evaluation was performed on the source merged model, not independently on every quantization.
Tool-Call Format
The model emits XML-style calls:
<function name="tool_name"><param name="parameter">value</param></function>
A deployment runtime should:
- Provide the available tool definitions in the training-compatible prompt format.
- Decode deterministically for tool selection.
- Stop after the first complete
</function>. - Validate the function name and arguments against the supplied schema.
- Execute the tool outside the model and provide the result in a new turn.
llama.cpp
Use a recent llama.cpp build:
llama-cli \
-m MiniCPM5-1B-Agentic-Tooluse-Nemotron-DPO.Q4_K_M.gguf \
-p '<user>Fix the calculator bug.</user>
<tools>{"name":"run_tests","description":"Run the test suite."}</tools>
<calls>' \
-n 96 \
--temp 0
The exact chat template and EOS handling matter. If a frontend supplies its own template, verify that it matches the source model's chat_template.jinja.
vLLM
As of July 2026, vLLM documents GGUF support as highly experimental and under-optimized. GGUF support also requires the out-of-tree plugin:
uv pip install vllm vllm-gguf-plugin
Serve Q4_K_M directly from the Hub:
vllm serve \
ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-GGUF:Q4_K_M \
--tokenizer ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-Merged-FP16 \
--hf-config-path ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-Merged-FP16
The separate tokenizer/config arguments follow vLLM's recommendation to avoid unstable GGUF tokenizer conversion. The merged repository is used because it contains the matching tokenizer, configuration, and chat template.
For stable high-throughput vLLM deployment, prefer the merged safetensors repository when memory permits.
Source-Model Evaluation
External evaluation used 300 examples derived from the untouched
Team-ACE/ToolACE dataset. The same cases and deterministic first-call evaluator were used for the base and fine-tuned source model. This is not an official ToolACE leaderboard submission.
| Metric | Base MiniCPM5-1B | Nemotron repaired source | Delta |
|---|---|---|---|
| Parseable tool call | 0.0133 | 0.9933 | +0.9800 |
| Valid available-tool name | 0.0133 | 0.9700 | +0.9567 |
| Expected tool name | 0.0133 | 0.9267 | +0.9133 |
| Exact arguments | 0.1500 | 0.6533 | +0.5033 |
| Argument-key overlap | 0.0033 | 0.7517 | +0.7484 |
| No schema copying | 1.0000 | 1.0000 | +0.0000 |
| No repetition | 0.9967 | 1.0000 | +0.0033 |
| Clean stop | 0.0000 | 0.1500 | +0.1500 |
These scores establish the behavior of the merged source checkpoint. Quantization can alter individual outputs, so evaluate the exact GGUF and runtime configuration used in production.
Source-Model Improvements and GGUF Scope
These GGUF files were converted from the repaired merged checkpoint, whose reported results improved substantially over base MiniCPM5-1B:
- Parseable calls: 1.33% -> 99.33%
- Valid available-tool names: 1.33% -> 97.00%
- Expected-tool selection: 1.33% -> 92.67%
- Exact arguments: 15.00% -> 65.33%
- Argument-key overlap: 0.33% -> 75.17%
- No repetition: 99.67% -> 100.00%
- Natural clean termination: 0.00% -> 15.00%
These are source FP16 metrics. The remaining gap to 100% is residual error after improvement, not evidence that the fine-tune made the base model worse.
Deployment Notes
- Q4_K_M and Q8_0 have not yet received an independent 300-case ToolACE run, so their exact scores should not be assumed identical to FP16.
- Schema validation and permission checks are universal tool-runtime safety requirements, not model-specific regressions.
- Valid-name and exact-argument behavior improved strongly in the source model; rare errors can still occur on unseen tools.
- MiniCPM5's parser-based serving path extracts the first completed XML call instead of relying solely on natural EOS.
- vLLM GGUF support is experimental; merged safetensors remains the more reliable vLLM format.
- llama.cpp behavior depends on build version and the frontend's chat-template handling.
Version History
The current Nemotron-DPO files are the July 2026 repaired exports. Legacy pre-Nemotron files are stored under legacy/ for reproducibility, and earlier repository states remain available from Hugging Face commit history.
MiniCPM5 Tool-Call Runtime Contract
MiniCPM5-1B has native XML-style tool calling. OpenBMB recommends SGLang for tool calling with its built-in minicpm5 parser:
python -m sglang.launch_server \
--model-path MODEL_PATH \
--tool-call-parser minicpm5
The parser converts a completed <function ...>...</function> block into an OpenAI-compatible tool_calls response. A production agent should treat the first completed function block as the action boundary, validate it, execute the tool externally, and send the tool result in a new turn.
The reported stopped_cleanly_rate=0.15 is a strict natural-termination metric: only 15% of evaluated generations emitted a completed call and then naturally terminated at that boundary without runtime intervention. It does not mean that only 15% produced usable tool calls. On the same 300 cases, the repaired source model achieved:
parseable_rate=0.9933valid_name_rate=0.9700expected_name_rate=0.9267no_repetition_rate=1.0000
Therefore, natural EOS-at-boundary remains weak, while first-call extraction and selection are much stronger. Use the official parser where supported and configure bounded generation or parser-side stopping after the first complete </function>.
- Downloads last month
- 1
4-bit
8-bit
16-bit
Model tree for juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF
Base model
openbmb/MiniCPM5-1BEvaluation results
- Source model parseable tool call rate on External ToolACE-derived first-call evaluation of source modelself-reported0.993
- Source model expected tool name rate on External ToolACE-derived first-call evaluation of source modelself-reported0.927
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="juithealien/MiniCPM5-1B-Agentic-Tooluse-GGUF", filename="", )