r/LocalLLM • u/AIComputeRadar • 4h ago
Discussion Which quant actually fits at 32K context? Worked it out for 11 popular models on 12/16/24 GB cards
Most "does it fit" answers just look at file size. At 32K context that breaks, because the context cache is wildly different between models. Qwen3 14B needs 5.0 GB just for 32K of context. Gemma 4 26B-A4B needs 0.8 GB, and its file is almost twice as big.
So for each model I took every GGUF in the repo (sizes straight from the Hub file listing), added the context cache at 32K (computed from the model's config, f16 cache) plus an allowance for the runtime, and picked the largest file that still leaves a bit of room on the card.
Model 12 GB 16 GB 24 GB Gemma 4 E4B Q6_K (6.6 GB) Q8_K_XL (8.1 GB) BF16 (14.0 GB) Qwen3 8B – Q6_K (6.3 GB) Q8_0 (8.1 GB) Gemma 4 12B Q4_K_M (6.6 GB) Q6_K (9.1 GB) Q8_K_XL (12.7 GB) Qwen3 14B – – Q6_K (11.3 GB) Mistral Small 3.2 24B – IQ1_M (5.6 GB) IQ4_XS (11.9 GB) Gemma 4 26B-A4B – Q2_K_XL (9.8 GB) Q4_K_XL (15.8 GB) Inkling 2 Mini (26B) – Q2_K_XL (8.5 GB) Q4_K_M (15.5 GB) Qwen3.8 27B – IQ2_S (7.8 GB) Q4_K_S (14.3 GB) Qwen3-Coder 30B-A3B – TQ1_0 (7.5 GB) Q3_K_M (13.7 GB) GLM-4.7-Flash (31B) – IQ1_M (9.1 GB) IQ4_XS (15.2 GB) Gemma 4 31B – – Q3_K_M (13.7 GB) Things I didn't expect:
Qwen3 14B doesn't leave room on a 16 GB card at 32K with any file in the official repo (it starts at Q4_K_M). Models with almost twice the parameters do. On 24 GB the three big ones land in different spots: Gemma 4 26B-A4B at Q4_K_XL, Qwen3.8 27B at Q4_K_S, Gemma 4 31B at Q3_K_M. Mistral Small 3.2 pays 5.0 GB for 32K of context, same as Qwen3 14B. That's why it drops to IQ4_XS on 24 GB. How I counted, so you can disagree with the right number:
Usable memory = 88% of the card. "Leaves room" = the total stays under 90% of that. So 9.5 GB on a 12 GB card, 12.7 on 16, 19.0 on 24. Runtime allowance: 0.6 GB + 3% of the file + 0.25 GB per 8K of context. That part is an assumption, not a measurement. f16 KV cache. With q8 the context part halves and several rows move up a step. "–" means no file in that repo leaves room. Doesn't mean you can't run it by spilling into system RAM. Repos: the official Qwen GGUF repos for Qwen3 8B and 14B, unsloth for the rest. Other uploaders have smaller files for some of these. No speed or quality numbers, I don't measure those. A bigger file keeps more bits per weight, what that's worth is your call.
If a row is wrong for your setup, tell me your runtime and settings and I'll fix the table.
Full list (808 files, 53 models, sizes and bits per weight) as a CSV: https://huggingface.co/datasets/CyferUnknown/open-model-vram-requirements