internlm · text

internlm2-math-plus-20b

internlm/internlm2-math-plus-20b

internlm2-math-plus-20b at Q4_K_M is exactly 11,984,469,440 bytes (11.16 GiB / 11.98 GB) — an effective 4.827 bits per weight, not the nominal 4. Its KV cache at 32K is 6.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
19.9B
Architecture
internlm2
48 layers
Context
8,192
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S4.23 GiB4,543,268,2881.830lmstudio-community
IQ1_S4.23 GiB4,543,268,2881.830legraphista
I1-IQ1_S4.23 GiB4,543,269,0241.830mradermacher
IQ1_M4.58 GiB4,918,396,3521.981legraphista
IQ1_M4.58 GiB4,918,396,3521.981lmstudio-community
I1-IQ1_M4.58 GiB4,918,397,0881.981mradermacher
IQ2_XXS5.16 GiB5,543,609,7922.233legraphista
IQ2_XXS5.16 GiB5,543,609,7922.233lmstudio-community
I1-IQ2_XXS5.16 GiB5,543,610,5282.233mradermacher
IQ2_XS5.68 GiB6,100,403,6482.457lmstudio-community
IQ2_XS5.68 GiB6,100,403,6482.457legraphista
I1-IQ2_XS5.68 GiB6,100,404,3842.457mradermacher
IQ2_S6.03 GiB6,474,296,7682.608legraphista
IQ2_S6.03 GiB6,474,296,7682.608lmstudio-community
I1-IQ2_S6.03 GiB6,474,297,5042.608mradermacher
IQ2_M6.50 GiB6,974,467,5202.809legraphista
IQ2_M6.50 GiB6,974,467,5202.809lmstudio-community
I1-IQ2_M6.50 GiB6,974,468,2562.809mradermacher
Q2_K_S6.53 GiB7,013,469,6322.825legraphista
Q2_K7.03 GiB7,546,670,5283.040lmstudio-community
Q2_K7.03 GiB7,546,670,5283.040legraphista
I1-Q2_K7.03 GiB7,546,671,2643.040mradermacher
IQ3_XXS7.28 GiB7,814,376,8963.148legraphista
IQ3_XXS7.28 GiB7,814,376,8963.148lmstudio-community
I1-IQ3_XXS7.28 GiB7,814,377,6323.148mradermacher
IQ3_XS7.79 GiB8,361,752,0003.368lmstudio-community
IQ3_XS7.79 GiB8,361,752,0003.368legraphista
I1-IQ3_XS7.79 GiB8,361,752,7363.368mradermacher
Q3_K_S8.16 GiB8,760,473,0243.529legraphista
Q3_K_S8.16 GiB8,760,473,0243.529lmstudio-community
I1-Q3_K_S8.16 GiB8,760,473,7603.529mradermacher
IQ3_S8.20 GiB8,800,581,0563.545legraphista
IQ3_S8.20 GiB8,800,581,0563.545lmstudio-community
I1-IQ3_S8.20 GiB8,800,581,7923.545mradermacher
IQ3_M8.50 GiB9,121,445,3123.674legraphista
IQ3_M8.50 GiB9,121,445,3123.674lmstudio-community
I1-IQ3_M8.50 GiB9,121,446,0483.674mradermacher
Q3_K9.05 GiB9,722,279,3603.916legraphista
Q3_K_M9.05 GiB9,722,279,3603.916lmstudio-community
I1-Q3_K_M9.05 GiB9,722,280,0963.916mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.75 GiB0.75 GiB48 / 0 / 0
8,1921.50 GiB1.50 GiB48 / 0 / 0
16,3843.00 GiB3.00 GiB48 / 0 / 0
32,7686.00 GiB6.00 GiB48 / 0 / 0
65,53612.00 GiB12.00 GiB48 / 0 / 0
131,07224.00 GiB24.00 GiB48 / 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 10.40 GiB. The real file is 11.16 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
48
Attention heads
48
KV heads
8
Head dim
128
Hidden size
6144
Vocab
92,544
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does internlm2-math-plus-20b need?
Q4_K_M is exactly 11,984,469,440 bytes (11.16 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is internlm2-math-plus-20b's KV cache?
6.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 internlm2-math-plus-20b 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.
internlm2-math-plus-20b — VRAM requirements, exact quant sizes — ossmodeldb