Qwen3 4B is a 4B dense model from Alibaba's Qwen team (April 2025, Apache 2.0). Despite its size it has the same two modes as the larger Qwen3 models: careful step-by-step thinking and quick chat.
At Q4_K_M it needs about 4.2 GB with an 8K conversation, which suits 4GB to 6GB cards, laptops and 8GB Macs.
/no_think to a message for a direct answer.ollama run qwen3:4b-q4_K_MIn Ollama, plain qwen3:4b now downloads Qwen3-4B-Thinking-2507 (256K context), and qwen3:4b-instruct gives the non-thinking 2507 version. Both need about the same memory as this model.
Last reviewed · How we calculate
qwen3:4b-q4_K_MThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 30K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 2.4 GB | 3.6 GB | 4.2 GB | 5.5 GB | 7.9 GB | Small loss, best default |
| Q5_K_M | 2.9 GB | 4.1 GB | 4.7 GB | 5.9 GB | 8.3 GB | Very close to Q8 |
| Q6_K | 3.3 GB | 4.5 GB | 5.1 GB | 6.3 GB | 8.7 GB | Hard to tell from Q8 |
| Q8_0 | 4.3 GB | 5.5 GB | 6.1 GB | 7.3 GB | 9.7 GB | Near full quality |
| F16 | 8.0 GB | 9.2 GB | 9.8 GB | 11.1 GB | 13.5 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Runs well | Runs well | about 73 tok/s | 30K | |
| RTX 3060 12GB | Runs well | Runs well | about 96 tok/s | 32K, full | |
| RTX 4070 12GB | Runs well | Runs well | about 134 tok/s | 32K, full | |
| RTX 4060 Ti 16GB | Runs well | Runs well | about 77 tok/s | 32K, full | |
| Radeon RX 7600 XT 16GB | Runs well | Runs well | about 77 tok/s | 32K, full | |
| RTX 5060 Ti 16GB | Runs well | Runs well | about 119 tok/s | 32K, full | |
| Intel Arc A770 16GB | Runs well | Runs well | about 149 tok/s | 32K, full | |
| Radeon RX 9070 XT 16GB | Runs well | Runs well | about 171 tok/s | 32K, full | |
| RTX 4070 Ti Super 16GB | Runs well | Runs well | about 179 tok/s | 32K, full | |
| RTX 4080 Super 16GB | Runs well | Runs well | about 196 tok/s | 32K, full | |
| RTX 5080 16GB | Runs well | Runs well | about 256 tok/s | 32K, full | |
| RTX 3090 24GB | Runs well | Runs well | about 250 tok/s | 32K, full | |
| Radeon RX 7900 XTX 24GB | Runs well | Runs well | about 256 tok/s | 32K, full | |
| RTX 4090 24GB | Runs well | Runs well | about 269 tok/s | 32K, full | |
| RTX 5090 32GB | Runs well | Runs well | about 478 tok/s | 32K, full | |
| Mac mini M4 16GB | Runs well | Runs well | about 32 tok/s | 32K, full | |
| Mac M4 Pro 24GB | Runs well | Runs well | about 73 tok/s | 32K, full | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 73 tok/s | 32K, full | |
| Mac M4 Max 64GB | Runs well | Runs well | about 146 tok/s | 32K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 146 tok/s | 32K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run qwen3:4b-q4_K_M
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkUse ollama run qwen3:4b-q4_K_M (about 2.6 GB, 40K context). The plain qwen3:4b tag now gives Qwen3-4B-Thinking-2507, and qwen3:4b-instruct gives the non-thinking 2507 model.
Yes. At Q4_K_M it needs about 4.2 GB of RAM. Thinking answers are long, so on a CPU use /no_think for anything that does not need step-by-step reasoning.
Add /no_think to your message, or set enable_thinking=False in the chat template. Add /think to switch back.
For small scripts, explanations and fixing short functions, yes. For larger projects, Qwen3 8B or a code-specific model gives noticeably better results.
Yes. Qwen3 4B is released under the Apache 2.0 licence, which allows commercial use, fine-tuning and redistribution as long as the licence notice is kept.
About 4.2 GB at Q4_K_M with an 8K conversation, 4.7 GB at Q5_K_M, 6.1 GB at Q8_0 and 9.8 GB at full F16 precision. Longer conversations add about 1.2 GB for every 8,000 tokens.
Yes. The RTX 4060 8GB runs Qwen3 4B fully on the GPU at Q4_K_M at about 73 tokens a second.
Yes. The RTX 3060 12GB runs Qwen3 4B fully on the GPU at Q4_K_M at about 96 tokens a second.
Yes. The RTX 4060 Ti 16GB runs Qwen3 4B fully on the GPU at Q4_K_M at about 77 tokens a second.
Yes. A Mac with 16 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.