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.

Updated 29 Oct 2026

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.

Qwen3.8-27B file size and total at 8,192 tokens. Totals are our estimate.
FileFile GBTotal @ 8K
UD-IQ2_XXS7.27 GB8.61 GB
UD-IQ3_XXS10.93 GB12.27 GB
UD-IQ4_XS14.25 GB15.59 GB
UD-Q4_K_M (= site Q4)16.46 GB17.80 GB
UD-Q4_K_XL17.56 GB18.90 GB
UD-Q5_K_XL20.88 GB22.22 GB
UD-Q6_K21.98 GB23.32 GB
Q8_029.05 GB30.39 GB

How much context fits on 12, 16, 24 and 32 GB?

Qwen3.8-27B total memory by context, and the longest context that fits 12, 16, 24 and 32 GB. FP16 cache. Our estimate.
FileFile GBTotal @ 8KTotal @ 32KTotal @ 128KTotal @ 262KMax context 12 GB16 GB24 GB32 GB
UD-IQ2_XXS7.27 GB8.61 GB10.22 GB16.66 GB25.25 GB49K109K228K262K (max)
UD-IQ3_XXS10.93 GB12.27 GB13.88 GB20.32 GB28.91 GBno fit54K173K262K (max)
UD-IQ4_XS14.25 GB15.59 GB17.20 GB23.64 GB32.23 GBno fitno fit124K243K
UD-Q4_K_M (= site Q4)16.46 GB17.80 GB19.41 GB25.85 GB34.44 GBno fitno fit91K210K
UD-Q4_K_XL17.56 GB18.90 GB20.51 GB26.95 GB35.54 GBno fitno fit75K194K
UD-Q5_K_XL20.88 GB22.22 GB23.83 GB30.27 GB38.86 GBno fitno fit25K144K
UD-Q6_K21.98 GB23.32 GB24.93 GB31.37 GB39.96 GBno fitno fit9K128K
Q8_029.05 GB30.39 GB32.00 GB38.44 GB47.03 GBno fitno fitno fit23K

“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.

Max context with a q8_0 KV cache. Our arithmetic. Quality impact is not measured.
File24 GB max context (q8_0 KV)16 GB (q8_0 KV)
UD-IQ2_XXS262K (max)218K
UD-IQ3_XXS262K (max)109K
UD-IQ4_XS248K10K
UD-Q4_K_M (= site Q4)182Kno fit
UD-Q4_K_XL150Kno fit
UD-Q5_K_XL51Kno fit
UD-Q6_K18Kno fit
Q8_0no fitno 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?

Which card holds Qwen3.8-27B at 32K context or more. Prices are the figures we store.
CardMemoryUsablePrice storedBest file at 32K or more (FP16 cache)Link
GeForce RTX 3060 12GB12 GB11.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 16GB16 GB15.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 16GB16 GB15.4 GB€899 / $832 (16 Oct 2026)UD-IQ3_XXS (54K)/can-i-run/qwen3.8-27b/rtx-4060-ti-16gb
GeForce RTX 3090 24GB24 GB23.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 24GB24 GB23.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 24GB24 GB23.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 32GB32 GB31.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.