Qwen3.8-27B GGUF: which quant fits your GPU, and how much context?
Key facts
Qwen3.8-27B at standard 4-bit needs about 17.80 GB at 8,192 tokens, with room for about 91K tokens on a 24 GB card. Our estimate.
Updated . Checked . Source.
Qwen3.8-27B at standard 4-bit (the 16.46 GB UD-Q4_K_M file) needs about 17.80 GB with 8,192 tokens of context, so it fits a 24 GB card with room for about 91K tokens. For the full 262,144-token window at 4-bit you need about 34.44 GB, more than one 24 GB or 32 GB card gives at Q4_K_M with an FP16 cache.
Every figure below is our estimate from the model's config and the published file sizes, not a measurement.
How much VRAM does Qwen3.8-27B need?
The total is the file, plus 65,536 bytes per token for an FP16 cache (16 full-attention layers × 4 KV heads × 256 × 2 × 2 bytes), plus 0.80 GB of working space. A card keeps 0.6 GB free, so 12 GB leaves 11.4 GB, 16 GB leaves 15.4 GB, 24 GB leaves 23.4 GB and 32 GB leaves 31.4 GB. Work a different length in the VRAM calculator.
| File | File GB | Total @ 8K |
|---|---|---|
| UD-IQ2_XXS | 7.27 GB | 8.61 GB |
| UD-IQ3_XXS | 10.93 GB | 12.27 GB |
| UD-IQ4_XS | 14.25 GB | 15.59 GB |
| UD-Q4_K_M (= site Q4) | 16.46 GB | 17.80 GB |
| UD-Q4_K_XL | 17.56 GB | 18.90 GB |
| UD-Q5_K_XL | 20.88 GB | 22.22 GB |
| UD-Q6_K | 21.98 GB | 23.32 GB |
| Q8_0 | 29.05 GB | 30.39 GB |
How much context fits on 12, 16, 24 and 32 GB?
| File | File GB | Total @ 8K | Total @ 32K | Total @ 128K | Total @ 262K | Max context 12 GB | 16 GB | 24 GB | 32 GB |
|---|---|---|---|---|---|---|---|---|---|
| UD-IQ2_XXS | 7.27 GB | 8.61 GB | 10.22 GB | 16.66 GB | 25.25 GB | 49K | 109K | 228K | 262K (max) |
| UD-IQ3_XXS | 10.93 GB | 12.27 GB | 13.88 GB | 20.32 GB | 28.91 GB | no fit | 54K | 173K | 262K (max) |
| UD-IQ4_XS | 14.25 GB | 15.59 GB | 17.20 GB | 23.64 GB | 32.23 GB | no fit | no fit | 124K | 243K |
| UD-Q4_K_M (= site Q4) | 16.46 GB | 17.80 GB | 19.41 GB | 25.85 GB | 34.44 GB | no fit | no fit | 91K | 210K |
| UD-Q4_K_XL | 17.56 GB | 18.90 GB | 20.51 GB | 26.95 GB | 35.54 GB | no fit | no fit | 75K | 194K |
| UD-Q5_K_XL | 20.88 GB | 22.22 GB | 23.83 GB | 30.27 GB | 38.86 GB | no fit | no fit | 25K | 144K |
| UD-Q6_K | 21.98 GB | 23.32 GB | 24.93 GB | 31.37 GB | 39.96 GB | no fit | no fit | 9K | 128K |
| Q8_0 | 29.05 GB | 30.39 GB | 32.00 GB | 38.44 GB | 47.03 GB | no fit | no fit | no fit | 23K |
“no fit” means the file does not fit even at 8,192 tokens. “262K (max)” means the model's 262,144-token limit is reached before memory runs out. The image projector (mmproj, 0.93 GB) and the MTP drafter (1.37 GB) are not in these totals. On 24 GB, UD-Q4_K_M plus both of those leaves about 57K tokens instead of 91K.
Does a q8_0 cache double the context?
A q8_0 cache (`-ctk q8_0 -ctv q8_0` in llama.cpp) halves conversation memory. The table is our arithmetic. The effect on answer quality is not measured.
| File | 24 GB max context (q8_0 KV) | 16 GB (q8_0 KV) |
|---|---|---|
| UD-IQ2_XXS | 262K (max) | 218K |
| UD-IQ3_XXS | 262K (max) | 109K |
| UD-IQ4_XS | 248K | 10K |
| UD-Q4_K_M (= site Q4) | 182K | no fit |
| UD-Q4_K_XL | 150K | no fit |
| UD-Q5_K_XL | 51K | no fit |
| UD-Q6_K | 18K | no fit |
| Q8_0 | no fit | no fit |
Why the cache is so small: 16 of 64 layers
Only 16 of Qwen3.8-27B's 64 layers use full attention, with 4 KV heads of dimension 256. That is about 65.5 KB per token. The other 48 layers use linear attention (Gated DeltaNet). Their fixed-size state does not grow with context, and that state size is not in our estimate.
Which card should I buy for long context?
| Card | Memory | Usable | Price stored | Best file at 32K or more (FP16 cache) | Link |
|---|---|---|---|---|---|
| GeForce RTX 3060 12GB | 12 GB | 11.4 GB | €261 / $292 (24 Oct 2026) | UD-IQ2_XXS (49K max) | /can-i-run/qwen3.8-27b/rtx-3060-12gb |
| Radeon RX 9060 XT 16GB | 16 GB | 15.4 GB | €564 / $522 (17 Oct 2026) | UD-IQ3_XXS (54K) | /can-i-run/qwen3.8-27b/rx-9060-xt-16gb |
| GeForce RTX 4060 Ti 16GB | 16 GB | 15.4 GB | €899 / $832 (16 Oct 2026) | UD-IQ3_XXS (54K) | /can-i-run/qwen3.8-27b/rtx-4060-ti-16gb |
| GeForce RTX 3090 24GB | 24 GB | 23.4 GB | €1,246 / $1,395 (24 Oct 2026) | UD-Q4_K_M (91K) or UD-Q4_K_XL (75K) | /can-i-run/qwen3.8-27b/rtx-3090 |
| Radeon RX 7900 XTX 24GB | 24 GB | 23.4 GB | €1,254 / $1,404 (17 Oct 2026) | UD-Q4_K_M (91K) | /can-i-run/qwen3.8-27b/rx-7900-xtx |
| GeForce RTX 4090 24GB | 24 GB | 23.4 GB | €2,185 / $2,446 (16 Oct 2026) | UD-Q4_K_M (91K) | /can-i-run/qwen3.8-27b/rtx-4090 |
| GeForce RTX 5090 32GB | 32 GB | 31.4 GB | €7,367 / $6,816 (21 Oct 2026) | UD-Q6_K (128K) or UD-Q4_K_M (210K) | /can-i-run/qwen3.8-27b/rtx-5090 |
The same model on one card: Can I run Qwen3.8-27B. What else fits each size: 12 GB, 16 GB, 24 GB and 32 GB. The used 24 GB card we price: GeForce RTX 3090 24GB.
Community measurement, not ours (published 18 Sept 2026): on one RTX 3090, llama.cpp as shipped about 27.6 tokens per second, and llama.cpp tuned (flash attention, a q8 KV cache and MTP) about 42.6 tokens per second, on a 4-bit checkpoint with a prompt of about 1,000 tokens. Speed at a long context is not measured. Source.
Compare
Qwen3.8-27B next to other models: Qwen3.8-27B vs Gemma 4 31B, Qwen3.6-35B-A3B vs Qwen3.8-27B, and what the quant names mean. The model page is Qwen3.8-27B, and the fit page is Can I run Qwen3.8-27B.
Sources
Config: Qwen/Qwen3.8-27B config.json. File sizes, checked 24 Oct 2026: unsloth/Qwen3.8-27B-GGUF. Our model row: /api/models. Stored prices: /api/hardware.
Sources and method
Checked . Source
Speeds and memory are our estimate from the hardware specs, not a measured test. Prices are dated and may change. How we calculate
Questions
- How much VRAM does Qwen3.8-27B need?
- At standard 4-bit (UD-Q4_K_M, a 16.46 GB file) Qwen3.8-27B needs about 17.80 GB with 8,192 tokens of context: 16.46 GB of weights, 0.54 GB of conversation memory and 0.80 GB of working space. That is our estimate, not a measurement.
- How much context can Qwen3.8-27B use on a 24 GB GPU?
- With 23.4 GB usable on a 24 GB card, the UD-Q4_K_M file leaves room for about 91K tokens at an FP16 cache, UD-Q4_K_XL about 75K, UD-Q5_K_XL about 25K and UD-Q6_K about 9K. UD-IQ4_XS reaches about 124K. These are estimates from the model config, not measurements.
- Can Qwen3.8-27B run its full 262K context on one GPU?
- Not at 4-bit on 24 GB. The full 262,144-token cache alone is about 17.18 GB at FP16, so UD-Q4_K_M needs about 34.44 GB in total. A 32 GB card reaches about 210K tokens at UD-Q4_K_M; the 2-bit and 3-bit files reach the full 262K on 32 GB.
- Why is Qwen3.8-27B's conversation memory so small?
- Only 16 of its 64 layers use full attention, with 4 KV heads of dimension 256. That is about 65.5 KB per token, or 0.54 GB at 8,192 tokens. The other 48 layers use linear attention (Gated DeltaNet) with a fixed-size state that does not grow with context.
- Does Qwen3.8-27B fit on 12 GB or 16 GB?
- On 12 GB (11.4 GB usable) only the 2-bit UD-IQ2_XXS file fits, with about 49K tokens. On 16 GB (15.4 GB usable) UD-IQ2_XXS reaches about 109K tokens and UD-IQ3_XXS about 54K. The 4-bit files need a 24 GB card.
- Does a q8_0 KV cache help?
- Yes. A q8_0 cache halves conversation memory, so on 24 GB UD-Q4_K_M goes from about 91K to about 182K tokens in our arithmetic. Quality effects of a quantized cache are not measured here.
Want it on paper? The GPU Buying Cheat Sheet (EU, Oct 2026) is a short PDF: graphics memory per budget and the cheapest machine per model size.