Skip to content
AI Dev Toolkit.
Esc
  • Loading…

VRAM · Local model

Qwen3.8 27B VRAM requirements: can you run it locally?

Yes, on one 24 GB GPU such as the Radeon RX 7900 XTX, or a Mac with 32 GB of unified memory. At Q4_K_M and an 8K context it needs about 18 GB. At 8-bit (Q8_0) it needs about 31 GB, which fits a 32 GB card. Estimates from the model’s official config.json, checked 2026-10-08.

Parameters
27.8B
Layers
64
Max context
262,144
Experts
Dense

Attention: 16 full-attention layers, 48 Mamba or linear-attention layers.

Requirements

How much VRAM does Qwen 3.8 27B need?

Quantisation8K context32K context128K context256K context
FP16 / BF1657 GB59 GB66 GB75 GB
Q8_0 (8-bit)31 GB32 GB39 GB48 GB
Q6_K24 GB26 GB32 GB41 GB
Q5_K_M21 GB22 GB29 GB38 GB
Q4_K_M18 GB20 GB26 GB35 GB
Q3_K_M15 GB16 GB23 GB32 GB
Q2_K12 GB13 GB20 GB29 GB

Weights + FP16 KV cache + overhead, batch 1; the VRAM calculator shows the formula.

GPUs

Which GPUs can run Qwen 3.8 27B?

MemoryExample cardBest quality at 8KLongest context at that qualityLongest context at Q4_K_M
8 GBGeForce RTX 4060Doesn’t fit——
12 GBGeForce RTX 5070Q2_K · 12 GB11K—
16 GBGeForce RTX 5080Q3_K_M · 15 GB25K—
24 GBRadeon RX 7900 XTXQ6_K · 24 GB9K96K
32 GBGeForce RTX 5090Q8_0 (8-bit) · 31 GB25K212K
48 GBL40SQ8_0 (8-bit) · 31 GB256K256K
80 GBH100 80GBFP16 / BF16 · 57 GB256K256K
96 GBRTX PRO 6000 BlackwellFP16 / BF16 · 57 GB256K256K

The smallest card that holds Qwen 3.8 27B at Q4_K_M with an 8K context has 24 GB, such as the Radeon RX 7900 XTX; there it has room for about 96K tokens. Every extra gigabyte goes to context: on a 32 GB card the limit rises to 212K. For 8-bit or better you need a 32 GB card, and full 16-bit precision (57 GB) fits from 80 GB. Cards with 8 GB can’t hold it at any quantisation with an 8K context; the smallest file, Q2_K, needs about 12 GB.

Apple Silicon

Can you run Qwen 3.8 27B on a Mac?

Mac memoryGPU can useBest quality at 8KLongest context
16 GB11 GBDoesn’t fit—
24 GB16 GBQ3_K_M · 15 GB25K
32 GB21 GBQ5_K_M · 21 GB15K
36 GB27 GBQ6_K · 24 GB53K
48 GB36 GBQ8_0 (8-bit) · 31 GB83K
64 GB48 GBQ8_0 (8-bit) · 31 GB256K
96 GB72 GBFP16 / BF16 · 57 GB219K
128 GB96 GBFP16 / BF16 · 57 GB256K
192 GB144 GBFP16 / BF16 · 57 GB256K
256 GB192 GBFP16 / BF16 · 57 GB256K
512 GB384 GBFP16 / BF16 · 57 GB256K

At Q4_K_M and an 8K context, Qwen 3.8 27B needs a Mac with at least 32 GB of unified memory; 8-bit needs 48 GB and full precision needs 96 GB. By default macOS lets the GPU use about two thirds of memory on Macs with 32 GB or less and about three quarters on larger ones; the table uses that limit. You can raise it with sudo sysctl iogpu.wired_limit_mb, leaving at least 8 GB for macOS.

Context

How much memory does Qwen 3.8 27B’s context use?

ContextKV cache, FP16KV cache, 8-bitTotal at Q4_K_M
8,1920.5 GB0.3 GB18 GB
32,7682.0 GB1.1 GB20 GB
131,0728.0 GB4.3 GB26 GB
262,14416 GB8.5 GB35 GB

Qwen 3.8 27B’s FP16 cache grows by about 63 MB for every 1,000 tokens. At 8K tokens that is 0.5 GB, 3% of the total at Q4_K_M; at its full 262,144-token context it is 16 GB, about the same as the 16 GB of Q4_K_M weights. 48 of its 64 layers are Mamba or linear-attention layers with a fixed-size state, so they add nothing as the context grows; only the 16 attention layers have a KV cache. On a 24 GB card at Q4_K_M, the longest context is about 96K tokens with an FP16 cache and 180K with an 8-bit (q8_0) cache.

Download

How big is the Qwen 3.8 27B download?

GGUF quantisationBits per weightApproximate size
FP16 / BF1616.0052 GB
Q8_0 (8-bit)8.5027 GB
Q6_K6.5621 GB
Q5_K_M5.7018 GB
Q4_K_M4.8916 GB
Q3_K_M4.0013 GB
Q2_K3.1610 GB

A 27.8B-parameter model takes about 16 GB of disk at Q4_K_M and 52 GB as 16-bit weights, so the quantised file saves about 36 GB. Sizes are parameters × bits per weight; real GGUF files differ by a few per cent because some tensors stay at higher precision.

Offload

Can you run Qwen 3.8 27B with less VRAM by offloading to RAM?

GPU VRAMIn system RAMRAM to have
8 GB9.9 GB16 GB
16 GB1.9 GB16 GB

Yes: llama.cpp can keep part of Qwen 3.8 27B in system RAM and run it on the CPU, so the GPU and RAM together need about 18 GB at Q4_K_M and an 8K context. On an 8 GB card that leaves 9.9 GB in RAM. As a dense model, every token reads all 27.8B parameters, so each layer moved to RAM (fewer --n-gpu-layers) is limited by RAM bandwidth and generation slows as more of it leaves the GPU.

Compare

How does Qwen 3.8 27B compare with other Qwen models?

ModelParametersTypeQ4 at 8KSmallest GPUContext on 24 GB
Qwen2.5 7B7.6BDense5.8 GB8 GB32K
Qwen3 8B8.2BDense6.8 GB8 GB40K
Qwen3 14B14.8BDense11 GB12 GB40K
Qwen 3.8 27B27.8BDense18 GB24 GB96K
Qwen3 30B-A3B30.5BMoE20 GB24 GB40K
Qwen3 32B32.8BDense23 GB24 GB12K
Qwen2.5 Coder 32B32.8BDense23 GB24 GB12K
Qwen2.5 72B72.7BDense48 GBNone—
Qwen3 235B-A22B235.1BMoE149 GBNone—

Qwen 3.8 27B is number 4 by size of the 9 Qwen models we cover. The next smaller, Qwen3 14B, needs about 11 GB at Q4 with an 8K context. The next larger, Qwen3 30B-A3B, needs about 20 GB.

FAQ

Frequently asked questions

How much VRAM does Qwen 3.8 27B need?

With an 8K context, about 18 GB at Q4_K_M, 31 GB at 8-bit (Q8_0) and 57 GB at full 16-bit precision. That covers the weights, the KV cache and runtime overhead.

Can Qwen 3.8 27B run on a 24 GB GPU like the RTX 4090?

Yes: the best quality that fits with an 8K context is Q6_K, at about 24 GB, and at that setting it has room for about 9K tokens. At Q4_K_M the context can reach 96K.

Can I run Qwen 3.8 27B on a Mac?

Yes: at Q4_K_M and an 8K context it fits a Mac with 32 GB of unified memory using macOS’s default GPU memory limit (about 21 GB for the GPU).

Can Qwen 3.8 27B run on 16, 12 or 8 GB?

Best quality with an 8K context: 16 GB: Q3_K_M at about 15 GB, with up to 25K tokens; 12 GB: Q2_K at about 12 GB, with up to 11K tokens; 8 GB: no (even Q2_K needs 12 GB).

How big is the Qwen 3.8 27B download?

About 16 GB for a Q4_K_M GGUF, 27 GB at Q8_0 and 52 GB for the 16-bit weights.

What is the longest context Qwen 3.8 27B can use on 24 GB?

About 96K tokens at Q4_K_M with an FP16 cache, or 180K with an 8-bit cache. Its maximum is 262,144 tokens.

Related

Try other settings in the VRAM calculator

Keep exploring