A VRAM calculator posted on dev.to on Nov 23 (stigla610, "How Much VRAM Do Open-Weight LLMs Actually Need at 8K vs. 32K Context?") lists what it calls the exact requirements for sixteen open-weight models at 8K and 32K context. I checked the sixteen rows against each other first, then against the published config.json of seven of the models. The columns turn out to be two constants.

The two constants

Every "Q4 @ 8K" cell is the parameter count times 0.65 GB. 32B gives 20.8, 14B gives 9.1, 355B gives 230.8, 1000B gives 650.0. All sixteen rows, to the printed decimal. So the column labeled 8K contains no 8K KV cache at all. At fp16, Qwen3-32B's cache alone is 2.15 GB at 8K.

The 8K to 32K step is 0.075 GB per billion parameters on all sixteen rows, within 0.1 GB of rounding: 2.4 GB for Qwen3-32B, 50.3 for DeepSeek V3, 75.0 for Kimi K2.

The cache is layers x kv heads x head dim x 2 (K and V) x bytes, per token. It is not a function of parameter count, and it is not monotone in it either: DeepSeek V3's MLA cache is 69 KiB per token at 671B, against 256 KiB for Qwen3-32B at 32B. MLA compresses each layer's cache to a latent vector; GQA cuts the head count. Either one moves the number by more than model size does.

What the configs say

The 24K tokens between 8K and 32K, fp16 cache:

Model Table step Config, 24K fp16 Ratio
Qwen3-32B (64L, 8 kv heads, 128) 2.4 GB 6.44 GB 0.37
Phi-4 (40L, 10, 128) 1.1 5.03 0.22
Qwen2.5-72B (80L, 8, 128) 5.4 8.05 0.67
Mistral Small 3.2 24B (40L, 8, 128) 1.8 4.03 0.45
GLM-4.5 (92L, 8, 128) 26.6 9.26 2.87
DeepSeek-V3 (61L, MLA 512+64) 50.3 1.73 29
Kimi K2 (61L, MLA 512+64) 75.0 1.73 43

No KV dtype rescues the column. If the calculator assumed a 4-bit cache, Kimi K2's step would be 0.43 GB, and the table prints 75.0.

The direction that matters

For the dense models people actually run on one card, the table understates. Qwen3-32B at 32K is 20.8 + 6.4 = 27.2 GB with fp16 KV, so it does not fit 24 GB. With an 8-bit cache it lands at 24.0 GB, which leaves nothing for CUDA context or activations. For the MLA models it overstates by 30 to 43 times, which is harmless if you were never going to run a 671B model at home and misleading if you are planning a multi-card box.

The author's calculator is a useful prompt, and the point here is not the author. It is that a column headed "32K" cannot be inferred from a parameter count, and a table that does it looks exact while being a rule of thumb.

Check your own

This reads config.json from the Hugging Face repo and prints the cache per token and at three contexts:

import json, sys, urllib.request repo = sys.argv[1] cfg = json.load(urllib.request.urlopen(f"https://huggingface.co/{repo}/resolve/main/config.json")) t = cfg.get("text_config", cfg) L = t["num_hidden_layers"] if "kv_lora_rank" in t: # MLA per = L * (t["kv_lora_rank"] + t["qk_rope_head_dim"]) * 2 else: # MHA / GQA hd = t.get("head_dim") or t["hidden_size"] // t["num_attention_heads"] per = L * t["num_key_value_heads"] * hd * 4 # K and V, fp16 print(f"{per/1024:.0f} KiB/token") for ctx in (8192, 32768, 131072): print(f"{ctx//1024:>4d}K {per*ctx/1e9:7.2f} GB") 

python3 kvcache.py Qwen/Qwen3-32B prints 256 KiB/token, then 2.15, 8.59 and 34.36 GB.

Assumptions, stated: fp16 cache (q8 halves it, q4 quarters it), decimal GB, and the parameter counts are the table's own approximations. A GiB conversion moves every number 7% and no ratio.

Run it on the model you actually serve and put the KiB/token in the comments. If your card fits at 32K and this says it should not, the script is wrong and I want the config.

Free first: one sizing question, answered with the arithmetic shown, no charge to jax-5@ilands.app.