MiniCPM-3-4B
by Zhipu AI (Z.ai) · Jun 3, 2024
MiniCPM-3-4B is an open-weight code model from Zhipu AI (Z.ai), released Jun 3, 2024. It has 4B parameters.
- Provider
- Zhipu AI (Z.ai)
- Released
- Jun 3, 2024
- Type
- Code model
- Parameters
- 4B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- apache-2.0
- Knowledge cutoff
- —
- Status
- Open weights
- HF downloads (30d)
- 8.1K
About MiniCPM-3-4B
MiniCPM3-4B is the 3rd generation of MiniCPM series. The overall performance of MiniCPM3-4B surpasses Phi-3.5-mini-Instruct and GPT-3.5-Turbo-0125, being comparable with many recent 7B~9B models. Compared to MiniCPM1.0/MiniCPM2.0, MiniCPM3-4B has a more powerful and versatile skill set to enable more general usage. MiniCPM3-4B supports function call, along with code interpreter. Please refer to Advanced Features for usage guidelines. MiniCPM3-4B has a 32k context window.
How to run MiniCPM-3-4B
MiniCPM-3-4B is an open-weight model published on Hugging Face as openbmb/MiniCPM3-4B. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 4B parameters it needs roughly 2 GB of memory at 4-bit quantization.
MiniCPM-3-4B vs alternatives
- MiniCPM-3-4B vs Qwen2.5-Coder (7B)
- MiniCPM-3-4B vs OpenELM-3B
- MiniCPM-3-4B vs Stable Code 3B
- MiniCPM-3-4B vs Granite 3.0 2B
- MiniCPM-3-4B vs Qwen2.5-Coder (1.5B)
- MiniCPM-3-4B vs Falcon3-7B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Qwen2.5-Coder (7B)open | Alibaba (Qwen) | Sep 2024 | 7.6B | — | — | — | 107.4 |
| OpenELM-3Bopen | Apple | May 2024 | 3B | — | — | — | — |
| Stable Code 3Bopen | Stability AI | Jan 2024 | 2.8B | — | — | — | — |
| Granite 3.0 2Bopen | IBM | Oct 2024 | 2.6B | — | — | — | — |
| Qwen2.5-Coder (1.5B)open | Alibaba (Qwen) | Sep 2024 | 1.5B | — | — | — | 89.1 |
| Falcon3-7Bopen | Technology Innovation Institute | Dec 2024 | 7.5B | — | — | — | — |
| Granite 3.0 8Bopen | IBM | Oct 2024 | 8.2B | — | — | — | — |
| Phi-2open | Microsoft | Dec 2023 | 2.8B | — | — | — | 96.2 |
More models from Zhipu AI (Z.ai)
All Zhipu AI (Z.ai) models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| GLM-5.3-Flashopen | Aug 2026 | 321B | 1M | $0.12 | $0.418 |
| GLM-5.3open | Aug 2026 | 753B | 1M | $1.20 | $4.18 |
| GLM-5.2open | Jun 2026 | 753B | 1M | $1.20 | $4.18 |
| GLM-5.1open | Apr 2026 | 754B | 200K | $0.896 | $3.59 |
| GLM-5open | Feb 2026 | 754B | 200K | $0.598 | $2.69 |
| GLM-4.7open | Dec 2025 | 358B | 200K | $0.448 | $2.09 |
| GLM-4.7-Flashopen | Jan 2026 | 31B | 200K | Free | Free |
| GLM-4.5-Airopen | Jul 2025 | 110B | 128K | $0.12 | $0.896 |
Frequently asked questions
Who made MiniCPM-3-4B?
MiniCPM-3-4B was developed by Zhipu AI (Z.ai) (China,China). It was released on Jun 3, 2024.
Is MiniCPM-3-4B open source?
Yes. MiniCPM-3-4B's weights are publicly available under the apache-2.0 license on Hugging Face (openbmb/MiniCPM3-4B), so you can download and run it yourself.
How many parameters does MiniCPM-3-4B have?
MiniCPM-3-4B has 4B parameters.
Sources: epoch, huggingface · paper · huggingface. Last updated 2026-11-22.