Skip to main content
Back

MiniCPM5-15B-A2.5B

MiniCPM Text Series

Fine-tuning Cookbooks and Agent Skills​

MiniCPM5-15B-A2.5B uses a sparse MoE architecture (minicpm5_moe) that is natively integrated into the latest Transformers. To help developers quickly reproduce the fine-tuning workflow, we provide single-page cookbooks, each paired with a matching Agent Skill.

Cookbook: For running the steps manually. Agent Skills: For use in coding agents such as Cursor / Claude Code, where the agent chooses an execution path based on the training framework, hardware and data path.

Top-level Skill​

MiniCPM5-15B-A2.5B Finetune Skill (automatically routes to trl · llamafactory · ms-swift · unsloth)

After placing this Skill in your project directory, you can enter the following in a coding agent such as Cursor / Claude Code:

Plain Text
@minicpm5-15b-a2p5b-finetune Fine-tune on /data/my_chat.jsonl with LLaMA-Factory + LoRA, output to ./out

The agent reads the top-level Skill, selects the matching sub-Skill and cookbook based on the target framework, hardware and data path, then runs the commands and reports the results.

Fine-tuning Frameworks​

FrameworkUse caseCookbookAgent Skill
TRL + PEFTScript-based LoRA / SFT with assistant-only lossGet itGet it
LLaMA-FactoryYAML-driven LoRA / full SFTGet itGet it
ms-swiftModelScope-native command-line LoRA / full SFTGet itGet it
UnslothSingle-GPU LoRA, or QLoRA for the lowest memory useGet itGet it

Hardware reference: All four frameworks can train a LoRA adapter on a single 80 GB GPU (about 40 GiB); QLoRA takes roughly half of that. Full SFT needs eight GPUs, at about 35–66 GiB per GPU depending on the ZeRO stage.

LLaMA-Factory, Unsloth and ms-swift pin older Transformers releases that do not include minicpm5_moe. Download the checkpoint locally and copy in the compatibility model code first, then use the local directory as the model path instead of a Hugging Face model id. TRL can skip this step when running on the latest Transformers.

Parameter names, data formats and dependency versions vary across frameworks. Before running, open the corresponding cookbook and choose a configuration that fits your hardware and training goal.

Developer Showcase

View all →
MiniCPM Textminicpm-dream: Nightly Memory PassLets a local agent tidy up and file the day's memories every nightMiniCPM Textmateria: Local Lab Result AssistantInterprets lab results locally, with a citation behind every suggestionMiniCPM TextMiniCPM-V MultimodalPaperReview: Handwritten Essay GradingReads and grades handwritten English essays line by line on a MacMiniCPM TextVoxCPM SpeechESP32 Radar Tower: AI ATC CalloutsA round-AMOLED tower radar announcing flights in a cloned ATC voiceMiniCPM TextVoxCPM SpeechESP32-S3 Talking Attitude IndicatorA desk flight instrument that holds voice exchanges with the towerMiniCPM TextClaimLedger: Claim Check LedgerChecks every claim in a report against its source before it shipsMiniCPM TextSelf-Evolving Catgirl: Reasoning via On-Policy Self DistillationNo teacher, no new base model: math reasoning emerges from self-distillationMiniCPM TextReJev: Decision-Model Post-TrainingLoRA post-training MiniCPM5-2B: 51.1% → 80.5% on a sealed holdoutMiniCPM TextBMB Agent: a MiniCPM-powered Personal AssistantLetting a 2B on-device model take over schedules and todos, with real-world lessonsMiniCPM TextMetaCog: Judge-Steered ReasoningAn inference-time loop where a judge scores parallel thought pathsMiniCPM TextOpenClaw Log Assistant: Local Log TriageLocal log analysis with MiniCPM5-2B that separates evidence from hypothesesMiniCPM TextMiniCPM News Desk: Local Daily BriefA local-first daily brief where MiniCPM5-2B picks exact source passagesMiniCPM TextWebGPU Pi: In-Browser Coding AgentMiniCPM5-2B running a coding agent fully in-browser via WebGPUMiniCPM TextMiniCPM5-1B Tool-Use: Offline Function CallsA 1B GGUF function-calling model (SFT + GRPO) that runs offline on CPUMiniCPM Textdeku: A Trustworthy Local Task AgentCode plans, MiniCPM5-1B answers briefly or refusesMiniCPM TextMiniCPM5-1B: LiteRT & Iberian EvalsINT8 LiteRT-LM build plus Spanish, Catalan, Basque and Galician evalsMiniCPM TextMiniCPM-V MultimodalMiniCPM Agent Gateway: Edge-Cloud RoutingLocal MiniCPM classifies each request so sensitive data stays on-deviceMiniCPM TextToneBridge: Context-Aware Mandarin CoachCorrects Mandarin sentences by context and tone, with pinyin and audioMiniCPM TextMiniCPM5-1B FP8: Faster NVIDIA InferenceFP8 vLLM profile hitting 248 decode tok/s on RTX 3060, 1.5× BF16MiniCPM TextAUGURY: Reading Soil Health from WeedsMaps weed species to soil-health indicators; phone-deployable, no cloudMiniCPM Textgmgn-minicpm: Local Crypto Research AgentA read-only GMGN crypto research agent powered by a local 1B modelMiniCPM TextMiniCPM-V MultimodalLost & Found Desk: Small-Model Item ReturnMiniCPM-V captions items, MiniCPM5 guides claims, staff confirm every handoffMiniCPM TextMiniCPM-V MultimodalVoxCPM SpeechCoreAI Model Zoo: MiniCPM on iPhoneCore AI builds of MiniCPM5 and MiniCPM-V 4.6 running natively on iPhone and MacMiniCPM TextMiniCPM-V MultimodalViva Mais: Local WhatsApp CRM CopilotA travel-agency copilot that turns WhatsApp chats into a local-first CRMMiniCPM TextTianwen: BaZi & I-Ching ReflectionA 1B model that turns BaZi and I-Ching readings into self-reflectionMiniCPM TextWanderLust: Mood-Driven Discovery WalksPlans exploratory A-to-B walking routes based on your moodMiniCPM TextNIGHTWAVE: 1970s Radio Hosted by a 1B ModelA 1970s late-night radio with a 1B-model DJ who takes live callsMiniCPM Text6ixPulse: Agentic Toronto Rent MapAgents compare Toronto neighborhoods, citing a source for every claimMiniCPM TextWall Street of AI AgentsFour small-model AI traders roam a pixel office and trade on their ownMiniCPM TextHackathon Advisor: Idea Map & CoachMaps hackathon ideas and coaches you toward more original projectsMiniCPM TextLLM Cinema: AI-Directed ASCII FilmsA small model writes and directs ASCII-art films in the browserMiniCPM Texttiny-llm: A Pure-Rust Inference EngineA from-scratch, CPU-only Rust inference engine for MiniCPM5-1B with a TUIMiniCPM TextDocument Field Agent: Batch OCR & ExtractionA workbench for batch document OCR and structured field extractionMiniCPM TextMiniCPM-V MultimodalWhen a Catgirl Learns to Think, on Your PhoneWas this model made for catgirls? An on-device deployment testMiniCPM TextMiniCPM-V MultimodalMaking a 1B Model a Good Math AgentTeXada’s on-device MiniCPM practice and lessonsMiniCPM TextORG-2: A Workbench for Coding AgentsAn organizational workbench to orchestrate and manage multiple coding agentsMiniCPM TextEdgeHome HarnessA replayable, evaluable local control loop for a 1B on-device model, built in RustMiniCPM TextSqueezing a NAS: Hooking Up WorkBuddyRunning local AI on an N150 CPU: real-world uses and lessons learned