MiniCPM-V 4.7
MiniCPM-V Multimodal Series
MiniCPM-V 4.7 is the newest generation of the MiniCPM-V series, offered in two sizes: the edge-friendly 1B and the sparse MoE 35B-A3B — the first MoE model in the series. It carries on the family's single-image, multi-image and video understanding, and focuses on answering one question: can an MoE model run smoothly on device? With the Lookahead Expert Scheduling (LES) expert prefetch scheduling proposed alongside MiniCPM-V 4.7, layer-wise fine-grained quantization and DSpark speculative decoding, the 35B-A3B becomes the first open-source MoE model that runs fluently on device without sacrificing performance, reaching 13+ tokens/s decoding on an iPhone 17 Pro Max.
On the vision side it keeps the intra-ViT early compression from LLaVA-UHD v4, compressing visual tokens inside the vision encoder itself, and supports mixed 4×/16× compression ratios so you can trade detail against cost per task. The models cover all three major mobile platforms — iOS, Android and HarmonyOS — with day-0 support for chip platforms including Rockchip, Houmo, Intel, AMD and Arm; on the inference side they are adapted to SGLang, vLLM, llama.cpp and Ollama, on the fine-tuning side to SWIFT and LLaMA-Factory, and for quantization they offer GGUF, BNB, AWQ and GPTQ plus the new FP8.
Model list
| Checkpoint | Parameters | Language backbone | Context |
|---|---|---|---|
| MiniCPM-V-4.7-1B | 1.55 B | qwen3_5_text (dense) | 256K |
| MiniCPM-V-4.7-35B-A3B | 35.2 B total · ~3.5 B activated | qwen3_5_moe_text (256 experts, 8/token) | 256K |
Both share the same SigLIP canvas M-RoPE vision tower (27 layers, patch 14, mixed 4×/16× compression) and both support single-image, multi-image and video understanding. The 1B targets on-device / low-resource use, the 35B-A3B targets high-throughput serving.
Key features
- Canvas M-RoPE: visual tokens are laid out on a 2D canvas, each carrying a
(time, height, width)position, so slices of the same image keep their spatial relation and video frames keep their temporal order. This is the main change relative to MiniCPM-V 4.6. - Two sizes, one architecture family: the dense 1B and the 256-expert MoE 35B-A3B share the vision tower and processor.
- Native transformers architecture: registered as
MiniCPMV4_7ForConditionalGeneration, requiringtransformers >= 5.18.0; the standardAutoProcessor+AutoModelForImageTextToTextflow works, with notrust_remote_codeneeded. - Thinking is a request switch: unlike MiniCPM-V 4.6's separate
-Thinkingweights, MiniCPM-V 4.7 has only one checkpoint per size, and thinking is enabled throughenable_thinkinginchat_template_kwargs.
Quick start
pip install "transformers[torch]>=5.18.0" torchvision
import torch
from PIL import Image
from transformers import AutoProcessor, AutoModelForImageTextToText
model_path = "openbmb/MiniCPM-V-4.7-1B" # or "openbmb/MiniCPM-V-4.7-35B-A3B"
processor = AutoProcessor.from_pretrained(model_path)
model = AutoModelForImageTextToText.from_pretrained(
model_path,
dtype="auto",
device_map="auto",
).eval()
image = Image.open("example.jpg").convert("RGB")
messages = [{"role": "user", "content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe the image."},
]}]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt",
).to(model.device)
out = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Thinking mode
The chat template enables the <think> block by default. To turn it off (recommended for ordinary Q&A):
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt",
chat_template_kwargs={"enable_thinking": False},
).to(model.device)
Deployment
| Framework | Status | Entry point |
|---|---|---|
| vLLM | Supported upstream (PR #58674) | vllm serve |
| SGLang | Via the fork tc-mb/sglang (branch Support-MiniCPM-V4.7); not yet supported upstream | sglang.launch_server |
| llama.cpp | Supported upstream (PR #29416) | llama-mtmd-cli / llama-server |
| Ollama | Model code is ready; the runtime is waiting for its bundled llama.cpp to sync to #29416 | ollama create -f |
See Deployment for the full install, launch and invocation steps for each framework.
Quantization
| Format | 1B | 35B-A3B | Repo suffix |
|---|---|---|---|
| GGUF | ✅ | ✅ | -gguf |
| BNB (int4) | ✅ | ✅ | -int4 |
| AWQ | ✅ | ✅ | -AWQ |
| GPTQ | ✅ | ✅ | -GPTQ |
| FP8 | — | ✅ | -FP8 (llm-compressor) |
- GGUF is the recommended general-purpose / CPU-Metal format.
- The HF 4-bit weights for 35B-A3B (
-AWQ/-GPTQ/-int4/-FP8) are produced by tools that support fused experts (llm-compressor / GPTQModel); plain AutoAWQ / AutoGPTQ / bitsandbytes cannot quantize fused MoE expert parameters.
See Quantization for the conversion and quantization scripts.
Model repositories
- Base:
MiniCPM-V-4.7-1B,MiniCPM-V-4.7-35B-A3B - Quantized:
-gguf,-int4,-AWQ,-GPTQ(1B) ·-gguf,-FP8,-INT4,-AWQ,-GPTQ,-int4(35B-A3B) - Speculative decoding draft:
MiniCPM-V-4.7-1B-DSpark,MiniCPM-V-4.7-35B-A3B-DSpark
Related Resources
| Topic | Link |
|---|---|
| Code repository | OpenBMB/MiniCPM-V |
| Online demo | MiniCPM-V 4.7 Demo |
| On-device apps and downloads | MiniCPM-V-Apps downloads |
| API access | API guide |