compactApache 2.04B paramsOpen weights

Qwen3 4B

4B parameter open-weight model. This entry is Qwen3-4B-Thinking-2507, the checkpoint Ollama's qwen3:4b tag serves; its Q8_0 and FP16 tags are the thinking-2507 variants of the same weights. The memory figures are the file sizes of those three tags in Ollama's registry (checked 2026-10-27), not measurements. Only the Q4 tag has been run on our hardware; the qwen3:4b-fp16 runs on our hardware pages measured the original Qwen3-4B, not this checkpoint. It supports only thinking mode: every reply starts with a reasoning block, and Qwen recommends it for highly complex reasoning tasks. In Ollama 0.40.10, think: false does not turn that off; the reasoning arrives in the reply text instead of the separate thinking field. Qwen recommends a 32,768-token output budget for most tasks, so expect long replies even to short questions, and a context window above 131,072 tokens where memory allows; the KV cache for that much context is about 19 GB at FP16, so on a small GPU a long reasoning pass can run out of room. Q4 fits in 4 GB VRAM at a short context. The original Qwen3-4B, which can switch thinking off, is a different checkpoint (Ollama tag qwen3:4b-q4_K_M) and is not what this entry describes.

Alibaba Cloud · Qwen3

Model overview

Qwen3 4B here means Qwen3-4B-Thinking-2507, the version Ollama's qwen3:4b tag installs. It is a compact 4B model from Alibaba's Qwen team that always reasons step by step before it answers. Qwen's own benchmarks show clear gains over the original Qwen3-4B in thinking mode on reasoning, math, science and coding, and Qwen recommends it for highly complex reasoning tasks. The trade-off is speed: even a simple question produces a long reasoning pass before the answer, so replies take longer than from a model without one. Its native context window is 262,144 tokens, though on a small GPU the memory a long context needs, not the weights, sets the practical limit. It is released under the Apache 2.0 license. At Q4 it fits entry-level consumer GPUs, so it suits a laptop GPU or an older desktop card when you want worked-through answers more than quick chat replies.

Catalog entry · Added to the catalog June 25, 2026 · Hugging Face repo created August 5, 2025

Tested on our hardware: worked

The specs and hardware fit on this page come from the model card and the Ollama registry. We have not reviewed this page in depth yet.

  • Worked on the Intel Core i7-14700K (CPU only), October 20, 2026. Ran on the CPU alone, with the GPU hidden from the runtime. About this test machine
  • Worked on the RTX 3080 10 GB, October 20, 2026. Ran fully in VRAM at Q4_K_M and FP16 in the standard benchmark, and at Q4_K_M in the context sweep. About this test machine
  • Worked on the RTX 4070 Ti 12 GB, October 20, 2026. Ran fully in VRAM at Q4_K_M and FP16 in the standard benchmark, and at Q4_K_M in the context sweep. About this test machine
  • Worked on the MacBook Air M1, August 5, 2026. Loaded and ran within the laptop's unified memory. We do not publish speed figures from this machine.

How we label test status

Editorial details

EditorCJ ZwartLast updatedOctober 2026SourcesHuggingFace model card (Qwen/Qwen3-4B-Thinking-2507) and official docs.

VRAM figures are empirical estimates. Actual usage varies by runtime, context length, and system configuration. Verify on your specific hardware before production use.

Will Qwen3 4B run on your machine?

Qwen3 4B is 4B parameters and needs 4 GB of VRAM at Q4_K_M: 2.5 GB of weights plus 1.5 GB of runtime overhead for the inference server itself.

VRAM by quantization

QuantizationWeightsNeeds (with overhead)Quality
Q4_K_M2.5 GB4 GBgood
Q8_04.3 GB5.8 GBhigh
FP168.1 GB9.6 GBreference

Fit on common hardware at Q4_K_M

HardwareMemory the model can useSystem RAMVerdict
CPU OnlyNone (CPU only)16 GBCPU offload
RTX 4060 Laptop8 GB16 GBComfortable
RTX 3060 (12GB)12 GB32 GBComfortable
RTX 4060 Ti (16GB)16 GB32 GBComfortable

Comfortable means VRAM clears the requirement by 2 GB or more. Tight means it covers the requirement with no margin. CPU offload means the model does not fit in VRAM but system RAM is at least 1.6× the weights, so it will run at reduced speed: expect roughly 1–5 tokens per second. Figures are weights plus a fixed runtime overhead and exclude KV-cache growth, which scales with context length.

Want a broader hardware plan around Qwen3 4B? Open the PC Builder for the whole 7B / 8B class → The Builder plans across that class; it does not replace the exact-model fit verdict above.