openbmb · vision language

MiniCPM-V-4

openbmb/MiniCPM-V-4

MiniCPM-V-4 at Q4_K_M is exactly 2,189,861,216 bytes (2.04 GiB / 2.19 GB) — an effective 4.316 bits per weight, not the nominal 4. Its KV cache at 32K is 1.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
4.1B
Architecture
llama
32 layers
Context
32,768
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_01.94 GiB2,079,023,4564.097openbmb
Q4_K_S1.95 GiB2,092,458,3364.123openbmb
Q4_K_M2.04 GiB2,189,861,2164.316openbmb
Q4_12.14 GiB2,292,626,0164.518openbmb
Q5_02.33 GiB2,506,228,5764.939openbmb
Q5_K_S2.33 GiB2,506,228,5764.939openbmb
Q5_K_M2.39 GiB2,563,326,8165.051openbmb
Q5_12.53 GiB2,719,831,1365.360openbmb
Q6_K2.76 GiB2,960,134,0165.833openbmb
Q8_03.57 GiB3,833,381,6967.554openbmb

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.13 GiB0.13 GiB32 / 0 / 0
8,1920.25 GiB0.25 GiB32 / 0 / 0
16,3840.50 GiB0.50 GiB32 / 0 / 0
32,7681.00 GiB1.00 GiB32 / 0 / 0
65,5362.00 GiB2.00 GiB32 / 0 / 0
131,0724.00 GiB4.00 GiB32 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 2.13 GiB. The real file is 2.04 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
32
KV heads
2
Head dim
128
Hidden size
2560
Vocab
73,448
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does MiniCPM-V-4 need?
Q4_K_M is exactly 2,189,861,216 bytes (2.04 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is MiniCPM-V-4's KV cache?
1.00 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of MiniCPM-V-4 should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.