How to Run Qwen 3 Locally in 2026: GGUF, llama.cpp, vLLM & the Hardware You Actually Need

    Published September 4, 2026·11 min read

    TL;DR

    Qwen 3 is the most-run open-weight model family of 2026 — Apache 2.0, from a 0.6B model that fits on a laptop to the 235B-A22B Mixture-of-Experts flagship. The trick to running it locally is picking the right variant for your GPU: the 8B needs ~5–6 GB of VRAM, the 32B dense model ~20 GB, and the 30B-A3B MoE is the consumer sweet spot — it fits an RTX 4090 and hits ~25 tokens/sec because only ~3B parameters activate per token. This guide gives the VRAM-by-model table, what Q4_K_M quantization actually buys you, which tool to use (Ollama, llama.cpp, vLLM, or SGLang), the real commands, and when to self-host versus just call the API.

    Summarize with AIChatGPTClaude

    How do you run Qwen 3 locally?

    Pick the variant that fits your GPU, download a GGUF quant, and serve it with Ollama, llama.cpp, or vLLM. That's the whole job — the only real decision is model size. Qwen 3's 8B model runs in ~5–6 GB of VRAM (an RTX 3060 or a 16 GB Apple silicon Mac), the 32B dense model needs ~20 GB (RTX 4090 territory), and the 30B-A3B Mixture-of-Experts model is the local sweet spot — it fits a single 24 GB card and delivers ~25 tokens/sec because only ~3B of its 30B parameters activate per token. The whole Qwen 3 family is Apache 2.0, so nothing leaves your machine and there's no per-token bill. Below: the exact hardware, quant, and tooling choices, with commands.

    Key facts

    • The Qwen 3 family is Apache 2.0-licensed and spans dense models (0.6B, 1.7B, 4B, 8B, 14B, 32B) plus Mixture-of-Experts models (30B-A3B and the 235B-A22B flagship).
    • Qwen3-8B runs in ~5–6 GB of VRAM at a 4-bit quant — an RTX 3060 12 GB or a 16 GB unified-memory Mac handles it.
    • Qwen3-32B (dense) needs ~20 GB of VRAM, which puts it on a single RTX 4090 (24 GB) — but with little room left for context.
    • Qwen3-30B-A3B (MoE) is the efficiency pick: ~19–24 GB VRAM on an RTX 4090, ~25 tokens/sec, because only ~3B parameters activate per token.
    • The 235B-A22B flagship uses 128 experts (8 active per token), 94 layers, and a 32K native context window (up to 131K with YaRN) — it needs multi-GPU or heavy quantization.
    • A Q4_K_M GGUF quant cuts VRAM roughly 60% versus FP16 at minimal quality loss — it's the practical download for single-GPU setups.
    • Ollama is the fastest way to start (one command, OpenAI-compatible API); llama.cpp gives granular control; vLLM and SGLang are for serving a team.

    Which Qwen 3 model should you run locally?

    The family is unusually broad, which is why it's become the default open model — there's a size for every machine. What matters for local use is dense vs. MoE and total vs. active parameters.

    Model Type Params (total / active) Best for
    Qwen3-0.6B / 1.7B / 4B Dense 0.6–4B Laptops, edge, on-device
    Qwen3-8B Dense 8B The everyday local default
    Qwen3-14B Dense 14B Better reasoning, still single-GPU
    Qwen3-32B Dense 32B Max quality on one 24 GB card
    Qwen3-30B-A3B MoE 30B / ~3B active Best speed-for-quality on consumer GPUs
    Qwen3-235B-A22B MoE 235B / ~22B active Frontier-class; multi-GPU or heavy quant

    For most people the answer is Qwen3-8B (fast, fits anything) or Qwen3-30B-A3B (near-32B quality at a fraction of the compute per token). The dense 32B is the highest-quality single-card option but leaves almost no headroom for context. The 235B-A22B is a data-center model — worth knowing about, not something you run on one desktop.

    ℹ️Qwen also ships hosted-scale variants — Qwen3-Coder-480B-A35B for repo-scale agentic coding and a 1T-parameter-class Qwen3-Max — but those are for APIs and GPU clusters, not local machines. This guide is about what you can actually run yourself.

    The hardware reality: VRAM by model and quant

    The single number that decides everything is VRAM. These are practical targets at a 4-bit (Q4_K_M) GGUF quant, the most common local choice:

    Model ~VRAM (Q4_K_M) Runs on
    Qwen3-8B ~5–6 GB RTX 3060 12 GB · Mac 16 GB
    Qwen3-14B ~10–12 GB RTX 4070 · Mac 24 GB
    Qwen3-30B-A3B ~19–24 GB RTX 4090 · Mac 32 GB+
    Qwen3-32B ~20 GB RTX 4090 (tight on context)
    Qwen3-235B-A22B 140 GB+ Multi-GPU / large unified memory

    Two rules of thumb: leave 20–30% of your VRAM free for the KV cache (the model's working memory for context), and on Apple silicon, count on unified memory rather than a discrete GPU — a 32 GB+ Mac runs the 30B-A3B comfortably.

    GGUF and quantization: what Q4_K_M actually buys you

    You almost never download the original BF16 weights for local use — they're twice the size for quality you can't perceive at chat-length prompts. Instead you download a GGUF file: a single-file, quantized format that llama.cpp and Ollama load directly.

    • Q4_K_M is the default: it cuts VRAM roughly 60% versus FP16 with negligible quality loss for most tasks. Start here.
    • Q5_K_M / Q6_K trade a few more GB for a slight quality bump — worth it if you have headroom.
    • Q8_0 is near-lossless but large; use it only if VRAM is plentiful.
    • Q3 and below save memory but degrade noticeably — a fallback, not a default.

    The practical move: pick the largest model that fits at Q4_K_M rather than a smaller model at Q8. A 30B-A3B at Q4 beats an 8B at Q8 on almost everything.

    Which tool: Ollama, llama.cpp, vLLM, or SGLang?

    Tool Use it when Trade-off
    Ollama You want it running in 30 seconds Less control; wraps llama.cpp
    llama.cpp You need granular CUDA/layer offload or an unsupported build More setup
    vLLM You're serving a team or batch workloads Needs full weights + more VRAM
    SGLang High-throughput serving with structured output Heavier to operate

    For 95% of local use, Ollama is the right starting point — it installs fast, pulls models with one command, and exposes an OpenAI-compatible API so your existing code works unchanged. Move to vLLM or SGLang only when you're past one user and need real throughput.

    Dexity Intel · free newsletter

    Liking this? Get the next one in your inbox.

    JD-backed career reads, AI market signals, and field-tested tool guides — a few times a month. No fluff, no spam.

    How to run it, step by step

    Option A — Ollama (easiest):

    # install Ollama, then:
    ollama run qwen3:8b
    # or the MoE sweet spot:
    ollama run qwen3:30b-a3b
    

    That's it — you get a chat prompt and an OpenAI-compatible endpoint at http://localhost:11434/v1.

    Option B — llama.cpp (control): download a Qwen3 GGUF (e.g. a Q4_K_M build), then:

    llama-server -m qwen3-30b-a3b-Q4_K_M.gguf -c 8192 -ngl 99
    

    -ngl 99 offloads all layers to GPU; -c 8192 sets context length — lower it if you hit out-of-memory.

    Option C — vLLM (serving a team):

    vllm serve Qwen/Qwen3-8B --max-model-len 32768
    

    vLLM loads the full (unquantized) weights by default, so size your GPU accordingly, and gives you high-throughput batched inference behind an OpenAI-compatible API.

    Performance: what to expect

    Speed depends on model, quant, and hardware, but rough single-user expectations on a modern consumer GPU (RTX 4090):

    Setup Throughput (rough)
    Qwen3-8B (Q4_K_M) 60–100+ tokens/sec
    Qwen3-30B-A3B (Q4_K_M) ~25 tokens/sec
    Qwen3-32B (Q4_K_M) 15–25 tokens/sec

    The MoE model's trick is visible here: 30B-A3B runs far faster than the dense 32B despite similar quality, because only ~3B parameters fire per token. On Apple silicon, expect lower throughput than a 4090 but enough for interactive use on the 8B–30B range.

    What can go wrong when self-hosting Qwen 3

    • KV-cache out-of-memory. The 32B's ~20 GB GGUF leaves only 3–4 GB on a 24 GB card, so a long prompt overflows and crashes. Fix: use the 30B-A3B MoE instead, drop the quant, or shorten context.
    • Confusing total vs. active params. A 30B MoE uses ~3B per token for speed, but you still need VRAM for the whole 30B. It's fast, not small.
    • Downloading BF16 by habit. Grab the GGUF quant, not the originals, unless you're serving with vLLM.
    • Context creep. Native context is 32K on the big MoE; pushing to 131K needs YaRN scaling and much more memory. Don't set a huge -c you can't feed.

    When to self-host vs. use the API

    Self-host when data can't leave your environment (regulated industries, private code, PII), when you want zero per-token cost at high volume, or when you need full control over the model and its uptime. Use the hosted API when you want the 235B-class or Qwen3-Max quality without owning GPUs, when volume is low enough that per-token pricing is cheaper than hardware, or when you don't want to operate infrastructure. Most teams end up doing both: a local 8B or 30B-A3B for the bulk of requests, and an API for the occasional frontier-grade query.

    Frequently asked questions

    What are the hardware requirements to run Qwen 3 locally?

    At a 4-bit (Q4_K_M) quant: Qwen3-8B needs ~5–6 GB of VRAM, the 30B-A3B MoE needs ~19–24 GB (a single RTX 4090 or a 32 GB+ Mac), and the dense 32B needs ~20 GB. The 235B-A22B flagship needs multi-GPU or a large unified-memory machine.

    Which Qwen 3 model is best for local use?

    Qwen3-8B for speed on any machine, or Qwen3-30B-A3B for the best quality-per-compute on a single consumer GPU — it approaches 32B quality while running much faster because only ~3B parameters activate per token.

    Is Qwen 3 free to run locally?

    Yes. The Qwen 3 dense and MoE open-weight models are Apache 2.0-licensed, so you can run, modify, and deploy them locally at no per-token cost — you only pay for your own hardware and electricity.

    What's the difference between the dense and MoE Qwen 3 models?

    Dense models (e.g. 32B) use every parameter on every token. MoE models (30B-A3B, 235B-A22B) route each token through a small subset of "expert" parameters, so they run much faster for their size — but you still need VRAM for the full parameter count.

    Ollama or vLLM for Qwen 3?

    Ollama for a single user who wants it working in seconds. vLLM (or SGLang) when you're serving a team or batch workloads and need high-throughput, batched inference.

    Build the infra skills to run models like this

    Self-hosting an open model well is real infrastructure engineering — quantization, GPU memory and KV-cache management, multi-GPU serving, and reliability. Dexity's AI Platform Engineering course builds exactly that muscle, hands-on, so standing up a local Qwen 3 deployment is a project you run, not just read about.

    Model specs, VRAM figures, and tooling verified against the official Qwen 3 blog and Spheron's Qwen3 local-GPU guide (verified September 2026). Open-model versions, quant sizes, and tooling move quickly — confirm current builds before committing hardware. · Dexity.com

    Go from reading to doing · Dexity Course

    AI Platform Engineering

    Built for engineers who already own Kubernetes: six weeks across GPU Operator, vLLM, KServe, Triton, KubeFlow, and MLflow — the full AI infrastructure stack taught from the infra side. No ML prerequisites, no 15-course sprawl — just what your job description actually requires.

    6 Weeks
    Live instruction
    3 Projects
    Real deliverables
    30 Seats
    Per cohort, capped
    Marcus Chen
    Marcus Chen
    Principal Platform Engineer · Databricks
    Explore the course
    Anmol Gulwani

    Anmol Gulwani

    Dexity

    Connect on LinkedIn
    Questions or suggestions?hello@dexity.com