Which Qwen Sub-Family Should You Run?
The Qwen line-up now spans five practical picks: the Qwen 3.6 27B flagship, Qwen3 (previous generation, still widely deployed), Qwen2.5 general reasoning, Qwen2.5-Coder, and Qwen2.5-VL for vision — each with multiple size options. All are open-weight models published by Alibaba's Qwen team on Hugging Face. Qwen 3.6 ships as a 27B dense model and a 35B-A3B mixture-of-experts model (`qwen3.6:35b`); for small hardware, the newer Qwen3.5 generation (`qwen3.5:4b`, `qwen3.5:9b`) follows Qwen3, and Qwen3-VL (`qwen3-vl:8b`) is the newer vision generation. Check each model card for its licence.
Choose the sub-family first, then the size that fits your VRAM. Mixing sub-families is common: run Qwen2.5-Coder 14B for code completion and Qwen3 8B or Qwen 3.6 27B for document summarisation.
Sub-family | Sizes available | Primary use | Ollama tag prefix |
|---|---|---|---|
| Qwen 3.6 (flagship) | 27B dense, 35B-A3B MoE | General reasoning and coding (`qwen3.6:27b-coding`), 256K context | qwen3.6: |
| Qwen3 (previous generation) | 0.6B, 1.7B, 4B, 8B, 14B, 32B | General reasoning, thinking-mode, multilingual, agentic tasks | qwen3: |
| Qwen2.5 | 7B, 14B, 32B, 72B | General reasoning, Chinese/multilingual tasks, RAG | qwen2.5: |
| Qwen2.5-Coder | 7B, 14B, 32B | Code generation, debugging, HumanEval, SWE-bench | qwen2.5-coder: |
| Qwen2.5-VL | 3B, 7B, 32B, 72B | Document OCR, image Q&A, CJK text extraction | qwen2.5vl: |
Qwen 3.6 27B (released April 2026) is the new flagship pick — a dense model with a 256K context window that runs in ~17 GB of VRAM at Q4_K_M via `ollama run qwen3.6:27b`. Qwen2.5 remains the widest-tested family with the broadest Ollama and GGUF coverage as of mid-2026. See best local LLMs 2026 for a broader model comparison.
How Much VRAM Does Each Qwen3 Model Require?
Pick your VRAM tier first, then select the largest Qwen3 model that fits. Q4_K_M is the standard quantisation used in all figures below — it gives the best size-to-quality ratio for Ollama and LM Studio.
Model | VRAM | Minimum GPU | Apple Silicon | Speed (GPU) |
|---|---|---|---|---|
| Qwen3 8B Q4_K_M | 5.5 GB | RTX 3060 12 GB, RTX 4060 | M1/M2 16 GB | ~57 tok/s (RTX 3060 12 GB) |
| Qwen2.5-Coder 7B Q4_K_M | 5.5 GB | RTX 3060 12 GB, RTX 4060 | M1/M2 16 GB | ~55 tok/s (RTX 3060 12 GB) |
| Qwen2.5-VL 7B (Ollama) | 6.0 GB | RTX 3060 8 GB, RTX 4060 | M1/M2 16 GB | — |
| Qwen3 14B Q4_K_M | 9.5 GB | RTX 4070 12 GB | M2 Pro 32 GB | ~38 tok/s (RTX 4070) |
| Qwen2.5-Coder 14B Q4_K_M | 9.5 GB | RTX 4070 12 GB | M2 Pro 32 GB | ~36 tok/s (RTX 4070) |
| Qwen3 32B Q4_K_M (previous generation) | 20.5 GB | RTX 3090 24 GB | M3 Max 48 GB | ~28 tok/s (RTX 4090) |
| Qwen2.5-Coder 32B Q4_K_M | 20.5 GB | RTX 3090 24 GB | M3 Max 48 GB | ~27 tok/s (RTX 4090) |
| Qwen 3.6 27B Q4_K_M | ~17 GB | RTX 4090 24 GB | M3 Max 36 GB | ~24 tok/s (RTX 4090) |
| Qwen2.5-72B Q4_K_M | 46 GB | 2× RTX 3090 (48 GB) | M2 Ultra 64 GB | — |
VRAM figures are approximate for Q4_K_M. The Ollama library lists download sizes of 5.2 GB (qwen3:8b), 9.3 GB (qwen3:14b), 20 GB (qwen3:32b, qwen2.5:32b), 47 GB (qwen2.5:72b) and 17 GB (qwen3.6:27b-q4_K_M; the default 27b tag is 18–19 GB), checked 2026-10-23. Add 1–2 GB for the KV cache at 4K context. If your GPU has less VRAM than the model needs, Ollama automatically offloads layers to system RAM — this works but reduces speed significantly. Speeds in this table are indicative community-range values, not PromptQuorum measurements; they vary with GPU, driver, context length and Ollama version. For 2× RTX 3090 (48 GB), check the card maker's recommended PSU wattage and connectors, and leave KV-cache headroom (about 46 GB of weights on 48 GB leaves very little).

💡Tip: Found your VRAM tier? See exactly which GPU or Mac to buy for that tier — 6 GB → RTX 4060, 12 GB → RTX 4070 Super, 24 GB → RTX 3090/4090, 48 GB+ → Mac mini M5 Pro or dual GPU.
How Do You Run Qwen3 with Ollama?
Ollama is the fastest path to running any Qwen3 model locally — it handles model download, GGUF quantisation, and the local API at `localhost:11434` without any configuration. Install from ollama.com. If you have not used Ollama before, read how to install Ollama first.
- 1Install Ollama
Why it matters: Available for macOS, Linux (one-line install), and Windows. No GPU drivers to configure — Ollama detects CUDA, ROCm, and Metal automatically. - 2Pull the model with an explicit size tag
Why it matters: Always specify the size: `qwen2.5:7b`, `qwen2.5:14b`, `qwen2.5:32b`, or `qwen3.6:27b` for the flagship. The untagged `qwen2.5` resolves to the 7B model but may change between Ollama releases. - 3Run the model
Why it matters: `ollama run qwen2.5:7b` opens an interactive chat. Type your prompt and press Enter. Close with `/bye`. - 4Set context window if needed
Why it matters: The Ollama library lists a 40K context window for Qwen3, 32K for Qwen2.5 and 256K for Qwen 3.6. To use 128K context on a 7B model, start `ollama run qwen2.5:7b`, then type `/set parameter num_ctx 131072` in the session. This requires more VRAM — add 2–4 GB for long contexts. - 5Test the API endpoint
Why it matters: Ollama exposes an OpenAI-compatible API. Applications like PromptQuorum, Continue.dev, and Open WebUI connect directly to `http://localhost:11434/v1`.
# Install Ollama (Linux)
curl -fsSL https://ollama.com/install.sh | sh
# macOS: download the .dmg from ollama.com or:
brew install ollama
# Pull models — use explicit tags
ollama pull qwen3.6:27b # flagship, 256K context (~17 GB)
ollama pull qwen3:8b # Qwen3 general 8B (~5.5 GB)
ollama pull qwen2.5:7b # Qwen2.5 general 7B (~5.5 GB)
ollama pull qwen2.5:14b # Qwen2.5 general 14B (~9.5 GB)
ollama pull qwen2.5:32b # Qwen2.5 general 32B (~20.5 GB)
ollama pull qwen2.5-coder:32b # Qwen2.5-Coder 32B (~20.5 GB)
ollama pull qwen2.5vl:7b # vision 7B (~6.0 GB)
# Run interactively
ollama run qwen2.5:7b
# Test the OpenAI-compatible API
curl http://localhost:11434/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"qwen2.5:7b","messages":[{"role":"user","content":"Hello"}]}'How Do You Run Qwen3 with LM Studio?
LM Studio provides a GUI interface for Qwen3 with no terminal commands. Download from lmstudio.ai, or see how to install LM Studio. It runs on macOS, Windows, and Linux.
- 1Open the model browser
Why it matters: Search "Qwen3" or "Qwen Coder" to browse all available GGUF builds. Filter by Q4_K_M for the recommended quality/size ratio. - 2Download a GGUF build
Why it matters: Select the Q4_K_M variant. LM Studio shows file size before download — confirm it matches the VRAM you have available. - 3Load the model and start chatting
Why it matters: Click the model in the left sidebar to load it into memory. GPU layer allocation is automatic based on detected VRAM. - 4Start the local server
Why it matters: "Start Server" exposes an OpenAI-compatible endpoint at `localhost:1234`. Your apps and scripts connect to it as if it were the OpenAI API.
Quantization: Which Format to Choose
Q4_K_M is the right default for Qwen3 on consumer hardware. It reduces VRAM by ~55–60% versus FP16 with small benchmark degradation on MMLU and HumanEval. Other formats have specific use cases:
📍 In One Sentence
Q4_K_M is the recommended default for Qwen3: 55% less VRAM than FP16, small quality loss.
💬 In Plain Terms
Quantization is a compression technique — like reducing image quality to save file size. Q4_K_M keeps most of Qwen3's accuracy while cutting memory use roughly in half.
- Q4_K_M (recommended): ~5.5 GB for 7B. Best quality-per-GB ratio. Use this first.
- Q8_0: ~8.5 GB for 7B. Near-FP16 quality; use if you have spare VRAM and want maximum accuracy.
- Q5_K_M: ~6.5 GB for 7B. Marginal improvement over Q4_K_M — only choose it if Q4_K_M output quality is visibly poor for your task.
- Q2_K: ~3 GB for 7B. Smallest file, but Chinese-language output quality degrades noticeably — avoid for Qwen3 if Chinese text is part of your use case.
- IQ4_XS: ~4.8 GB for 7B. A newer imatrix quantisation that beats Q4_K_M quality at slightly smaller size — available in recent llama.cpp releases and LM Studio 0.3+.
How Does Qwen3 Perform on Consumer Hardware?
Qwen3 32B Q4_K_M on an RTX 4090 delivers 28 tokens/sec — fast enough for real-time coding assistance. Qwen3 32B is the previous Qwen generation; the newer Qwen 3.6 27B fits the same 24 GB tier (see the hardware table above). The figures below are indicative values, not PromptQuorum measurements: speeds vary with GPU, driver, context length and Ollama version, accuracy scores have not been re-run by us, the Coder HumanEval scores are the published full-precision Instruct results (Qwen2.5-Coder technical report, arXiv:2409.12186, Table 16) while accuracy scores for the other models are shown as "—" because we have not verified them against model cards. Scores as published by Qwen at full precision, not Q4_K_M measurements; Q4_K_M builds typically score slightly below full precision. Check each model card and test on your own hardware.
Model | MMLU | Math | HumanEval | Speed (GPU) |
|---|---|---|---|---|
| Qwen3 8B | — | — | — | 57 tok/s (RTX 3060 12 GB) |
| Qwen3 14B | — | — | — | 38 tok/s (RTX 4070 12 GB) |
| Qwen3 32B | — | — | — | 28 tok/s (RTX 4090 24 GB) |
| Qwen2.5-72B | — | — | — | — |
| Qwen2.5-Coder 7B | — | — | 88.4% | 55 tok/s (RTX 3060 12 GB) |
| Qwen2.5-Coder 14B | — | — | 89.6% | 36 tok/s (RTX 4070 12 GB) |
| Qwen2.5-Coder 32B | — | — | 92.7% | 27 tok/s (RTX 4090 24 GB) |
💡Tip: Want to run Qwen2.5-Coder 32B locally? See the 24 GB GPU tier (speeds are indicative; the 92.7% HumanEval figure is Qwen's published full-precision score).
Qwen vs DeepSeek vs Llama: Which to Run Locally
In our assessment Qwen is the more VRAM-efficient family on consumer hardware; DeepSeek's current V4 line is large-scale (V4.1-Flash-1017: 552B total parameters) and impractical on a single consumer GPU; Llama 3.3 70B is an alternative if you prefer Meta's open model and accept offloading part of the layers to system RAM on a single GPU. The table below compares the practical options at each VRAM tier.
VRAM Tier | Best Qwen (our pick) | Best Competitor (our pick) | Verdict |
|---|---|---|---|
| 6 GB | Qwen3 8B | Llama 3.2 3B (fits, but 3B) | In our view, Qwen3 8B wins — same VRAM, much larger model |
| 12 GB | Qwen2.5-Coder 14B | Llama 3.1 8B Instruct | Qwen2.5-Coder 14B for coding; Llama 3.1 8B for general chat |
| 24 GB | Qwen2.5-Coder 32B | Llama 3.3 70B (offloaded) | Qwen2.5-Coder 32B for code; Llama 3.3 70B if quality > speed |
| 48 GB+ | Qwen2.5-72B | DeepSeek V4.1-Flash-1017 552B MoE | Weights alone are far beyond 48 GB (size depends on quantization); Qwen2.5-72B fits 48 GB |
Chinese Users: Data Sovereignty and Local Deployment
Running Qwen3 locally keeps inference prompts on your own hardware, so no inference data is sent to a cloud API — which avoids that cross-border transfer for the inference layer. Cloud-based LLM APIs require sending prompts to servers abroad, which can raise cross-border data transfer questions under China's Data Security Law (DSL) and related rules. Whether your overall setup complies depends on your data, your purposes and your own legal assessment; this is not legal advice.
Qwen3 is trained by Alibaba's Qwen team on a predominantly Chinese and multilingual corpus. This makes it a strong candidate for Simplified Chinese, Traditional Chinese, Classical Chinese, and mixed-language (Chinese/English) documents; test it on your own material.
For enterprise deployments in China: Qwen3 setups with no internet connection at inference time are generally easier to align with CAC regulations on generative AI, but compliance depends on your use case and should be confirmed with legal counsel. The model runs entirely on local compute, and the regulator's focus, as we read it, is training data and output moderation rather than inference on offline hardware. See running AI fully offline for a complete offline setup guide.
📍 In One Sentence
Qwen3 can run without an internet connection after download, so inference data need not leave your machine, which can reduce cross-border transfer of inference data (compliance under China's Data Security Law still depends on your use case).
💬 In Plain Terms
When you run Qwen3 locally, your prompts and documents stay on your computer unless you connect it to a cloud service. Inference needs no cloud API call; how the rest of your setup handles data is your responsibility.
Which Hardware Should You Buy for Qwen3 Deployment?
Match your target Qwen tier to VRAM first, then buy the cheapest card that clears it — paying for more VRAM than your model needs is the most common overspend on this list. The picks below map directly to the hardware table above: budget → RTX 4060, mid-range → RTX 4070 Super, high-end → RTX 3090/4090, Apple Silicon → Mac mini M5 Pro, always-on → a mini PC. Prices below reflect the 2026 GPU market — memory-chip shortages and AI-datacenter demand have pushed both new GPU and Apple memory pricing well above 2024 launch prices, so check the current listing before buying.
💡Tip: Skip this section if you already own a GPU with 8 GB+ VRAM — run Qwen3 8B on what you have first. Only buy new hardware once you have hit that ceiling and want a bigger model.
NVIDIA RTX 4060 8 GB
Budget pick — Qwen3 8B, Qwen2.5-Coder 7B (5.5 GB VRAM)
The cheapest card on this list that clears the 5.5 GB Qwen3 8B requirement with headroom for context. Runs Qwen2.5-Coder 7B at interactive speeds on 8 GB (speeds vary by setup; see the indicative RTX 3060 12 GB figures above).
Pros
- +5.5 GB VRAM requirement fits with room to spare for long-context KV cache
- +Lowest price on this list — the right first GPU if you have never run a local LLM
- +Interactive speeds on 7B/8B models (indicative; varies by setup)
Cons
- –Caps out at Qwen3 8B / Qwen2.5-Coder 7B — no headroom to grow into 14B without a KV-cache squeeze
NVIDIA RTX 4070 Super 12 GB
Mid-range pick — Qwen3 14B, Qwen2.5-Coder 14B (9.5 GB VRAM)
Runs Qwen2.5-Coder 14B (89.6% HumanEval) at 36–38 tok/s with 2–3 GB of VRAM left over for context — a good fit for the 12 GB tier.
Pros
- +9.5 GB model fits with 2–3 GB VRAM to spare — room for longer context windows
- +HumanEval 89.6% (14B) vs 88.4% (7B), published full-precision Instruct scores — a small gain on this benchmark, so pick the 14B for headroom on harder tasks, not for a big score jump
- +~38 tok/s keeps interactive chat and code completion responsive
Cons
- –Not enough VRAM for the 32B tier — plan to sell or repurpose it if you outgrow 14B
NVIDIA RTX 4090 24 GB (or used RTX 3090 24 GB)
High-end pick — Qwen2.5-Coder 32B, Qwen 3.6 27B (~20.5 / ~17 GB VRAM)
The 4090 reaches roughly 27 tok/s on Qwen2.5-Coder 32B (indicative) — fast enough for interactive coding. A used RTX 3090 has the same 24 GB VRAM and lands about 15% below the 4090 in the llama.cpp 7B Q4_0 generation test (158.2 vs 186.2 tok/s, developer-reported, llama.cpp CUDA scoreboard) for meaningfully less money if you can find a trusted used listing.
Pros
- +24 GB VRAM covers every Qwen3 32B variant and Qwen 3.6 27B with room to spare
- +~27 tok/s on Qwen2.5-Coder 32B — fast enough for real-time pair programming
- +Used RTX 3090 is the value alternative: same VRAM ceiling, about 15% slower in the llama.cpp 7B Q4_0 test, meaningfully cheaper second-hand
Cons
- –One of the highest upfront costs on this list — only justified once you actually need 32B-class quality
Apple Mac mini M5 Pro 64 GB
Apple Silicon pick — Qwen 3.6 27B or Qwen3 32B, quiet and low-power
A quiet, low-power option for running Qwen3 32B on unified memory — no separate GPU to install. For Qwen2.5-72B a 64 GB M2 Ultra is the tight minimum and 128 GB or more leaves room for context.
Pros
- +M5 Pro configurations scale up to 64 GB unified memory — well above the 20.5 GB Qwen3 32B requirement, with room to spare for other apps
- +Silent operation and desktop-friendly power draw — no dedicated GPU cooling to manage
- +One purchase covers OS, storage, and inference — no separate GPU/PSU/case build
Cons
- –No independent Qwen3 32B benchmarks for the M5 Pro chip are published yet — expect noticeably slower inference than a dedicated GPU like the RTX 4090, consistent with prior Apple Silicon Mac mini generations
MINISFORUM UM890 Pro (or similar AMD Ryzen AI mini PC)
Always-on pick — Qwen3 8B on CPU + iGPU (~8–12 tok/s, under 35W)
Not for interactive use — this is for a Qwen3 8B instance you leave running 24/7 for background tasks, home automation, or a low-traffic API endpoint where power cost matters more than speed.
Pros
- +Under 35W power draw — cheap to run continuously, unlike a desktop GPU rig
- +Small form factor fits anywhere; no separate GPU to source or cool
- +Handles Qwen3 8B without a discrete GPU at all
Cons
- –8–12 tok/s is too slow for interactive chat — this is a background/API-only pick
What Are the Common Mistakes Running Qwen3 Locally?
- Using an untagged `ollama pull qwen2.5` command. Without an explicit size tag (`:7b`, `:14b`, etc.), Ollama may resolve to a default size that changes between library updates. Always use explicit tags: `ollama pull qwen2.5:14b`.
- Ignoring the context window size. Per its model card, Qwen3 natively supports 32K tokens and about 131K with YaRN. Ollama's Modelfile spec defaults `num_ctx` to 2048, but the runtime actually picks a VRAM-tiered default instead — 4K under 24 GiB, 32K from 24–48 GiB, 256K above 48 GiB. Don't rely on either default: set `num_ctx` explicitly, e.g. type `/set parameter num_ctx 8192` (or higher) in the `ollama run` session — otherwise the model silently truncates input.
- Choosing Q2_K quantization for Chinese-language use. At 2-bit precision, Qwen3's Chinese output becomes noticeably degraded — character substitutions increase. Use Q4_K_M as the minimum for any Chinese-language work.
- Running the 32B model with too little VRAM. If your GPU has 16 GB and the model needs 20.5 GB, Ollama offloads layers to system RAM. The model runs but at 3–5 tok/s — unusable for interactive use. Check the hardware table above and pick a model that fits your VRAM.
- Using the wrong sub-family for coding. Qwen2.5-Coder 7B is trained for code and scores 88.4% on HumanEval (published full-precision Instruct score), while general-purpose models are not tuned for it. If your use case is code, always use the Coder variant of the same size.
Next steps
- Best CPU-Only LLMs — No GPU? See which Qwen3 sizes run on CPU only →
- LLM Quantization Explained — Confused by Q4_K_M vs Q8? Quantization explained →
Frequently Asked Questions
How much VRAM do I need to run Qwen3 8B locally?
Qwen3 8B Q4_K_M requires 5.5 GB of VRAM. An RTX 3060 12 GB, RTX 4060, or Apple M-series chip with 16 GB of unified memory all run it. At 8 GB VRAM you have headroom for context and system RAM.
What is the best Qwen model for coding locally?
Qwen2.5-Coder 32B is the largest dedicated Qwen2.5 coding model that fits a 24 GB GPU (RTX 3090 or RTX 4090); Qwen reports 92.7% on HumanEval for the full-precision Instruct version. Qwen 3.6 27B also ships a coding variant (`qwen3.6:27b-coding`). If your VRAM is 12 GB or less, use Qwen2.5-Coder 14B (HumanEval 89.6%, 9.5 GB VRAM).
How does Qwen compare to DeepSeek for local deployment?
Qwen uses a dense architecture that fits on consumer hardware. DeepSeek's current open-weight line is V4 (V4.1-Flash-1017: 552B total parameters, mixture-of-experts), which is far beyond a single consumer GPU; the older DeepSeek-V2.5 (236B MoE, 2024) has been superseded by V3 and then V4. For limited VRAM, in our view a Qwen model is the practical choice.
Can I run Qwen on a Mac?
Yes. Apple Silicon uses unified memory — an M2 Pro 32 GB runs Qwen3 14B at ~32 tok/s. An M3 Max 64 GB handles Qwen3 32B at ~22 tok/s. Use the Ollama macOS app or LM Studio for the simplest setup.
What Ollama command do I use for Qwen?
For the flagship, run `ollama run qwen3.6:27b` (~17 GB VRAM). For Qwen3, use `ollama pull qwen3:8b`. For Qwen2.5, use `ollama pull qwen2.5:7b` for 7B, `ollama pull qwen2.5:14b` for 14B, `ollama pull qwen2.5:32b` for 32B, or `ollama pull qwen2.5-coder:32b` for the coding variant. Always use explicit size tags.
Is Qwen good for Chinese-language tasks?
Qwen3 was pretrained on a large Chinese corpus and natively supports Simplified Chinese, Traditional Chinese, Japanese, Korean, Arabic, and many more languages (see the model card). It is a strong candidate for Chinese-language local AI; test it on your own documents.
What quantization should I use for Qwen3?
Q4_K_M is the recommended default — it cuts VRAM by ~55% versus FP16 with small quality loss on benchmarks. Use Q8_0 if you have spare VRAM and want near-FP16 quality. Avoid Q2_K for Chinese-language use.
Does Qwen2.5-VL work for Chinese document OCR?
Yes — Qwen2.5-VL 7B runs through Ollama (`ollama pull qwen2.5vl:7b`, a 6.0 GB download), accepts text and image input, and can read Chinese, Japanese, and Korean text in scanned documents; test it on your own scans. The newer Qwen3-VL is `qwen3-vl:8b`. See the full guide at /local-llms/run-qwen-vl-locally-2026.
Sources
- Ollama library: qwen3.6 tags -- 27b-q4_K_M 17 GB, default 27b tag 18–19 GB, 256K context, 27b-coding tag; checked 2026-10-23
- Ollama library: qwen3 tags -- 8b 5.2 GB, 14b 9.3 GB, 32b 20 GB, 40K context; checked 2026-10-23
- Ollama library: qwen2.5 tags -- 7b 4.7 GB, 14b 9.0 GB, 32b 20 GB, 72b 47 GB, 32K context; checked 2026-10-23
- Ollama library: qwen2.5-coder tags -- 7b 4.7 GB, 14b 9.0 GB, 32b 20 GB, 32K context; checked 2026-10-23
- Qwen3-8B model card -- 32,768 native context, 131,072 with YaRN, 100+ languages
- Qwen2.5-Coder-32B-Instruct model card -- 131,072 context with YaRN
- Qwen2.5-Coder Technical Report (arXiv:2409.12186) -- Table 16: HumanEval 88.4 (7B), 89.6 (14B), 92.7 (32B), Instruct models at full precision
- llama.cpp CUDA scoreboard -- 7B Q4_0 generation results (RTX 3090 vs RTX 4090), developer-reported
- InsiderLLM: NVIDIA GPU prices rising -- RTX 4090 and RTX 3090 price ranges; checked 2026-10-15
