Qwen: how to size the family to the hardware you have, generation by generation

Qwen is the open family most used by people writing in Italian and French, but "which Qwen do I download?" has no single answer: it depends on the RAM you have, how much context you need and how much speed you want. This is the practical guide: how to read the sizes, what fits in 8, 16, 24 and 32 GB of VRAM, and what it really costs to run a Qwen model locally, with the electricity bill and the amortization done with the numbers.
First: dense versus MoE
Qwen has two architecture families, and the difference changes all the sizing.
- Dense (Qwen2.5 7B, 14B, 32B, 72B; Qwen3 8B, 14B, 32B, 36B): all parameters work per token. More means more quality and more RAM, and speed drops proportionally.
- MoE (Qwen3 30B-A3B; Qwen4 35B-A3B): many parameters total, but only a small part active per token (A3B = ~3B active). The RAM is there to hold the total, the speed is that of a small model.
The criterion that draws the line: if RAM is the constraint, go MoE; if speed is the constraint and you have little RAM, a small dense beats a big MoE that offloads. A Qwen3 30B-A3B in Q4 weighs ~19 GB and does not fit whole in 16 GB, but with 3B active the partial offload is much less painful than on a dense 27B. Qwen3-30B-A3B.
The generations, in brief
- Qwen2.5 — the consolidated generation: mature, supported by all tools, from 0.5B to 72B. It is the "if you want stability, start here".
- Qwen3 — brings the MoE (30B-A3B) and the thinking mode (the model reasons before answering). It is today's generation for most users. Ollama qwen3
- Qwen3.5 / Qwen3.8 — the mid tier in evolution, with dense and MoE variants (e.g. 27B, 2.4T-A95B for who has a cluster).
- Qwen4 — the new generation (December 2026): multimodal MoE with 1M context and PLE embeddings. The open entry model is Qwen4-35B-A3B. Ollama qwen4
The practical rule: Qwen2.5 for who wants a model that does not change for years, Qwen3 for who wants today's best compromise, Qwen4 for who has 32 GB+ and wants wide context.
What fits in how much VRAM: the table that counts
The Q4 quant (GGUF Q4_K_M) compresses a model to ~0.55 bytes per parameter. On this base, plus the KV cache and a margin, here is what fits where:
| Model | Parameters | Q4 weight | Fits in | Typical context |
|---|---|---|---|---|
| Qwen3 4B (MoE) | 4B active / 30B tot | ~18 GB (offload) | 8–16 GB | 8–16k |
| Qwen2.5 7B (dense) | 7B | ~4.5 GB | 8 GB | 16k+ |
| Qwen3 8B (dense) | 8B | ~5 GB | 8–12 GB | 16–32k |
| Qwen2.5 14B (dense) | 14B | ~9 GB | 12–16 GB | 8–16k |
| Qwen2.5 32B (dense) | 32B | ~20 GB | 24 GB | 8–16k |
| Qwen3 30B-A3B (MoE) | 30B tot / 3B active | ~19 GB | 16–24 GB | 16–32k |
| Qwen4 35B-A3B (MoE) | 35B tot / 3.8B active | ~31 GB | 32 GB | 32k–1M |
The pattern: with 8 GB you are in the 7–8B class (solid quality for summaries, emails, triage); with 16 GB you open the 27–30B in Q4 (the 2026 sweet spot); with 24 GB you stop at the dense 32B; with 32 GB you reach the 35B+ MoE with wide context. Below 8 GB, Qwen2.5 0.5B and 3B run on CPU or a laptop without a GPU too. Qwen family.

Speed is the second axis, after memory. On a 30B MoE (~19 GB in Q4) decoding is a memory-bandwidth game: for every token the engine re-reads the resident weights from VRAM, so the theoretical limit is bandwidth divided by the resident weight size, not just the 3B active. On three 16 GB cards of the Blackwell generation — RTX 5060 Ti (448 GB/s), 5070 (672 GB/s), 5070 Ti (896 GB/s) — the theoretical limit is ~24, 35 and 47 tok/s; with the 70–75 % that materializes in practice with the KV cache and overhead, the generation speed is in the order of 17, 25 and 34 tok/s. The 5070 Ti doubles the 5060 Ti's bandwidth: that is the difference between "I work on it" and "I work on it without waiting".
What it costs, with the numbers
The account most articles skip. A 32 GB setup (a workstation with RTX 5070 Ti 16 GB + 32 GB system RAM, or a Mac with 36 GB unified) costs once ~1,500–2,500 €. The electricity for using it 3 hours a day at ~250 W under load (a rate of ~0.25 €/kWh):
- load: 0.25 kWh × 3 h × 0.25 € = 0.19 €/day ≈ 5.6 €/month
- standby (idle, ~15 W): 0.015 kWh × 23 h × 0.25 € = 0.086 €/day ≈ 2.6 €/month
- total: ~8 €/month of electricity
The hardware amortization over 36 months: 2,000 € ÷ 36 = ~55 €/month. The total local cost is therefore ~63 €/month, regardless of how many requests you make. On the API side, a moderate use (3,000 requests/month, ~1,500 tokens) on a frontier model costs ~30–60 €/month but grows linear with usage. The economic break-even is around 12–24 months of regular use; before, the API costs less, after, local costs less and does not depend on a rate card. The full account — with the 36-month curve — is in the dedicated cost article.
| Local (32 GB) | API frontier | |
|---|---|---|
| Month 1 | ~2,063 € (hardware + ~63 €) | ~40 € |
| Month 12 | ~63 €/month | ~40–50 €/month |
| Month 36 | ~8 €/month (amortization done) | ~40–50 €/month |
| 10× the use | +10–20 € (electricity) | 10× the bill |
| Internet down | Works | Nothing |
How to run it in practice
The simplest route remains Ollama: you install the engine, then ollama run with the model name. For Qwen3: ollama run qwen3:8b (or qwen3:30b-a3b for the MoE); for Qwen4: ollama run qwen4. For who wants more control (context, quantization, offload) there is llama.cpp with the official GGUFs, and LM Studio for the graphical route.
# Ollama: install and launch
ollama pull qwen3:8b
ollama run qwen3:8b "Answer in Italian: what is local AI?"
# Qwen4 (35B MoE, needs 32 GB)
ollama run qwen4
If it does not work: the "model too large for VRAM" is almost always a model that does not fit. Drop a size (8B instead of 14B) or a quant (Q4 instead of Q6), or increase the context only if the RAM allows. The rule: weights + KV cache + margin, not just weights.
The limits, stated plainly
- RAM is the ceiling, not the speed. A 32B in Q4 fits in 24 GB but goes slow if the memory bandwidth is low; a 30B MoE in 16 GB goes fast but does not fit whole. The two sizes are not interchangeable.
- Long context costs RAM. Even efficient MoE like Qwen4 have the weights to hold: "1M native" does not mean 1M on 16 GB.
- Hardware prices oscillate. GDDR7 is under market pressure in 2026: a 5070 Ti at list is one account, at street price it can be another. Check the street price before buying.
In summary
-
Dense versus MoE is the mother choice: RAM as constraint → MoE; speed with little RAM → small dense.
-
8 GB = 7–8B class, 16 GB = 27–30B in Q4 (sweet spot), 24 GB = dense 32B, 32 GB = 35B+ MoE with wide context.
-
Qwen2.5 for stability, Qwen3 for today's compromise, Qwen4 for wide context on 32 GB+.
-
The local cost is ~63 €/month over 36 months with 2,000 € of hardware; the break-even with the API is at 12–24 months, and after that local costs less and does not depend on a rate card.
-
Ollama is the simplest route; llama.cpp for control. Weights + KV cache + margin, not just weights.
Sources
- Qwen family on Hugging Face
- Qwen/Qwen3-30B-A3B — model card
- Qwen/Qwen2.5-32B-Instruct — model card
- Ollama — qwen3
- Ollama — qwen4
Article generated with AI
Enjoyed this article?
Subscribe to the newsletter for new tutorials and guides.
Related Articles

KIWI and reverse offload: when the CPU beats the GPU in device-initiated communication
Reverse offload, long treated as the slower fallback, beats GPUDirect Async in latency and bandwidth: sub-microsecond latency and -29% time-per-token in vLLM — the KIWI-EP numbers.

Intel and AMD collaborate on PyTorch/oneDNN: what it means for local AI on CPUs
AMD is merging ZenDNN into oneDNN and Intel is folding in its ACE extensions: one open-source x86 acceleration stack in PyTorch, already the default. What it changes if you run models locally on CPUs.

