alt.freeweights.minicpm / MiniCPM3-4B-GPTQ-Int4
From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MiniCPM3-4B-GPTQ-Int4

Date: 2026-11-15Commit: 4fc73a8Signed: 2DC28CC7B26A283B ✓

Text generation model with 4.1B parameters. Safetensors weights, 2.41 GB in all. Published by openbmb under Apache-2.0.

4.1B params2.41GBMiniCPM3-4B-GPTQ-Int4safetensorspermissive
FactsParams4.1BSize2.41 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MiniCPM3-4B-GPTQ-Int4
# manifest sha256 9455409ad4bf… · 2.41 GB · 14 files
$ fw verify ./MiniCPM3-4B-GPTQ-Int4 openbmb/MiniCPM3-4B-GPTQ-Int4
From sourceHosted (signed)openbmb/MiniCPM3-4B-GPTQ-Int4Last check: 2026-11-15 03:59 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
2.41 GB
Weights
2.40 GB (safetensors)
Parameters
4.1B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
14, each with a sha256
Publisher
openbmb
Added
2026-11-15
Section
alt.freeweights.minicpm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:59 UTCpassed

Model card

From the publisher at commit 4fc73a8. Shown as plain text with links; images open at the publisher.

Image: image

MiniCPM Repo | MiniCPM Paper | MiniCPM-V Repo | Join us in Discord and WeChat

Introduction#

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. Equipped with LLMxMapReduce, MiniCPM3-4B can handle infinite context theoretically, without requiring huge amount of memory.

Usage#

Inference with Transformers#
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

path = "openbmb/MiniCPM3-4B-GPTQ-Int4"
device = "cuda"

tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(path, torch_dtype=torch.float16, device_map=device, trust_remote_code=True)

messages = [
    {"role": "user", "content": "推荐5个北京的景点。"},
]
model_inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(device)

model_outputs = model.generate(
    model_inputs,
    max_new_tokens=1024,
    top_p=0.7,
    temperature=0.7
)

output_token_ids = [
    model_outputs[i][len(model_inputs[i]):] for i in range(len(model_inputs))
]

responses = tokenizer.batch_decode(output_token_ids, skip_special_tokens=True)[0]
print(responses)
Inference with vLLM#

For now, you need to install our forked version of vLLM.

pip install git+https://github.com/OpenBMB/vllm.git@minicpm3
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams

model_name = "openbmb/MiniCPM3-4B-GPTQ-Int4"
prompt = [{"role": "user", "content": "推荐5个北京的景点。"}]

tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
input_text = tokenizer.apply_chat_template(prompt, tokenize=False, add_generation_prompt=True)

llm = LLM(
    model=model_name,
    trust_remote_code=True,
    tensor_parallel_size=1,
    quantization='gptq'
)
sampling_params = SamplingParams(top_p=0.7, temperature=0.7, max_tokens=1024, repetition_penalty=1.02)

outputs = llm.generate(prompts=input_text, sampling_params=sampling_params)

print(outputs[0].outputs[0].text)

Evaluation Results#

| Benchmark | Qwen2-7B-Instruct | GLM-4-9B-Chat | Gemma2-9B-it | Llama3.1-8B-Instruct | GPT-3.5-Turbo-0125 | Phi-3.5-mini-Instruct(3.8B) | MiniCPM3-4B

| English

| MMLU | 70.5 | 72.4 | 72.6 | 69.4 | 69.2 | 68.4 | 67.2

| BBH | 64.9 | 76.3 | 65.2 | 67.8 | 70.3 | 68.6 | 70.2

| MT-Bench | 8.41 | 8.35 | 7.88 | 8.28 | 8.17 | 8.60 | 8.41

| IFEVAL (Prompt Strict-Acc.) | 51.0 | 64.5 | 71.9 | 71.5 | 58.8 | 49.4 | 68.4

| Chinese

| CMMLU | 80.9 | 71.5 | 59.5 | 55.8 | 54.5 | 46.9 | 73.3

| CEVAL | 77.2 | 75.6 | 56.7 | 55.2 | 52.8 | 46.1 | 73.6

| AlignBench v1.1 | 7.10 | 6.61 | 7.10 | 5.68 | 5.82 | 5.73 | 6.74

| FollowBench-zh (SSR) | 63.0 | 56.4 | 57.0 | 50.6 | 64.6 | 58.1 | 66.8

| Math

| MATH | 49.6 | 50.6 | 46.0 | 51.9 | 41.8 | 46.4 | 46.6

| GSM8K | 82.3 | 79.6 | 79.7 | 84.5 | 76.4 | 82.7 | 81.1

| MathBench | 63.4 | 59.4 | 45.8 | 54.3 | 48.9 | 54.9 | 65.6

| Code

| HumanEval+ | 70.1 | 67.1 | 61.6 | 62.8 | 66.5 | 68.9 | 68.3

| MBPP+ | 57.1 | 62.2 | 64.3 | 55.3 | 71.4 | 55.8 | 63.2

| LiveCodeBench v3 | 22.2 | 20.2 | 19.2 | 20.4 | 24.0 | 19.6 | 22.6

| Function Call

| BFCL v2 | 71.6 | 70.1 | 19.2 | 73.3 | 75.4 | 48.4 | 76.0

| Overall

| Average | 65.3 | 65.0 | 57.9 | 60.8 | 61.0 | 57.2 | 66.3

Statement#

  • As a language model, MiniCPM3-4B generates content by learning from a vast amount of text.
  • However, it does not possess the ability to comprehend or express personal opinions or value judgments.
  • Any content generated by MiniCPM3-4B does not represent the viewpoints or positions of the model developers.
  • Therefore, when using content generated by MiniCPM3-4B, users should take full responsibility for evaluating and verifying it on their own.

LICENSE#

  • This repository is released under the Apache-2.0 License.
  • The usage of MiniCPM3-4B model weights must strictly follow MiniCPM Model License.md.
  • The models and weights of MiniCPM3-4B are completely free for academic research. after filling out a "questionnaire" for registration, are also available for free commercial use.

Citation#

@article{hu2024minicpm,
  title={MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies},
  author={Hu, Shengding and Tu, Yuge and Han, Xu and He, Chaoqun and Cui, Ganqu and Long, Xiang and Zheng, Zhi and Fang, Yewei and Huang, Yuxiang and Zhao, Weilin and others},
  journal={arXiv preprint arXiv:2404.06395},
  year={2024}
}

Files

14 files · 2.41 GBWeights 2.40 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md8.69 KB2fa51bbb0a1bb844b6a4fbf8b82e6ea5211800d728b7456df55a01cfd6c69b92
added_tokens.json216 B4760fcbf90bc193f33827ffe02f2e7ba1af1ec43644cc02ac22fdd611f6cca15
config.json2.92 KBd254acb04dc41116158553d79f07c17b50c19c3d0834fee2a1aba90c5d6dc532
configuration_minicpm.py9.21 KBf9c62e91b99574c67e56429cd808915a56d3c2382bf9b42d89d27c029d0b2403
generation_config.json122 B4ae895d10225b5323fbce89f59fcbb2866f74c9a1008f4b1d3c8d6f6a1749591
model.safetensors2.40 GB5bb60bc21a01913d002aca947c831f5bf3e39b50b560643c276a750051fdd80d
modeling_minicpm.py71.8 KBe7ab6c7d3dd590564849e3484cf85e2c3cc3ec24a851bc36c8f76087b815ac23
quantize_config.json287 B8c1339b1ff836f30fc97b86611ce785a518b64733fc81041688d896317f3a9ef
special_tokens_map.json1.63 KB068594063e37662c02b21acf42ebb334ef6a74fb810e68a2368f88f08351de76
tokenization_minicpm.py17.9 KB5f02b4a2117437647810a31fc91aabdd311fddac0526f0d56e7e6fab826073ab
tokenizer.json3.68 MBb00802b71a613e3f7df3899fe9643a3ff949736d333a2b892448a974383fe372
tokenizer.model1.18 MBbb74d51116831c3bf65db812c553f94ab0c88dcf97a5bbb37e3504f6d359c530
tokenizer_config.json2.90 KBc0eb72c8d9ba53541e1ef304fa3aa94d1f0fe4604e6c95e6b2f878722afadfa3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
4fc73a888f pinned now2026-11-15 03:59 UTC14 files · 2.41 GB

Use it

$ fw get openbmb/MiniCPM3-4B-GPTQ-Int4
# manifest sha256 9455409ad4bf… · 2.41 GB · 14 files
$ fw verify ./MiniCPM3-4B-GPTQ-Int4 openbmb/MiniCPM3-4B-GPTQ-Int4
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/MiniCPM3-4B-GPTQ-Int4.json --dir ./MiniCPM3-4B-GPTQ-Int4 $ python3 fw.py verify ./MiniCPM3-4B-GPTQ-Int4 ./openbmb__MiniCPM3-4B-GPTQ-Int4.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM3-4B-GPTQ-Int4 --revision 4fc73a888f5b1e31f3bba72378aa41274b8c6f2a --local-dir ./MiniCPM3-4B-GPTQ-Int4
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("openbmb/MiniCPM3-4B-GPTQ-Int4", revision="4fc73a888f5b1e31f3bba72378aa41274b8c6f2a") model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM3-4B-GPTQ-Int4", revision="4fc73a888f5b1e31f3bba72378aa41274b8c6f2a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openbmb/MiniCPM3-4B-GPTQ-Int4 --revision 4fc73a888f5b1e31f3bba72378aa41274b8c6f2a

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
2fa51bbb0a1bb844b6a4fbf8b82e6ea5211800d728b7456df55a01cfd6c69b92
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject: MiniCPM3-4B-GPTQ-Int4Date: 2026-11-15Commit: 4fc73a8Signed: 2DC28CC7B26A283B ✓
Upstream
openbmb/MiniCPM3-4B-GPTQ-Int4
Pinned commit
4fc73a888f5b1e31f3bba72378aa41274b8c6f2a
Manifest
MiniCPM3-4B-GPTQ-Int4.json · .minisig
Manifest sha256
9455409ad4bf1fcef9bf9fc2a48e6b1dd83af7a8be6901dfbd8bc6d0f6965660
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:59 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM3-4B-GPTQ-Int4.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM3-4B-GPTQ-Int4.json.minisig $ minisign -Vm MiniCPM3-4B-GPTQ-Int4.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM3-4B-GPTQ-Int4
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. MiniCPM3-4B-GPTQ-Int4.json. Provenance. Takedown history: none.
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Explore-GGUF
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report-GGUF
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-0.5B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-1B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-3B-gguf