Skip to content
llmmodels
Code modelOpen weights

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.

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

Alternatives to MiniCPM-3-4B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Qwen2.5-Coder (7B)openAlibaba (Qwen)Sep 20247.6B———107.4
OpenELM-3BopenAppleMay 20243B————
Stable Code 3BopenStability AIJan 20242.8B————
Granite 3.0 2BopenIBMOct 20242.6B————
Qwen2.5-Coder (1.5B)openAlibaba (Qwen)Sep 20241.5B———89.1
Falcon3-7BopenTechnology Innovation InstituteDec 20247.5B————
Granite 3.0 8BopenIBMOct 20248.2B————
Phi-2openMicrosoftDec 20232.8B———96.2

More models from Zhipu AI (Z.ai)

All Zhipu AI (Z.ai) models →
ModelReleasedParamsContextInput $/1MOutput $/1M
GLM-5.3-FlashopenAug 2026321B1M$0.12$0.418
GLM-5.3openAug 2026753B1M$1.20$4.18
GLM-5.2openJun 2026753B1M$1.20$4.18
GLM-5.1openApr 2026754B200K$0.896$3.59
GLM-5openFeb 2026754B200K$0.598$2.69
GLM-4.7openDec 2025358B200K$0.448$2.09
GLM-4.7-FlashopenJan 202631B200KFreeFree
GLM-4.5-AiropenJul 2025110B128K$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.