Why this model
MiniCPM5-1B-Agentic-Tooluse-v3 is fine-tuned specifically for agentic tool/function calling: given a tool schema and a natural-language request, it reliably produces a correctly-named, correctly-structured, correctly-valued function call — the exact capability that powers LangChain/LlamaIndex/AutoGen/CrewAI agents, MCP tool servers, ReAct-style loops, and home-automation assistants.
This release combines QLoRA supervised fine-tuning with a GRPO reinforcement-learning refinement stage, specifically optimized to improve exact function-name selection and exact argument-value correctness — historically the two hardest failure modes for small (~1B) tool-calling models.
Measured results (held-out 300-example test set, single consistent harness throughout)
Table with columns: metric, v2 (previous release), v3 (this model)| metric | v2 (previous release) | v3 (this model) |
|---|
| parseable | 0.9933 | 1.0000 |
| valid_name | 0.9700 | 0.9933 |
| expected_name | 0.9067 | 0.9733 |
| args_exact | 0.6133 | 0.7500 |
| arg_key_overlap | 0.8757 | 0.9553 |
args_exact (correct function and every argument value exactly right) is the strictest and most production-relevant metric — this is where the GRPO reinforcement-learning stage delivers the biggest improvement over the prior version.
Model details
- Base model: openbmb/MiniCPM5-1B
- Architecture: Llama-style causal language model, ~1.08B parameters
- Format: merged full weights, safetensors, FP16 — no adapter/PEFT loading required
- Training pipeline: QLoRA SFT on tool-calling trajectories → GRPO reinforcement learning targeting exact argument correctness
- Compatible with:
transformers, vLLM, SGLang, TGI, and any standard Hugging Face causal-LM serving pipeline
Quickstart
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-v3-Merged-FP16")
model = AutoModelForCausalLM.from_pretrained("ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-v3-Merged-FP16")
vLLM:
vllm serve ewinregirgojr/MiniCPM5-1B-Agentic-Tooluse-v3-Merged-FP16
Ideal use cases
- Production agent backends that need a fast, cheap, self-hosted function-calling model
- LangChain / LlamaIndex / AutoGen / CrewAI / MCP-based agents needing a small, reliable tool-calling backbone
- On-device and edge deployments where a 7B+ model isn't an option
- High-throughput services where per-request cost and latency matter more than squeezing out the last few points of accuracy from a much larger model
- Teams that want a fully open-weight, fine-tunable starting point instead of depending on a closed API for structured tool calls
FAQ
Do I need the adapter repo too? No — this repo already contains the fully merged weights. Use the adapter repo only if you want to load it on top of base MiniCPM5-1B yourself or continue fine-tuning.
What's the difference between this and the GGUF repo? This is full-precision FP16 safetensors for GPU-backed serving frameworks (transformers, vLLM, SGLang). The GGUF repo is quantized for CPU-friendly local inference via llama.cpp/Ollama/LM Studio.
How was v3 trained differently from v2? v3 continues from the v2-era recipe with an additional QLoRA SFT pass plus a GRPO reinforcement-learning stage explicitly rewarding exact argument-value correctness, which is what drives the args_exact improvement shown above.
Base model
Built on MiniCPM5-1B by OpenBMB.