---
title: "OpenBMB's MiniCPM5-2B Beats Larger Rivals With 128K Context on Consumer Hardware"
subtitle: "OpenBMB's compact 2B model hits open-source SOTA in its class, beating several 4B rivals on code, math, and agent benchmarks while running locally."
url: "https://alphasignal.ai/news/openbmb-s-minicpm5-2b-beats-larger-rivals-with-128k-context-on-consumer-hardware"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-09-05T01:44:34.000Z"
updated: "2026-09-11T00:13:39.878Z"
type: "Model"
topics:
  - "Llms"
  - "Gpus"
subtopics:
  - "Small Models"
  - "Long Context"
upvotes: 4301
source_url: "https://huggingface.co/openbmb/MiniCPM5-2B-GGUF"
comments: 0
truncated: true
---

# OpenBMB's MiniCPM5-2B Beats Larger Rivals With 128K Context on Consumer Hardware

> OpenBMB's compact 2B model hits open-source SOTA in its class, beating several 4B rivals on code, math, and agent benchmarks while running locally.

OpenBMB has released MiniCPM5-2B, a dense language model designed for local and edge inference, along with quantized builds, a speculative-decoding draft model, training data, and intermediate checkpoints. The [model card](https://huggingface.co/openbmb/MiniCPM5-2B) reports an average benchmark score of 53.9, ahead of the strongest larger baseline in its comparison at 51.1\. OpenBMB publishes the model and released training assets under the Apache 2.0 license.

The release combines a conventional Llama-compatible architecture with a native 131,072-token context window and post-training focused on reasoning, coding, tool use, and search. Several reported scores exceed those of Qwen3.5-4B and granite-4.2-3B, although the results come from OpenBMB’s evaluation and may vary with prompts, harnesses, inference settings, and agent scaffolding.

## A familiar core with a long context

MiniCPM5-2B contains 2.5 billion total parameters, including 1.98 billion non-embedding parameters. As a dense model, it activates the full network for each token instead of routing tokens through a subset of experts. Its 42 transformer layers use grouped-query attention with 16 query heads and two key-value heads, which reduces key-value cache requirements relative to full multi-head attention.

The model follows the standard `LlamaForCausalLM` structure and requires no custom kernels or model-code fork. That compatibility allows established inference engines to load it through their existing Llama implementations, subject to using versions that recognize the model configuration.

## Strong reported scores, uneven edges

OpenBMB’s evaluation highlights gains in code generation, mathematical reasoning, software engineering, tool use, long-context retrieval, and search-agent tasks.

| Benchmark          | Capability              | MiniCPM5-2B | Reported comparison |
| ------------------ | ----------------------- | ----------- | ------------------- |
| LiveCodeBench v6   | Code generation         | 69.1        | Qwen3.5-4B: 56.4    |
| AIME 2025          | Mathematical reasoning  | 86.5        | Qwen3.5-4B: 78.8    |
| SWE-bench Verified | Repository-level coding | 46.4        | Qwen3.5-4B: 33.6    |
| τ2\-Bench Telecom  | Tool use                | 97.1        | Not specified       |
| NoLiMa             |                         |             |                     |

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [MiniCPM5-2B-GGUF on Hugging Face](https://huggingface.co/openbmb/MiniCPM5-2B-GGUF)
- [MiniCPM5-2B (BF16 release)](https://huggingface.co/openbmb/MiniCPM5-2B)
- [UltraData datasets](https://ultradata.openbmb.cn/)
- [MiniCPM4: Ultra-Efficient LLMs on End Devices](https://arxiv.org/pdf/2506.07900)
