# MiniCPM5-2B: Free Local AI Model Setup Guide

> Learn how to run MiniCPM5-2B free on your own laptop with LM Studio, Ollama, llama.cpp, MLX or vLLM, plus hardware needs, benchmarks and agent setup.

By Jonathan Ben Haim. Updated 2026-11-29. Source: https://jonathanai.io/blog/minicpm5-2b-free-local-setup-guide

On September 7, 2026, OpenBMB released MiniCPM5-2B, a language model with about 2.5 billion parameters. It is built to run on your own device, whether that is a laptop, a Mac, a [home computer](/blog/turn-old-pc-home-server-local-ai), or even a weaker machine. I want to show you the setup options, from the simplest to the most advanced, so you can pick the one that fits your hardware.

**In short:** MiniCPM5-2B is a free model released under the Apache 2.0 license, with 2,516,756,480 parameters and a 128K context window of 131,072 tokens. The Q4_K_M file is 1.56 GB and runs on a laptop with 8 GB of RAM, even on CPU only. You can try it in a browser, run it in [LM Studio](/blog/ollama-vs-lm-studio), start it with one Ollama command, or serve it from a GPU server.

## Key takeaways

- MiniCPM5-2B has 2,516,756,480 parameters (about 2.5B) and a 128K context window of 131,072 tokens.
- The model is released under Apache 2.0, which allows free commercial use.
- The Q4_K_M file is 1.56 GB and runs on any laptop with 8 GB of RAM.
- The model averages 53.9 across 34 benchmarks, compared with 51.1 for Qwen3.5-4B and 42.7 for Granite-4.2-3B.
- OpenBMB also released the training data, including UltraX, UltraData-Code, UltraData-SFT-Agent with 500K agent samples, and UltraData-RL.
- Ollama, LM Studio, llama.cpp, and MLX each expose an OpenAI-compatible API on a local address.

## What is MiniCPM5-2B?

MiniCPM5-2B is a small open language model from OpenBMB, the group behind the MiniCPM series, which comes from Tsinghua University and Modelbest. It has about 2.5 billion parameters. It is built to run locally, so your prompts do not have to go to a [cloud service](/blog/ai-chatbot-data-retention-privacy).

Here are the main specs:

| Item | Value |
|---|---|
| Parameters | 2,516,756,480 (~2.5B) |
| Context | 131,072 tokens (128K) |
| License | Apache 2.0, free commercial use |
| Average across 34 benchmarks | 53.9 (Qwen3.5-4B: 51.1, Granite-4.2-3B: 42.7) |
| Code (LiveCodeBench v6) | 69.1 |
| Coding agent (SWE-bench Verified) | 46.4 (Qwen3.5-4B: 33.6) |
| Tool calling (τ²-Bench Telecom) | 97.1 |
| Math (AIME 2025) | 86.5 |
| Download size (Q4_K_M) | 1.56 GB |

In one line: it is a 1.5 GB model that beats every 4 billion parameter model it was compared against, especially on code, tool calling, and working with long documents.

OpenBMB also released the training data: UltraX, UltraData-Code, UltraData-SFT-Agent with 500K agent samples, and UltraData-RL. That is rare. It means you can train the model on your own data without guessing what it was trained on.

## What do you need to run MiniCPM5-2B locally?

You need a laptop or computer with enough RAM for the version you pick. The Q4_K_M version works on almost any modern laptop with 8 GB of RAM, even without a GPU.

| Version | File size | Recommended hardware |
|---|---|---|
| Q4_K_M | 1.56 GB | Any laptop with 8 GB RAM. Works on CPU only, just slower. |
| Q8_0 | 2.68 GB | Almost full quality. Recommended with 16 GB RAM. |
| F16 | 5.04 GB | A dedicated GPU, or a Mac with 32 GB or more. |

If you have a Mac with Apple Silicon (M1 or newer), there is a dedicated MLX version that runs very fast. If you have an NVIDIA GPU, there are vLLM, SGLang, and GPTQ versions for a fast server with an API.

The model was trained mostly on English and Chinese. It understands and answers in other languages too, but quality outside English is lower. For sensitive wording, such as emails or marketing copy, write your instructions in English and translate the result, or check it yourself. For code, tools, and summaries, this matters less.

## How do you try MiniCPM5-2B in a browser?

You can try it in a browser with no install. Open the official OpenBMB demo, or the WebGPU version, where the model runs inside your browser on your graphics card. Ask a question and see whether the answers are good enough for you. Five minutes is enough to know.

- Official OpenBMB demo: [huggingface.co/spaces/openbmb/MiniCPM5-2B-Demo](https://huggingface.co/spaces/openbmb/MiniCPM5-2B-Demo)
- WebGPU version (the model runs in your browser on your graphics card): [huggingface.co/spaces/ProCreations/minicpm5-2b-webgpu](https://huggingface.co/spaces/ProCreations/minicpm5-2b-webgpu)

## How do you install MiniCPM5-2B with LM Studio?

You install LM Studio, search for the model, download a file, and start a chat. This is the path I recommend if you do not work in the terminal. LM Studio runs on Mac, Windows, and Linux.

1. Download LM Studio from [lmstudio.ai](https://lmstudio.ai) and install it.
2. Open the app and click the search icon (Discover) on the side.
3. Search for `MiniCPM5-2B`.
4. Choose the official repo `openbmb/MiniCPM5-2B-GGUF`. Pick the `Q4_K_M` file (1.56 GB) for most people, or `Q8_0` if you have 16 GB of RAM or more.
5. Click Download, then Load.
6. Open a chat and start talking.

If LM Studio is already installed, this link opens the model directly inside the app:

```
lmstudio://open_from_hf?model=openbmb/MiniCPM5-2B-GGUF
```

To turn LM Studio into a local API server for n8n, scripts, or agents, go to the Developer tab and click Start Server. The address will be `http://localhost:1234/v1`. This is an OpenAI-compatible API, so any tool that works with OpenAI will work with it. You only change the address.

## How do you run MiniCPM5-2B with Ollama?

You install Ollama once and then run any model with one command. Ollama runs in the background as a local model server, and it is the easiest option for automation.

Install Ollama:

- Mac: `brew install ollama`, or download it from [ollama.com](https://ollama.com)
- Windows: download it from [ollama.com](https://ollama.com)
- Linux: run the install script:

```bash
curl -fsSL https://ollama.com/install.sh | sh
```

Run the model using the exact command from the official repo:

```bash
ollama run hf.co/openbmb/MiniCPM5-2B-GGUF:Q4_K_M
```

That is it. The first run downloads 1.56 GB. After that, it starts in seconds.

For higher quality, use the Q8_0 version:

```bash
ollama run hf.co/openbmb/MiniCPM5-2B-GGUF:Q8_0
```

To use Ollama as an API, call it from the terminal. Ollama listens on `http://localhost:11434`, and the OpenAI-compatible endpoint is `http://localhost:11434/v1/chat/completions`:

```bash
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hf.co/openbmb/MiniCPM5-2B-GGUF:Q4_K_M",
    "messages": [{"role": "user", "content": "Summarize what MCP is in three bullet points."}]
  }'
```

To [connect it to n8n](/blog/install-n8n-on-hetzner), add an OpenAI Chat Model node. Set the Base URL to `http://localhost:11434/v1` and the Model to the full name shown above. If n8n runs in Docker, use `http://host.docker.internal:11434/v1` instead.

## How do you run MiniCPM5-2B with llama.cpp?

You install llama.cpp, start it as a server, and open the built-in web chat in your browser. This option gives you a chat interface and an API with one command. It is the most direct [route through Homebrew](/blog/homebrew-guide-for-beginners).

Install it:

```bash
# Mac / Linux
brew install llama.cpp
# or
curl -LsSf https://llama.app/install.sh | sh

# Windows
winget install llama.cpp
```

Run it as a server with a web interface:

```bash
llama serve -hf openbmb/MiniCPM5-2B-GGUF:Q4_K_M
```

Then open `http://localhost:8080` in your browser. The chat is ready there, and the OpenAI-compatible API is at `http://localhost:8080/v1`.

To chat directly in the terminal without a browser:

```bash
llama cli -hf openbmb/MiniCPM5-2B-GGUF:Q4_K_M
```

## How do you run MiniCPM5-2B on a Mac with MLX?

You install the `mlx-lm` package and run the 4-bit MLX version of the model. MLX is Apple's framework, and it uses the GPU in M-series chips very efficiently. It is the fastest option on a Mac. The official repo is `openbmb/MiniCPM5-2B-MLX` (4-bit version).

```bash
pip install mlx-lm

# Interactive chat
mlx_lm.chat --model openbmb/MiniCPM5-2B-MLX

# OpenAI-compatible API server
mlx_lm.server --model openbmb/MiniCPM5-2B-MLX --port 8080
```

## Which other apps can run MiniCPM5-2B?

Several desktop apps support the model directly. Jan works like LM Studio and is open source. Docker Model Runner works if you use [Docker Desktop](/blog/docker-sandboxes-run-claude-code-safely). Lemonade works on AMD computers. Unsloth Desktop also opens the model from a link.

- **Jan** (open desktop app, similar to LM Studio): open the model with `jan://models/huggingface/openbmb/MiniCPM5-2B-GGUF`
- **Docker Model Runner** (if you use Docker Desktop):

```bash
docker model run h
