MiniCPM5-1B Fine-Tune Runs 128K-Token Reasoning on One GPU
A community fine-tune called GnLOLot MiniCPM5-1B-Claude-Opus-Fable5-Thinking has quietly become one of the more interesting compact language models on
Researched and drafted with AI assistance, then screened by automated editorial checks before publishing. How we work.

A community fine-tune called GnLOLot MiniCPM5-1B-Claude-Opus-Fable5-Thinking has quietly become one of the more interesting compact language models on Hugging Face this season, logging roughly 4,840 downloads in the last month (per the model page at the time of writing) and trending in the text-generation category. It takes OpenBMB's already capable one-billion-parameter MiniCPM5-1B checkpoint and sharpens it further on Fable5 distillation traces — the result is a sub-gigabyte reasoning model that runs on a single consumer GPU, a developer laptop, or even a capable CPU, while keeping full chain-of-thought, tool-calling, and 128K-token long-context support (a 131,072-token window) intact.
For developers who want to embed a "thinking" LLM into local pipelines without dragging in a 7B or 70B model, the GnLOLot MiniCPM5 series is a practical starting point — one that has already spawned a V2 release and a family of GGUF quantizations compatible with llama.cpp, Ollama, and LM Studio. Here is everything you need to know about what was built, how it works, and why it matters for local and edge AI deployment.
What Is MiniCPM5-1B, and Why It Makes a Strong Foundation
To understand the GnLOLot fine-tune, you first need to understand what OpenBMB's MiniCPM5-1B already brings to the table — because the base model itself is far from ordinary. Developed by the OpenBMB team, MiniCPM5-1B is a dense language model with 1,080,632,832 total parameters (~1.08B) — of which about 679.5M are non-embedding parameters — built on the standard LlamaForCausalLM architecture with 24 transformer layers, 16 query attention heads, and just 2 key-value heads via Grouped Query Attention (GQA). That GQA configuration is a big part of why the model punches above its weight: it dramatically shrinks the KV-cache memory footprint at long context lengths, making 131K-token sequences tractable on modest hardware.
The base model was trained through an ambitious multi-stage pipeline. Pre-training includes base training (stable and decay phases) on corpora that the OpenBMB team released publicly as Ultra-FineWeb, Ultra-FineWeb-L3, and UltraData-Math, followed by a mid-training phase that steers learned representations toward target capabilities and data distributions. The final — and most technically involved — stage is a post-training triplet of Supervised Fine-Tuning (SFT), Reinforcement Learning (RL), and On-Policy Distillation (OPD).
The RL and OPD Post-Training Breakthrough
The SFT step consumed a combined 400 billion tokens — 200B of "deep-thinking" data and 200B of "hybrid-thinking" data, released publicly as UltraData-SFT-2605. RL then trained specialized reward teachers for math, code, closed-book QA, and writing, drawing on datasets including DAPO-Math-17k (inspired by JustRL), TriviaQA, NQ-Open, LongWriter-Zero-RLData, synthesized verifiable RLVR data, and pair-wise RLHF signals. A two-stage length schedule within RL training helped curb the model's tendency to produce overlong, context-budget-exhausting outputs.
The OPD step — which OpenBMB describes as building on Thinking Machines Lab's On-Policy Distillation work, with implementation improvements informed by Rethinking On-Policy Distillation — replaces the conventional verification-based advantage signal with reverse KL divergence. At each response position, top-k logits are taken from both the student (MiniCPM5-1B) and a larger teacher model, and reverse KL is computed over the union of the two token sets, balancing the accuracy of the signal against training efficiency. This lets the 1B model absorb probabilistic reasoning structure from a bigger model without requiring costly verification labels at scale. The payoff is real: OpenBMB reports that RL combined with OPD raises the average score across math, code, and instruction-following tasks by 16 points while simultaneously cutting the share of responses that hit the max-tokens budget by 29 percentage points.
The result is a checkpoint that already supports an enable_thinking toggle for switchable chain-of-thought reasoning, an XML-based tool-call format compatible with OpenAI-style function-calling APIs (with SGLang's built-in minicpm5 parser recommended as a backend), and a native 131,072-token context window — all packaged in a BF16 Safetensors file. That is the model GnLOLot then fine-tuned further.
What GnLOLot Added: Fable5 Traces and the Thinking Template
The GnLOLot fine-tune — listed on Hugging Face as MiniCPM5-1B-Claude-Opus-Fable5-Thinking — applies an additional supervised post-training pass using Fable5 traces. The "Claude Opus" part of the name signals that these traces were generated with Claude Opus as the teacher model: step-by-step reasoning chains and instruction-following demonstrations produced by the teacher and then used as SFT data for the student (MiniCPM5-1B). "Fable5" appears to be a community dataset or methodology name for this trace collection rather than a formally named Anthropic product. The "Claude Opus" label denotes training-data provenance, not any direct affiliation with or endorsement by Anthropic.
This trace-based SFT pass is conceptually distinct from the KL-divergence on-policy distillation that OpenBMB used in MiniCPM5's own post-training: GnLOLot's approach is a more conventional supervised fine-tuning on curated teacher outputs, applied on top of a base checkpoint that already went through the more sophisticated OPD process. The combination means the final model has absorbed reasoning patterns from at least two separate teacher models at two separate stages of its training lineage.
The model page documents what this fine-tuning is intended to improve:
- Coding: Code generation, debugging, and software-engineering-style task completion are the primary cited gains from Fable5 trace training.
- Instruction following: More reliable adherence to structured constraints and multi-step user prompts.
- Thinking mode retention: The full MiniCPM5 chain-of-thought chat template, including
<think>blocks, is preserved intact through the fine-tuning pass. - Tool calling: MiniCPM5's XML-format function-calling interface carries over without modification.
- Long context: The 131,072-token context window inherited from the base model remains available.
The model supports dual-language inference — English and Chinese — consistent with the OpenBMB base model's training corpus. The license is Apache-2.0, inherited from MiniCPM5-1B, so commercial use is permitted without restriction.
Using the GnLOLot MiniCPM5 Claude Opus Fable5 Thinking Model
One of the most developer-friendly aspects of the GnLOLot MiniCPM5 release is how many deployment paths it supports. The primary Hugging Face repository ships in BF16 Safetensors format for use with the standard transformers library. A companion GGUF repository — MiniCPM5-1B-Claude-Opus-Fable5-Thinking-GGUF — provides quantized versions for local inference via llama.cpp, Ollama, LM Studio, Jan, KoboldCpp, and the Docker Model Runner (the repo also lists compatibility notes for llama-cpp-python, vLLM, and other runtimes).

Quantization Options at a Glance
The GGUF model card lists two slightly different size figures per file — an approximate value in the files table and a more precise value in the hardware-compatibility panel. Both are shown below:
| Quantization | Approx. File Size | Best For | Recommended? |
|---|---|---|---|
Q4_K_M |
~657–688 MB | RAM-constrained devices, mobile-adjacent hardware | Minimum viable |
Q5_K_M |
~751–787 MB | Balanced quality-to-size trade-off | Good default |
Q8_0 |
~1.1–1.15 GB | Near-full-precision quality, fits in 2–3 GB RAM | Explicitly recommended |
F16 |
~2.1–2.17 GB | Developers needing a lossless base for further quantization | Conversion base |
The model card explicitly recommends Q8_0 as the default for this 1B checkpoint — a sensible call, since even Q8_0 fits comfortably inside 2 GB of RAM, making "highest-quality quantization" practically free on almost any modern machine.
Python (Transformers) Quickstart
For developers integrating the model directly into Python applications, the standard transformers pipeline works with minimal setup. The MiniCPM5-1B model cards document usage via tokenizer.apply_chat_template() with the enable_thinking flag, followed by model.generate():
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "GnLOLot/MiniCPM5-1B-Claude-Opus-Fable5-Thinking"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
messages = [{"role": "user", "content": "Write a Python function to merge two sorted lists."}]
# Thinking mode enabled (default). Set enable_thinking=False for fast mode.
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
enable_thinking=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=512,
temperature=0.9,
top_p=0.95,
do_sample=True,
)
# Decode only the newly generated tokens
text = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=False)
print(text) # contains a <think>...</think> block followed by the final answer
To switch to fast non-thinking mode, pass enable_thinking=False to apply_chat_template and lower the temperature to 0.7 as recommended in the model card.
Running with llama.cpp
Running the GGUF variant via llama.cpp is straightforward:
llama-cli \
-m MiniCPM5-1B-Claude-Opus-Fable5-Thinking-Q8_0.gguf \
-p "Write a Python function to merge two sorted lists." \
-n 512 \
--temp 0.9 --top-p 0.95 \
-c 8192
Running with Ollama
Ollama users can pull and run the model in a single command using the hf.co model shorthand:
ollama run hf.co/GnLOLot/MiniCPM5-1B-Claude-Opus-Fable5-Thinking-GGUF:Q4_K_M
Docker users with the Docker Model Runner can invoke the model similarly:
docker model run hf.co/GnLOLot/MiniCPM5-1B-Claude-Opus-Fable5-Thinking-GGUF:Q4_K_M
In LM Studio and Jan, loading is just a matter of selecting any .gguf file from the companion repository — the MiniCPM5 chat template is embedded in the GGUF metadata, so no manual template configuration is needed.
Chat Template and Prompt Format
The GnLOLot MiniCPM5 models inherit MiniCPM5's native chat template, which wraps user and assistant turns in the standard format and uses XML-style tags for tool calls and reasoning blocks. When thinking mode is active, the model emits a <think>…</think> block containing its internal reasoning before producing the final answer. Wherever possible, use the tokenizer's apply_chat_template helper rather than hand-formatting prompts; for reference, a minimal turn takes roughly this shape:
<|im_start|>user
Write a Python function to merge two sorted lists.<|im_end|>
<|im_start|>assistant
<think>
[model reasoning appears here in thinking mode]
</think>
[final answer appears here]<|im_end|>
For tool-calling workflows, MiniCPM5's XML function-call format passes tool definitions in the system prompt and receives structured tool invocations in model responses — the same schema carries through the GnLOLot fine-tune unchanged. Downstream applications should plan to parse and strip <think> blocks before displaying output to end users, both to reduce perceived latency and to avoid exposing intermediate reasoning in chatbot UIs or API wrappers.
Sampling Parameters for Thinking vs. Non-Thinking Mode
The model supports two distinct inference modes controlled by a single flag. Recommended sampling parameters differ because chain-of-thought generation shifts the effective output distribution:
| Mode | Temperature | Top-p | Flag |
|---|---|---|---|
| Think (default) | 0.9 | 0.95 | default — no flag needed |
| No Think (fast) | 0.7 | 0.95 | enable_thinking=False |
The V2 Release: Tool Calling as the Central Focus
Shortly after the original model appeared, GnLOLot published MiniCPM5-1B-Claude-Opus-Fable5-V2-Thinking — a second fine-tuning pass on the same base. V2 preserves everything from V1 (Fable5 coding and instruction-following improvements, full chat template, Apache-2.0 license) and adds a sharper emphasis on tool calling and function-calling reliability. The benchmark results published on the V2 model card make the gains concrete. The "base" column reflects GnLOLot's own reported runs of MiniCPM5-1B rather than OpenBMB's official numbers:

| Benchmark | MiniCPM5-1B Base | V2-Thinking | Δ |
|---|---|---|---|
| BFCL non_live | 41.51% | 43.06% | +1.55 pp |
| BFCL live | 60.24% | 63.33% | +3.09 pp |
| API-Bank | 7.30% | 22.10% | +14.80 pp |
| Tau-Bench Airline | 0.34 (17/50) | 0.36 (18/50) | +0.02 |
| Tau-Bench Retail | 0.052 (6/115) | 0.070 (8/115) | +0.018 |
The standout number is the API-Bank jump from 7.30% to 22.10% — nearly a threefold increase in the model's reported ability to correctly sequence real-world API calls. BFCL live scores also move meaningfully at +3.09 pp, reflecting better handling of ambiguous or multi-step tool invocations in realistic scenarios. Tau-Bench gains are modest in absolute terms, but those tasks involve multi-turn agent simulation in realistic airline and retail environments, where even fractional improvements compound across extended interactions and matter for production reliability.
The gains align directly with what the GnLOLot MiniCPM5 Claude Opus Fable5 Thinking series is explicitly designed for: making a 1B model genuinely useful in agentic and tool-heavy workflows rather than simply conversational ones. For teams building lightweight orchestration agents, CI-integrated coding assistants, or function-calling microservices, V2's benchmark profile is more practically informative than generic perplexity scores.
Why This Approach Matters for Developers
The GnLOLot MiniCPM5 project illustrates a pattern that is becoming increasingly important in practical AI deployment: targeted distillation from large models into compact open-weight ones. Several specific properties make this model family worth watching closely.
Edge and Local Deployment Without Compromise
A 657 MB Q4_K_M GGUF fits in the memory headroom of most developer laptops, runs on Apple Silicon MPS, NVIDIA CUDA, and AMD ROCm, and can be served as an OpenAI-compatible endpoint via llama-server on a local port. That means a developer can wire the model into an existing application that already talks to the OpenAI API with nothing more than a base-URL swap — no SDK changes, no prompt reformatting.
There is no cloud egress cost, no rate limit, and no data leaving the machine. For applications that handle sensitive data — proprietary code, internal documents, personally identifiable information — that last point is not trivial. A capable local model eliminates cloud routing risks by design rather than by policy.
The Distillation-from-Proprietary-Model Lineage
The "Claude Opus" component of the model name points to a training-data lineage that has become common across the open-source community: using a large proprietary model's outputs as high-quality supervised fine-tuning data. This is a more conventional trace-based SFT approach, distinct from the KL-divergence-based on-policy distillation that OpenBMB used in MiniCPM5's own post-training. Together, those two stages mean the final model has absorbed reasoning patterns from at least two separate teacher models at two separate points in its development.
Developers using or building on models with such lineages should stay informed about evolving terms of service from model providers, including Anthropic, regarding downstream use of model-generated outputs. The potential IP and policy implications of multi-stage distillation chains remain an active area of industry and legal discussion. Note that this article's characterization of the trace provenance is based on the model's name and card description; the fine-tune's author has not published a formal dataset card detailing exactly how the Fable5 traces were produced.
The Community Ecosystem Around MiniCPM5-1B
MiniCPM5-1B has quickly attracted a cluster of community fine-tunes and quantizations, a strong signal that the open-source community has recognized its fine-tune-friendliness — a small, permissively licensed, thinking-capable base is exactly the kind of checkpoint hobbyists and toolmakers build on. GnLOLot's work is among the more polished of these, given its structured GGUF release pipeline, V2 benchmark reporting, and active iteration cadence. Downstream quantizations and further fine-tunes are already appearing in the GnLOLot variants' own model trees, suggesting they are themselves being adopted as secondary base checkpoints.
(Download counts and model-tree statistics are rolling, snapshot figures on Hugging Face and will change as the community grows; the ~4,840 figure cited above is a last-30-days count at the time of writing.)
Limitations to Know Before Deploying
Being clear about what the model cannot do is just as important as describing what it can. The model card and base-model documentation acknowledge several constraints that developers should weigh against their use cases:
- Scale ceiling: At ~1.08B parameters, the model is optimized for specific tasks — coding assistance, instruction following, tool calling — rather than frontier-scale open-ended reasoning. Complex multi-hop logic, advanced mathematics, or nuanced long-form creative writing will expose the parameter count relative to larger models.
- Reasoning block overhead: In thinking mode, the model emits a
<think>…</think>block before every answer. This adds latency and eats into the context budget. Applications should plan to parse and strip these blocks, or budget explicitly for the added inference time. - Language scope: Despite strong English and Chinese support, the model is not designed for multilingual generalization beyond those two languages. Queries in other languages may produce degraded or inconsistent results.
- No published V1 benchmarks: Unlike V2, the original V1 model page does not include task-specific benchmark numbers. Developers evaluating V1 will need to run their own evaluations against task-relevant benchmarks such as HumanEval, MBPP, or IFEval.
- Fable5 dataset opacity: The model card describes the model as fine-tuned on "Fable 5 data" / "Fable 5 traces" but does not provide a detailed breakdown of that dataset's composition, domain distribution, size, or the specific Claude Opus version used as teacher. This limits reproducibility and makes it harder to predict exactly where fine-tuning gains will and will not generalize.
- Distillation policy considerations: As noted above, trace-based distillation from proprietary model outputs exists in a shifting policy and legal landscape. Commercial deployers should consult relevant terms of service before production use.
Key Takeaways
- GnLOLot MiniCPM5-1B-Claude-Opus-Fable5-Thinking is a community fine-tune of OpenBMB's MiniCPM5-1B, post-trained on Fable5 traces to improve coding and instruction following while retaining full chain-of-thought and tool-calling capabilities.
- The base model (MiniCPM5-1B) is itself a serious engineering artifact: ~1.08B parameters, a 131K-token context window, GQA attention (16 Q heads / 2 KV heads), and a three-stage post-training pipeline (SFT + RL + OPD) that OpenBMB reports raised average benchmark scores by 16 points and cut max-tokens-budget responses by 29 percentage points.
- The model is deployable via transformers, llama.cpp, Ollama, LM Studio, Jan, KoboldCpp, and the Docker Model Runner — GGUF quantizations range from a ~657 MB Q4_K_M to a ~2.1 GB F16, with Q8_0 (~1.1 GB) as the explicitly recommended default for nearly all hardware configurations.
- A V2 release delivers a focused tool-calling improvement, boosting reported API-Bank accuracy nearly threefold (7.30% → 22.10%) and BFCL live from 60.24% to 63.33% over the base model.
- The Apache-2.0 license permits commercial use; fully local deployment makes the model practical for privacy-sensitive applications where data cannot leave the machine.
- Known limitations include a 1B scale ceiling for complex reasoning tasks, added latency from reasoning blocks in thinking mode, and limited multilingual coverage beyond English and Chinese.
- The "Claude Opus" label in the model name denotes the teacher model used to generate Fable5 distillation traces — it does not indicate an Anthropic affiliation or endorsement. Developers should remain aware of evolving policies around distillation from proprietary model outputs before commercial deployment.
What comes next for the GnLOLot MiniCPM5 Claude Opus Fable5 Thinking series is already partly visible in the public model trees: V2 is live with published benchmarks, the GGUF ecosystem is expanding, and downstream fine-tunes are appearing. The logical next steps include broader benchmark coverage for both V1 and V2 — MMLU, HumanEval, GSM8K, and IFEval would each be particularly informative for prospective users — as well as possible larger variants if OpenBMB releases additional MiniCPM5 checkpoints at 4B or above. Further Fable5 trace iterations targeting the weaknesses that current benchmarks expose — particularly Tau-Bench's retail and airline agentic scenarios, where gains remain marginal — represent a clear improvement vector. With a growing cluster of community fine-tunes in the MiniCPM5-1B tree, rising download momentum, and an active iteration cadence from GnLOLot, this is a model lineage that developers interested in lean, capable, locally-deployable LLMs should keep firmly on their radar.
Topics
Sources
Comments(0)
No comments yet. Be the first to share your thoughts.
Join the conversation
Your email stays private and comments are reviewed before appearing.


