Model reference · open weights
MiniCPM-V-2_6 is an open-weight language model from openbmb. MiniCPM-V-2_6-GPTQ (GPTQ) weighs 6.5 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the openbmb/MiniCPM-V-2_6 model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | openbmb |
|---|---|
| Released | 2024-08-04 |
| Parameters | 8.1B |
| VRAM | 6.5 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 6 | 1 | all 32K | 11.6 GB |
| RTX 4060 Ti 16 GB | 14 | 3 | all 32K | 15.4 GB |
| RTX 3090 24 GB | 31 | 7 | all 32K | 23.4 GB |
| RTX 4090 24 GB | 31 | 7 | all 32K | 23.4 GB |
| RTX 5090 32 GB | 47 | 11 | all 32K | 31.0 GB |
| L40S 48 GB | 75 | 18 | all 32K | 44.0 GB |
| A100 80 GB | 148 | 37 | all 32K | 78.2 GB |
| H100 80 GB | 138 | 34 | all 32K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 171 | 42 | all 32K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 200 | 50 | all 32K | 107 GB |
| H200 141 GB | 265 | 66 | all 32K | 138 GB |
| B200 180 GB | 345 | 86 | all 32K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 26 | 6 | all 32K | 11.6 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 9.1 GB | 10.5 GB |
| 5 | 11.0 GB | 18.0 GB |
| 8 | 12.4 GB | 23.7 GB |
| 16 | 16.1 GB | 38.7 GB |
| 32 | 23.7 GB | 68.8 GB |
| 64 | 38.7 GB | 129 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| MiniCPM-V-2_6 ↗ | 8.1B | BF16 | 16.2 GB | 2× RTX 3060 12 GB |
| MiniCPM-V-2_6-int4 ↗ | 8.3B | INT4 | 6.0 GB | RTX 3060 12 GB |
| MiniCPM-V-2_6-GPTQ (above) ↗ | 8.1B | GPTQ | 6.5 GB | RTX 3060 12 GB |
From the model card
This is the int4 quantized version of MiniCPM-V 2.6. Running with int4 version would use lower GPU memory (about 7GB).
Inference using Huggingface transformers on NVIDIA GPUs. Requirements tested on python 3.10:
Pillow==10.1.0
torch==2.1.2
torchvision==0.16.2
transformers==4.40.0
sentencepiece==0.1.99
accelerate==0.30.1
bitsandbytes==0.43.1
# test.py
import torch
from PIL import Image
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained('openbmb/MiniCPM-V-2_6-int4', trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-V-2_6-int4', trust_remote_code=True)
model.eval()
image = Image.open('xx.jpg').convert('RGB')
question = 'What is in the image?'
msgs = [{'role': 'user', 'content': [image, question]}]
res = model.chat(
image=None,
msgs=msgs,
tokenizer=tokenizer
)
print(res)
## if you want to use streaming, please make sure sampling=True and stream=True
## the model.chat will return a generator
res = model.chat(
image=None,
msgs=msgs,
tokenizer=tokenizer,
sampling=True,
temperature=0.7,
stream=True
)
generated_text = ""
for new_text in res:
generated_text += new_text
print(new_text, flush=True, end='')
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.