deepseek-ai · text
deepseek-math-7b-instruct
deepseek-ai/deepseek-math-7b-instructdeepseek-math-7b-instruct at Q4_K_M is exactly 4,221,964,704 bytes (3.93 GiB / 4.22 GB) — an effective 4.888 bits per weight, not the nominal 4. Its KV cache at 32K is 15.00 GiB.
From the file· summed from 1 file(s)From the file· KV per layer
Parameters
6.9B
Architecture
llama
30 layers
Context
4,096
native (config.json)
License
other
Shipped quantizations
● exact bytes, summed from published files
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| Q2_K | 2.53 GiB | 2,717,028,768 | 3.146 | — | MaziyarPanahi |
| Q2_K | 2.53 GiB | 2,718,422,592 | 3.147 | — | QuantFactory |
| Q2_K | 2.53 GiB | 2,718,834,592 | 3.147 | — | mradermacher |
| IQ3_XS | 2.79 GiB | 2,994,020,256 | 3.466 | — | mradermacher |
| Q3_K_S | 2.92 GiB | 3,136,623,008 | 3.631 | — | MaziyarPanahi |
| Q3_K_S | 2.92 GiB | 3,138,016,832 | 3.633 | — | QuantFactory |
| IQ3_S | 2.92 GiB | 3,138,428,832 | 3.633 | — | mradermacher |
| Q3_K_S | 2.92 GiB | 3,138,428,832 | 3.633 | — | mradermacher |
| IQ3_M | 3.06 GiB | 3,290,087,328 | 3.809 | — | mradermacher |
| Q3_K_M | 3.22 GiB | 3,459,797,408 | 4.005 | — | MaziyarPanahi |
| Q3_K_M | 3.22 GiB | 3,461,191,232 | 4.007 | — | QuantFactory |
| Q3_K_M | 3.22 GiB | 3,461,603,232 | 4.007 | — | mradermacher |
| Q3_K_L | 3.49 GiB | 3,744,879,008 | 4.335 | — | MaziyarPanahi |
| Q3_K_L | 3.49 GiB | 3,746,272,832 | 4.337 | — | QuantFactory |
| Q3_K_L | 3.49 GiB | 3,746,684,832 | 4.338 | — | mradermacher |
| IQ4_XS | 3.56 GiB | 3,818,774,432 | 4.421 | — | mradermacher |
| Q4_0 | 3.73 GiB | 4,000,060,992 | 4.631 | — | QuantFactory |
| Q4_K_S | 3.75 GiB | 4,023,964,064 | 4.659 | — | MaziyarPanahi |
| Q4_K_S | 3.75 GiB | 4,025,357,888 | 4.660 | — | QuantFactory |
| Q4_K_S | 3.75 GiB | 4,025,769,888 | 4.661 | — | mradermacher |
| Q4_K_M | 3.93 GiB | 4,221,964,704 | 4.888 | — | MaziyarPanahi |
| Q4_K_M | 3.93 GiB | 4,223,358,528 | 4.889 | — | QuantFactory |
| Q4_K_M | 3.93 GiB | 4,223,770,528 | 4.890 | — | mradermacher |
| Q4_1 | 4.10 GiB | 4,405,728,832 | 5.100 | — | QuantFactory |
| Q5_K_S | 4.48 GiB | 4,810,002,848 | 5.568 | — | MaziyarPanahi |
| Q5_0 | 4.48 GiB | 4,811,396,672 | 5.570 | — | QuantFactory |
| Q5_K_S | 4.48 GiB | 4,811,396,672 | 5.570 | — | QuantFactory |
| Q5_K_S | 4.48 GiB | 4,811,808,672 | 5.571 | — | mradermacher |
| Q5_K_M | 4.59 GiB | 4,925,034,912 | 5.702 | — | MaziyarPanahi |
| Q5_K_M | 4.59 GiB | 4,926,428,736 | 5.703 | — | QuantFactory |
| Q5_K_M | 4.59 GiB | 4,926,840,736 | 5.704 | — | mradermacher |
| Q5_1 | 4.86 GiB | 5,217,064,512 | 6.040 | — | QuantFactory |
| Q6_K | 5.28 GiB | 5,672,047,008 | 6.566 | — | MaziyarPanahi |
| Q6_K | 5.28 GiB | 5,673,440,832 | 6.568 | — | QuantFactory |
| Q6_K | 5.28 GiB | 5,673,852,832 | 6.569 | — | mradermacher |
| Q8_0 | 6.84 GiB | 7,345,590,688 | 8.504 | — | MaziyarPanahi |
| Q8_0 | 6.84 GiB | 7,346,984,512 | 8.505 | — | QuantFactory |
| Q8_0 | 6.84 GiB | 7,347,396,512 | 8.506 | — | mradermacher |
KV cache by context
computed per layer
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 1.88 GiB | 1.88 GiB | — | 30 / 0 / 0 |
| 8,192 | 3.75 GiB | 3.75 GiB | — | 30 / 0 / 0 |
| 16,384 | 7.50 GiB | 7.50 GiB | — | 30 / 0 / 0 |
| 32,768 | 15.00 GiB | 15.00 GiB | — | 30 / 0 / 0 |
| 65,536 | 30.00 GiB | 30.00 GiB | — | 30 / 0 / 0 |
| 131,072 | 60.00 GiB | 60.00 GiB | — | 30 / 0 / 0 |
Compare with
same modality, comparable size
Will it run on your card?
full quant x context sweep
Radeon RX 6500 XT 4GBGeForce RTX 3050 6GBGeForce RTX 5050 8GBGeForce RTX 3080 10GBGeForce RTX 2080 Ti 11GBGeForce RTX 5070 12GBGeForce RTX 5060 Ti 16GBApple M3 Pro 18GBGeForce RTX 3080 Ti 20GBGeForce RTX 5090 D V2 24GBGeForce RTX 5090 D 32GBApple M5 Max 36GBApple M5 Pro 48GBApple M5 Max 64GBApple M3 Ultra 96GBApple M5 Max 128GBApple M2 Ultra 192GBApple M3 Ultra 256GBApple M3 Ultra 512GB
Why other calculators give a different number
A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 3.62 GiB. The real file is 3.93 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.
Architecture
from config.json
Layers
30
Attention heads
32
KV heads
32
Head dim
128
Hidden size
4096
Vocab
102,400
Sliding window
none
SWA period
—
MLA
no
Experts
—
Experts per token
—
use_sliding_window
—
Questions people ask
- How much VRAM does deepseek-math-7b-instruct need?
- Q4_K_M is exactly 4,221,964,704 bytes (3.93 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
- How large is deepseek-math-7b-instruct's KV cache?
- 15.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 deepseek-math-7b-instruct 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.