Advisor / Models / Qwen3.8 27B

Qwen3.8 27B: VRAM requirements & speed

Qwen3.8 27B (27.78B dense, apache-2.0). Native context 256k, 1M with YaRN. Smallest GGUF: 16.46 GB.

16.46 GBsmallest quant file
19hardware pages that fit it fully
8run with offload
0measured data points

Memory needed by quantization and context

GGUF file size plus f16 KV cache (and fixed overhead of ~1 GB per GPU not shown). Source: unsloth/Qwen3.8-27B-GGUF.

QuantFile+8k ctx+32k ctx+128k ctx+256k ctx+1M ctx
Q4_K_M UD-Q4_K_M16.46 GB17.2 GB18.8 GB25.2 GB33.8 GB82.2 GB
Q5_K_M UD-Q5_K_M19.77 GB20.5 GB22.1 GB28.5 GB37.1 GB85.5 GB
Q6_K UD-Q6_K21.98 GB22.7 GB24.3 GB30.7 GB39.3 GB87.7 GB
Q8_029.05 GB29.7 GB31.4 GB37.8 GB46.4 GB94.7 GB

KV cache size by context length

Computed from the model's attention layout, including a fixed 0.16 GB linear-attention state.

Contextf16q8_0q4_0
8k0.69 GB0.44 GB0.31 GB
32k2.30 GB1.30 GB0.76 GB
128k8.75 GB4.72 GB2.57 GB
256k17.34 GB9.28 GB4.99 GB
1M YaRN65.69 GB34.97 GB18.59 GB

Which hardware runs Qwen3.8 27B? · 16k context

HardwareQuantFitMemoryTok/sSpeed source
RTX 5090 32GBQ8_0fits fully30.3 GB53scaled from measured
RTX PRO 6000 96GBQ8_0fits fully30.3 GB50scaled from measured
RTX 4090 24GBUD-Q5_K_Mfits fully21.0 GB41scaled from measured
RTX 3090 24GBUD-Q5_K_Mfits fully21.0 GB36scaled from measured
AMD RX 7900 XTX 24GBUD-Q4_K_Mfits fully17.7 GB36scaled from measured
Mac Studio M5 Ultra 256GBQ8_0fits fully30.3 GB26estimated
Mac Studio M5 Ultra 512GB (ships late Oct 2026)Q8_0fits fully30.3 GB26estimated
2x RTX 3090 (48GB total)Q8_0fits fully30.3 GB22estimated
Mac Studio M5 Max 128GBQ8_0fits fully30.3 GB17scaled from measured
MacBook Pro 14/16 M5 Max 128GBQ8_0fits fully30.3 GB17scaled from measured
Mac Studio (2025) M3 Ultra 96GBUD-Q5_K_Mfits fully21.0 GB16estimated
MacBook Pro 14/16 (2024) M4 Max 128GBUD-Q4_K_Mfits fully17.7 GB16estimated
RTX 5080 16GBUD-Q4_K_Mpartial offload (slow)17.7 GB15estimated
RTX 5070 Ti 16GBUD-Q4_K_Mpartial offload (slow)17.7 GB15estimated
NVIDIA DGX Spark 128GBUD-Q4_K_Mfits fully17.7 GB13estimated
AMD Ryzen AI Max+ PRO 495 (Ryzen AI Halo) 192GBUD-Q4_K_Mfits fully17.7 GB13estimated
MacBook Pro 14/16 M5 Pro 48GBUD-Q4_K_Mfits fully17.7 GB13estimated
AMD Ryzen AI Max+ 395 (Strix Halo) 128GBUD-Q4_K_Mfits fully17.7 GB13scaled from measured
RTX 5060 Ti 16GBUD-Q4_K_Mpartial offload (slow)17.7 GB12estimated
16GB VRAM class (RTX 4060 Ti 16GB, 32GB RAM)UD-Q4_K_Mpartial offload (slow)17.7 GB10estimated
Mac mini (2024) M4 Pro 64GBUD-Q4_K_Mfits fully17.7 GB10estimated
RTX 5070 12GBUD-Q4_K_Mpartial offload (slow)17.7 GB7estimated
RTX 4070 12GBUD-Q4_K_Mpartial offload (slow)17.7 GB7estimated
Mac mini M6 32GBUD-Q4_K_Mfits fully17.7 GB6estimated
MacBook Air M5 32GBUD-Q4_K_Mfits fully17.7 GB6estimated
8GB VRAM class (RTX 4060 8GB, 32GB RAM)UD-Q4_K_Mpartial offload (slow)17.7 GB5estimated
RTX 3060 12GB (32GB RAM)UD-Q4_K_Mpartial offload (slow)17.7 GB4estimated
Mac mini / iMac M4 16GB-does not fit--

Discrete GPUs are modelled with 32 GB of system RAM available for offload. Does not fit even with offload: Mac mini / iMac M4 16GB.

MLX conversions for Apple Silicon

RepoBitsSizeRuns with
mlx-community/Qwen3.8-27B-4bit4-bit (4bit)16.1 GBmlx-vlm
mlx-community/Qwen3.8-27B-8bit8-bit (8bit)29.5 GBmlx-vlm

Verified via the Hugging Face API on 2026-10-20. Compare with the GGUF sizes above (Q4_K_M 16.46 GB, Q8_0 29.05 GB). Mac hardware pages show the MLX command; there are no MLX speeds on this site yet. MLX vs GGUF.

Links

Model card · GGUF files · Open in the advisor · last verified 2026-10-20

FAQ

How much VRAM does Qwen3.8 27B need?

The smallest quant (Q4_K_M) is 16.46 GB, so you need roughly 18 GB for an 8k context including KV cache and overhead. At 1M context the f16 KV cache alone is 65.7 GB.

Can I run Qwen3.8 27B on a RTX 5090 32GB?

Yes: on RTX 5090 32GB it fits fully as Q8_0 at about 53 tok/s (scaled from measured). 19 of 28 hardware configurations fit it fully at 16k context.

What is the maximum context for Qwen3.8 27B?

256k tokens natively, up to 1M with YaRN as documented on the model card. Memory, not the model, is usually the limit: see the KV cache table above.

All models: model index · by memory: 8 GB · 12 GB · 16 GB · 24 GB · 32 GB · 48 GB · 64 GB · 96 GB · 128 GB · 192 GB · 256 GB · 512 GB. Numbers use the same fit math as the advisor; sources and methods.