MiniCPM5-15B-A2.5B-Base Fine-Tuning: 43 GiB for LoRA
OpenLux TeamPublished
MiniCPM5-15B-A2.5B-Base is 15 billion parameters of BF16 weights, about 30 GB on disk, with only 2.5 billion active per token, and its Hugging Face card publishes zero benchmark scores for it. Every number OpenBMB released on 3 December 2026, from 97.3 on AIME 2025 to 68.4 on SWE-Bench Verified, belongs to the final post-trained model, three training stages later. OpenBMB's own LoRA recipe for this model family peaks at about 43 GiB of GPU memory on a single card. So the Base checkpoint is cheap enough to tune on one GPU, but it is a raw pre-trained model, and the first decision is whether you should be tuning it at all.
OpenLux does not serve MiniCPM5. To set a hosted baseline before you fine-tune, models such as Qwen3.6-35B-A3B are listed with group prices. The OpenLux Team read OpenBMB's model cards, GitHub guides and Artificial Analysis, and the OpenLux pricing API, between 10:20 and 10:35 Beijing time on 4 December 2026.
Four checkpoints, and Base is the earliest
OpenBMB released four checkpoints of the same model on 3 December, each a stage in one pipeline. Base is "pre-training only". Midtrain continues from it before any supervised tuning. SFT adds supervised fine-tuning. The final release, plain MiniCPM5-15B-A2.5B, adds reinforcement learning and on-policy distillation on top of SFT, which OpenBMB says lifts agent benchmarks by an average of 7.85 points over the SFT checkpoint.
All four are Apache 2.0 and share one architecture. The Hugging Face API shows the Base repository was created on 18 November, but the GitHub changelog dates the release to 3 December, and that is when it went public alongside the others.
Picking a starting point comes down to what you are adding. Base is the right choice for continued pre-training on a large domain corpus, such as legal text, a new language or a code base, where you want your data to shape the model before any instruction tuning. Midtrain is a similar start with more of OpenBMB's mid-training data already in it. SFT suits teams that want to run their own preference or reinforcement learning stage. For ordinary task tuning, teaching the model a format, a tool schema or a house style, LoRA on the final model is the shortest path, because it already follows instructions and you keep the 7.85-point agent gain.
What is inside 15B-A2.5B
The architecture is a sparse mixture of experts with 28 layers and a hidden size of 2,048. Layer 0 is a dense MLP. Layers 1 to 27 each hold 160 routed experts, of which 16 are active per token, plus 1 shared expert, with an expert width of 512. Attention is grouped-query with 32 query heads and 2 key-value heads, and the context window is 524,288 tokens.
| Item | MiniCPM5-15B-A2.5B-Base | Source |
|---|---|---|
| Total / active parameters | 15B / 2.5B (2.8B as counted by Artificial Analysis) | Model card, Artificial Analysis |
| Experts per MoE layer | 160 routed, 16 active + 1 shared | Model card |
| Context | 524,288 tokens | Model card |
| Weights | BF16, about 30 GB | 15,002,552,320 parameters × 2 bytes |
| Licence | Apache 2.0 | Model card |
| Benchmarks for this checkpoint | None published | Model card |
| LoRA training memory | About 43 GiB at 4,096 tokens, batch 1 | OpenBMB TRL guide |
Two parameter counts circulate. OpenBMB says 2.5B active; Artificial Analysis lists 2.8B active, and neither page explains how its count is made. Either way, each token uses less than a fifth of the weights.
The scores belong to the final model
What the final model scores tells you the ceiling of this architecture after OpenBMB's full pipeline, not what Base can do. The final model's card reports 83.5 on MMLU-Pro, 84.4 on GPQA-Diamond, 97.3 on AIME 2025, 82.1 on LiveCodeBench v6, 68.4 on SWE-Bench Verified and 65.1 on BFCL v4, all OpenBMB's own runs in thinking mode. GitHub adds that the model ranks first on 22 of 36 benchmarks against the mixture-of-experts baselines OpenBMB compared, and that it beats Qwen3.6-35B-A3B overall with under half the total parameters.
The independent number is lower key. Artificial Analysis gives the final model 11 on its Intelligence Index v5.0.2, ranked 8th of 16 and equal to the median of 11 for open-weight models between 4B and 40B parameters, with an output speed of 129 tokens per second and 10.8 minutes per index task. That is a useful reality check: on a broad independent index, this is a mid-pack model for its size class, and its strengths are concentrated in maths and the benchmarks OpenBMB chose.
Running OpenBMB's LoRA recipe
OpenBMB ships four guides, for TRL with PEFT, LLaMA-Factory, ms-swift and Unsloth, and says the same files work for Base, Midtrain and SFT. The TRL guide is the smallest: LoRA rank 16, alpha 32, dropout 0, applied to all attention and MLP projections, a learning rate of 2e-4 with a cosine schedule, BF16, and a maximum length of 4,096 tokens. On one GPU with batch size 1 and SDPA attention, the guide measures a peak of about 43 GiB allocated by PyTorch. That rules out 24 GB cards at this sequence length and fits a 48 GB or 80 GB card.
The guide also patches the chat template so loss is computed only on assistant replies, and tells you to restore the original template before saving the adapter. If you train Base on raw domain text instead of chat data, you do not need the patch, but you do need to keep the same tokenizer.
Full-parameter tuning is documented for eight GPUs with DeepSpeed ZeRO-3 and a learning rate of 1e-5. The weights alone are about 30 GB in BF16, so full tuning with optimiser state is a multi-GPU job.
Three setup traps in the guides
The first is version skew. The LLaMA-Factory guide notes that LLaMA-Factory requires Transformers 5.17.0 or older, while native minicpm5_moe support starts at 5.25.0. OpenBMB's fix is a set of compatibility model files you copy into the checkpoint directory and load with trust_remote_code. Inference outside LLaMA-Factory needs Transformers 5.25.0 or later, with no remote code.
The second is the chat template. The minicpm5 template arrived in LLaMA-Factory PR #10801, after the v0.9.5 release on PyPI, so until v0.9.6 you install from source. OpenBMB warns against template: empty, which strips role markers and silently trains on a token layout the model has never seen.
The third is a hang. Under ZeRO-3, different GPUs can route tokens to different experts and request different parameters, which deadlocks training. The guide adds MiniCPM5MoESparseMoeBlock as a DeepSpeed leaf module so every rank gathers the whole block before routing, and keeps 16-bit weight gathering on save so the checkpoint is not left in shards.
Serving the result has its own minimums: vLLM needs PRs #69127 and #69128 or a nightly build, SGLang PRs #52071 and #52072, and llama.cpp release b12847, run with --min-p 0 to avoid repetition. When you evaluate the tuned model, use the sampling the card recommends for thinking mode, temperature 1.0, top_p 0.95 and min_p 0, so that your scores are comparable with OpenBMB's and a regression is not just a sampling difference. For tool calling, the card's vLLM flags are --tool-call-parser minicpm5 with --reasoning-parser qwen3.
Setting a hosted baseline before you tune
Fine-tuning only pays if the tuned model beats what you could call off the shelf. A simple test is to run your evaluation set through a hosted model first. As an example, 2,000 evaluation prompts at 3,000 input and 800 output tokens each is 6 million input and 1.6 million output tokens.
On OpenLux, read from the pricing API at 10:23 Beijing time, Qwen3.6-35B-A3B, the model OpenBMB says MiniCPM5 beats, lists at $0.375 input and $2.25 output per million tokens, or $0.28125 and $1.6875 in the Alibaba-2 group (ratio 0.75). That evaluation run costs 6 × $0.28125 + 1.6 × $1.6875 = $4.39. GLM-5.3-Flash lists at $0.15 and $0.50, or $0.045 and $0.15 in Self-Deployed-1 (ratio 0.3), so the same run costs $0.51. At production volume, 100 million input and 20 million output tokens a month cost $61.88 and $7.50 respectively. How group ratios show up in a usage log is in our billing guide, and the cheap end of the hosted range is compared in GLM-5.3-Flash against MiniMax M3.1 Flash.
If your tuned MiniCPM5 cannot beat a $7.50-a-month hosted model on your own evaluation set, the case for tuning rests on running offline or on device, where OpenBMB reports 30 tokens per second on an iPhone 18 Pro Max using about 3 GB of memory.
Which checkpoint to tune, decided
Tune Base when you have a large unlabelled domain corpus and plan to run your own instruction and preference stages afterwards. Tune SFT when you have the infrastructure for reinforcement learning and want OpenBMB's instruction tuning without its RL choices. Tune the final model with LoRA for everything else, using OpenBMB's rank-16 recipe on one 48 GB card, and compare it with a hosted baseline before you ship. Prices for hosted alternatives are on the OpenLux pricing page.
To run hosted baselines on one key, create an OpenLux account.