What it is and who makes it
Qwen 3 4B is Alibaba’s small model in the Qwen 3 family, released in April 2025. It’s a dense 4B text model with a party trick the rest of the small-model field lacks: a hybrid thinking/non-thinking mode switch in a single checkpoint. Toggle it on and the model produces a chain-of-thought before answering; toggle it off and you get direct responses at 4B speed. Apache 2.0 licensed, 128K context, multilingual-first. It is, as of late 2026, the default answer to “what small open model should I fine-tune or deploy on-device?” — with the caveat that its siblings at 32B are stronger when hardware allows.
Architecture and what’s under the hood
Qwen 3 4B is a dense decoder-only transformer with grouped-query attention, trained on the same Qwen 3 recipe as its 32B and 235B siblings: ~36 trillion tokens spanning 119 languages, heavy synthetic data, and long chain-of-thought reinforcement learning for the thinking mode. The hybrid design is implemented with a mode flag in the chat template — /think and /no_think soft switches — rather than two separate models. Context is 128K using RoPE scaling; it’s genuinely usable at 32K+, unlike many 3B-class claims. Training details are mostly public in Qwen’s technical report; figures here are approximate as of Nov 2026.
Strengths
- Best-in-class small reasoner. AIME ~33 in thinking mode at 4B parameters — a number that was frontier-only a generation ago.
- Apache 2.0. No acceptable-use appendix, no redistribution quirks. Cleanest possible license at this size.
- Hybrid thinking switch. One checkpoint, two behaviors — cheap direct answers or deep reasoning, chosen per request.
- Multilingual. 119 languages; Chinese/English/code coverage is excellent, European languages solid.
- Runs anywhere. ~2.5GB at 4-bit; comfortable on CPU, phones, and integrated GPUs.
Weaknesses and failure modes
- Small context vs bigger siblings. 128K is good on paper, but retrieval over 64K+ at 4B degrades; the 32B and 235B handle long contexts better.
- Thinking mode is verbose. Chains can balloon token counts 3–5x; budget and latency must account for it.
- Text-only. No vision; pair with a VLM if images enter the pipeline.
- Knowledge breadth limits. 4B parameters can’t hold the world; factual recall outside common domains is shaky — use RAG.
- Qwen license churn. Apache now, but Alibaba has shifted licenses across releases; pin your version.
Best for / avoid for
Best for: on-device and edge assistants, laptop-local reasoning, agent triage loops (fast direct route + thinking route for hard queries), multilingual support bots, RAG answer synthesis, structured extraction, and fine-tuning where Apache 2.0 derivatives matter.
Avoid for: long-horizon autonomous agents without scaffolding, very long document analysis, high-stakes factual Q&A without retrieval, and photo/multimodal tasks.
Variants and family
- Qwen3-4B-Thinking — dedicated thinking-optimized checkpoint; deeper chains, higher AIME-class scores.
- Qwen3-4B-Instruct-2507 — instruction-tuned refresh with improved alignment.
- Qwen 3 0.6B / 1.7B — smaller siblings for tighter hardware.
- Qwen 3 32B — the local-first step up; denser reasoning (MMLU ~84). See the atlas.
Pricing, access and how to run it
Weights on Hugging Face (Qwen/Qwen3-4B); hosted on Alibaba’s DashScope, OpenRouter, and most aggregators at roughly $0.04/$0.10 per 1M tokens as of Nov 2026. Local with Ollama:
ollama run qwen3:4b
LM Studio: search “qwen3 4b” — GGUF builds abundant. vLLM:
vllm serve Qwen/Qwen3-4B \
--max-model-len 32768
In the chat template, append /think or /no_think to the system prompt to force the mode; omitting it defaults to the model’s choice.
Benchmarks snapshot
Approximate, as of Nov 2026:
| Benchmark | Qwen 3 4B (approx.) |
|---|---|
| MMLU | ~72 |
| GPQA | ~40 |
| AIME (thinking mode) | ~33 |
| LiveCodeBench (publicly reported) | ~30–35 |
Alibaba’s release notes put AIME around the low 30s with thinking enabled; independent harnesses broadly agree, with non-thinking mode notably lower on math. Multilingual MMMLU scores track the English figures. Quantization at Q4 barely moves MMLU; it does clip long reasoning chains.
How it stacks up
vs Gemma 3 4B: Gemma 3 4B has vision and Google ecosystem support but carries the Gemma license and no thinking mode; Qwen 3 4B wins on reasoning, license cleanliness, and multilingual depth. Pick Gemma for images; pick Qwen for text reasoning on a laptop.
vs Llama 3.2 3B: Llama 3.2 3B has the bigger deployment ecosystem (mobile NPUs, ExecuTorch) but trails badly on capability (MMLU ~58) and uses the Llama community license. Qwen 3 4B is the better model in nearly every quality dimension. Pick Llama only when Meta-specific tooling is a hard requirement.
How it behaves in practice
The think/no-think switch changes everything about how you use it. In no-think mode it’s a brisk, competent assistant — answer, extract, route, done in milliseconds. Flip to /think and it produces visible chains that solve competition math and multi-step logic, at 3–5x the token cost. Budget for that: timeouts, streaming UIs, and per-request cost all need the mode in mind. The sweet spot is hybrid routing — classify the query first, answer easy ones directly, escalate hard ones to thinking. JSON and structured output are solid when you specify the schema explicitly. Watch for verbosity drift in long conversations and reset context aggressively. On CPU it’s noticeably slower than llama.cpp-served Llama, but on any GPU with 4GB+ VRAM it’s instant. Quantization is safe for direct answers; for thinking chains, stay at 8-bit or above.
PeaBox fit
Qwen 3 4B is the workhorse of our agent triage loops: the no_think path classifies and routes in milliseconds, the think path handles the hard 15% of queries. Apache 2.0 means client fine-tunes ship without legal review, and the 4B footprint means we can run eval suites on a laptop before touching GPUs. We use it as the default local draft model and as the answerer in small multilingual RAG setups.
The honest take: Qwen 3 4B is the small-model sweet spot of 2026 — Apache 2.0, hybrid reasoning, 128K context, ~$0.04/1M tokens, runs on a phone. It won’t replace a 32B for hard work, and the context is tighter than the headline suggests. But for on-device, edge, and laptop-local reasoning, nothing in Apache 2.0 at this size comes close. If you’re only going to evaluate one small open model this quarter, make it this one and benchmark against Gemma 3 4B and Llama 3.2 3B on your own tasks before committing.