Qwen4 35B-A3B vs Qwen 3.8 27B

Side-by-side VRAM requirements, benchmark scores, and GPU compatibility for local AI inference.

Quick verdict

Qwen 3.8 27B is more hardware-efficient: it needs 19.0 GB at its Q4_K_M build vs 26.7 GB for Qwen4 35B-A3B's Q4_K_M, fitting on 86 GPUs natively. Qwen4 35B-A3B is a Mixture of Experts model: it has 56.8B total parameters but only 3B are active per token, making inference faster than its total size suggests.

Analysis

Qwen's launch post for Qwen4 35B-A3B says it "outperforms the dense Qwen3.8-27B", and the 27B is the Qwen model this site ranks highest for 24 GB, 32 GB and 48 GB cards, so this is the comparison most people will want. Both are Apache 2.0 models that read text, images and video. The difference is how they spend their size. The 27B is dense: it reads all 27B parameters for every token. Qwen4 is a mixture of experts that reads about 3B per token, but it also carries a 20B lookup table, so it is the bigger download. Qwen3.8-27B came out on 14 August 2026 and Qwen4 35B-A3B on 4 December 2026.

Memory is where the 27B wins, by less than the download sizes suggest. Its Q4_K_M weights are 16.4 GB and it needs 19.0 GB at an 8k context. Qwen4's Q4_K_M download is 35.18 GB, and the reason is the n-gram table, a lookup of word-pair and word-triple embeddings that each token reads only a few rows of. Every Qwen4 GGUF is two files, and in Unsloth's Q4_K_M build the model file is 23.66 GB and the table is another 11.52 GB. Because the table is read so sparsely, llama.cpp keeps it in system RAM (the -ot per_layer_token_embd=CPU flag in Unsloth's commands), and this site counts it the same way on a PC: the GPU holds 26.7 GB at an 8k context and about 11.5 GB of system RAM holds the table. On that math a 32 GB RTX 5090 or a 48 GB card runs both models outright, while a 24 GB RTX 4090 runs the 27B outright and has to spill some of Qwen4's experts into system RAM. A Mac has no separate system RAM, so there both files count: 39.6 GB, which a 48 GB Mac holds and a 36 GB Apple M5 Max does not.

Speed is where Qwen4 wins, and it is the larger effect. Decoding is limited by how many parameters are read per token, and Qwen4 reads a ninth as many. On an RTX 5090 this site estimates 216.2 tokens per second for Qwen4 against 68.5 for the 27B, on a 48 GB L40S 145.2 against 30.6, and on a 48 GB M5 Max 77.4 against 28.9. Even on an RTX 4090, where some of Qwen4's experts sit in system RAM, the estimate stays well ahead: 87.1 against 43.5. Unsloth reports about 175 tokens per second on an RTX 5090 with its slightly larger UD-Q4_K_XL build, an external measurement in the same range as this site's estimate.

Quality splits by job. In Qwen's own chart, shown below, Qwen4 is ahead on coding and agent work, most of all on DeepSWE and Terminal Bench 4.1, and it also leads on the office and automation suites. The 27B keeps its lead on GPQA Diamond, a graduate-level science question set, and the two tie on chart reading. Two cautions. Every row is a Qwen run, some are taken from Artificial Analysis and Mercor, and none had been independently reproduced at time of writing. And do not set the Terminal Bench 4.1 scores beside the 73.0 this site shows for the 27B: that is Terminal Bench 2.1, an older revision, so the two sets of scores cannot be compared.

Long context favors Qwen4 in one way and not the other. Its native window is 1,048,576 tokens against the 27B's 262,144, and its cache is much cheaper per token because only 10 of its 40 layers keep one, so on a GPU the 27B's head start shrinks as the prompt grows and has gone by the 27B's full window (chart below). On a Mac, where Qwen4's table counts too, its larger weights keep it the bigger of the two at every length both support. Setup is similar and a little rougher for Qwen4: both have Ollama tags, but Qwen4 needs a current llama.cpp build, Ollama's page does not say whether it keeps the table off the GPU, and LM Studio had not announced support at time of writing.

Bottom line: On a 24 GB card, Qwen3.8-27B is the simple pick: it fits whole at Q4_K_M with room for context and scores higher on GPQA Diamond. Qwen4 is still worth trying there for agentic coding. At Q4_K_M some of its experts spill into system RAM and this site estimates about 87.1 tokens per second, twice the 27B's 43.5, and Unsloth's smaller builds fit the card outright (it suggests UD-IQ4_XS, a 20.52 GB model file, as the starting point). On a 32 GB or 48 GB card, Qwen4 is the default, as long as the PC has about 12 GB of system RAM free for the n-gram table: it fits, decodes three to five times faster, and on Qwen's numbers is the stronger agent model. Pick the 27B there only for reasoning-heavy work. On a Mac, Qwen4 needs 48 GB or more, because both of its files share the one memory pool; a 36 GB Mac should stay with the 27B. Run both on your own repository before committing, since every agentic score here is Qwen's own.

Stored versus read: why the smaller model is the slower one

Qwen4 stores about twice as many parameters as the 27B, most of them in the n-gram table, but it reads a ninth as many for each token. Stored parameters set the memory bill; parameters read set the speed.

Total parameters (B)
Qwen4 35B-A3B
56.8
Qwen3.8-27B
27.0
Active parameters per token (B)
Qwen4 35B-A3B
3.0
Qwen3.8-27B
27.0

What the shared 262,144-token window costs each model

Qwen3.8-27B's window ends at 262,144 tokens and Qwen4's runs to 1,048,576, so the comparison stops at the 27B's limit. Neither model uses a sliding window, so each cache grows in a straight line. Qwen4 caches 10 layers with 2 KV heads, about 20 KB per token; the 27B caches 16 layers with 4 KV heads, about 66 KB per token, more than three times as much.

0612182464k128k192k256k5.4 GBQwen4 35B-A3B17.2 GBQwen3.8-27B
Qwen4 35B-A3B (10 of 40 layers cache)Qwen 3.8 27B (16 of 64 layers cache)

KV cache only, at FP16. Weights and activation overhead sit on top of these figures.

At 262,144 tokens Qwen4's KV cache is 5.4 GB against 17.2 GB for the 27B. Adding Q4_K_M weights, a GPU needs 32.5 GB for Qwen4, with its n-gram table in system RAM, and 37.7 GB for the 27B, so by this length Qwen4 is the smaller of the two. On a Mac, where the table counts too, Qwen4's total is 45.4 GB. Only Qwen4 can go on to 1,048,576 tokens, where a GPU needs 50.6 GB.

Qwen's launch chart: where each model wins

Only GPQA Diamond has a field in this site's benchmark data. These are the eleven rows of Qwen's chart on a 0 to 100 scale where both models have a score, and Qwen4 is ahead on nine of them.

DeepSWE v1.1
Qwen4 35B-A3B
61.8
Qwen3.8-27B
42.2
Terminal Bench 4.1
Qwen4 35B-A3B
21.2
Qwen3.8-27B
5.6
NL2Repo
Qwen4 35B-A3B
51.7
Qwen3.8-27B
42.3
APEX-Agents v1.1
Qwen4 35B-A3B
59.0
Qwen3.8-27B
47.5
AutomationBench-AA
Qwen4 35B-A3B
57.9
Qwen3.8-27B
48.2
Work360
Qwen4 35B-A3B
42.9
Qwen3.8-27B
37.1
HealthBench Professional
Qwen4 35B-A3B
47.4
Qwen3.8-27B
29.8
FrontierCode-AA 2.0
Qwen4 35B-A3B
16.1
Qwen3.8-27B
14.9
VideoIndex
Qwen4 35B-A3B
52.9
Qwen3.8-27B
51.9
Chartography
Qwen4 35B-A3B
27.8
Qwen3.8-27B
27.8
GPQA Diamond
Qwen4 35B-A3B
86.9
Qwen3.8-27B
89.2

Qwen's benchmark chart on the Qwen4-35B-A3B model card (Hugging Face, 4 December 2026). Terminal Bench 4.1, FrontierCode-AA 2.0 and AutomationBench-AA are cited by Qwen from Artificial Analysis, APEX-Agents from Mercor, and Work360 is Qwen's own internal suite. The chart's AA-Briefcase row is an Elo rating, not a 0 to 100 score, so it is left out. Self-reported and not independently reproduced when this page was written.

VRAM at each quantization (8k context)

FP32
Qwen4 35B-A3B
161.1 GB
Qwen 3.8 27B
121.6 GB
BF16
Qwen4 35B-A3B
80.7 GB
Qwen 3.8 27B
61.1 GB
FP16
Qwen4 35B-A3B
80.7 GB
Qwen 3.8 27B
61.1 GB
Q8_0
Qwen4 35B-A3B
43.0 GB
Qwen 3.8 27B
32.8 GB
Q6_K
Qwen4 35B-A3B
32.9 GB
Qwen 3.8 27B
25.4 GB
Q5_K_M
Qwen4 35B-A3B
30.4 GB
Qwen 3.8 27B
22.1 GB
Q4_K_M
Qwen4 35B-A3B
26.7 GB
Qwen 3.8 27B
19.0 GB
Q3_K_M
Qwen4 35B-A3B
21.9 GB
Qwen 3.8 27B
15.2 GB
Q2_K
Qwen4 35B-A3B
18.3 GB
Qwen 3.8 27B
12.1 GB
NVFP4
Qwen4 35B-A3B
29.8 GB
Qwen 3.8 27B
15.7 GB
QuantQwen4 35B-A3BQwen 3.8 27BDiff
FP32161.1 GB121.6 GB+33%
BF1680.7 GB61.1 GB+32%
FP1680.7 GB61.1 GB+32%
Q8_043.0 GB32.8 GB+31%
Q6_K32.9 GB25.4 GB+29%
Q5_K_M30.4 GB22.1 GB+38%
Q4_K_M26.7 GB19.0 GB+40%
Q3_K_M21.9 GB15.2 GB+44%
Q2_K18.3 GB12.1 GB+51%
NVFP429.8 GB15.7 GB+89%

Diff is Qwen4 35B-A3B relative to Qwen 3.8 27B. Green = lower VRAM (fits more GPUs).

Model specifications

SpecQwen4 35B-A3BQwen 3.8 27B
OrgAlibabaAlibaba
Parameters56.8B27B
ArchitectureMoE (3B active)Dense
Context1M tokens256k tokens
Modalitiestext, vision, videotext, vision, video
LicenseApache 2.0Apache 2.0
CommercialYesYes
Released2026-12-042026-08-14
GPUs (native)57 / 12186 / 121

Benchmark scores

BenchmarkQwen4 35B-A3BQwen 3.8 27B
GPQA Diamond86.989.2

Green = higher score (better). N/A = not yet available. ~ = inherited from a base model, not independently reported for that release itself.

GPUs that run only Qwen4 35B-A3B(0)

Every GPU that runs Qwen4 35B-A3B also runs Qwen 3.8 27B.

GPUs that run only Qwen 3.8 27B(29)

GPUs that run both natively(57)

Which should you use?

Choose Qwen4 35B-A3B if:
  • • You want maximum capability and have a 27 GB+ GPU
  • • You want fast inference: MoE only activates 3B params per token
  • • Long context matters: it supports 1M tokens vs 256k
  • • It's the newer release (2026-12-04 vs 2026-08-14); check the benchmark table above for what actually improved
Choose Qwen 3.8 27B if:
  • • You have limited VRAM: it's a smaller model needing 19.0 GB vs 26.7 GB

Frequently asked questions

Which is better, Qwen4 35B-A3B or Qwen 3.8 27B?
Qwen4 35B-A3B has 56.8B parameters vs 27B for Qwen 3.8 27B, so Qwen4 35B-A3B is the larger model. Qwen 3.8 27B is more hardware-efficient, needing 19.0 GB at its Q4_K_M build vs 26.7 GB for Qwen4 35B-A3B's Q4_K_M. Qwen 3.8 27B runs on more GPUs natively (86 vs 57).
How much VRAM does Qwen4 35B-A3B need vs Qwen 3.8 27B?
At 8k context, Qwen4 35B-A3B needs approximately 26.7 GB of VRAM at its Q4_K_M build, while Qwen 3.8 27B needs 19.0 GB at its Q4_K_M build. At the largest build each ships, Qwen4 35B-A3B requires 80.7 GB (FP16) vs 61.1 GB (FP16) for Qwen 3.8 27B.
Can you run Qwen4 35B-A3B on the same GPUs as Qwen 3.8 27B?
Yes, 57 GPUs can run both natively in VRAM, including NVIDIA RTX 5090, NVIDIA RTX 4090, NVIDIA RTX 3090. However, no GPU can run Qwen4 35B-A3B without also fitting Qwen 3.8 27B, and 29 GPUs can run Qwen 3.8 27B but not Qwen4 35B-A3B.
What is the difference between Qwen4 35B-A3B and Qwen 3.8 27B?
Qwen4 35B-A3B has 56.8B parameters (3B active, MoE) with a 1M context window. Qwen 3.8 27B has 27B parameters (dense) with a 256k context window.
Which model fits in 24 GB of VRAM, Qwen4 35B-A3B or Qwen 3.8 27B?
Only Qwen 3.8 27B fits in 24 GB, at its Q4_K_M build (19.0 GB). Qwen4 35B-A3B needs 26.7 GB at Q4_K_M, requiring a larger GPU.
Which handles long context better, Qwen4 35B-A3B or Qwen 3.8 27B?
At 262,144 tokens Qwen4's KV cache is 5.4 GB against 17.2 GB for the 27B. Adding Q4_K_M weights, a GPU needs 32.5 GB for Qwen4, with its n-gram table in system RAM, and 37.7 GB for the 27B, so by this length Qwen4 is the smaller of the two. On a Mac, where the table counts too, Qwen4's total is 45.4 GB. Only Qwen4 can go on to 1,048,576 tokens, where a GPU needs 50.6 GB.
Full Qwen4 35B-A3B page →Full Qwen 3.8 27B page →Check your hardware →