Qwen3-4B
- Reasoning
- Reasoning can be off
- Tool use
- Structured output
- Open weights
Prices
1 offering · prices as listed| Conditions/ 1M tokens | Input | Output |
|---|---|---|
| Standard no longer listed since Oct 1, 2026 past price, from the vendor’s page archived Jan 16, 2026 | $0.11 | $0.42 |
Prices from Alibaba Cloud Model Studio pricing (opens in a new tab) (checked Sep 30, 2026)
Standard: the price a request with no conditions pays (the headline price elsewhere on the site).
Details
- Licence
- apache-2.0
- Family
- qwen
- Model ID
Not stated on Alibaba Qwen’s pages: max input, input modalities, output modalities, reasoning efforts, max thinking budget, built-in tools, knowledge cutoff, aliases.
Run locally
Weights: Qwen/Qwen3-4B- Parameters 4B
- Dense
- Native precision BF16
- Layers 36
- KV cache per token 144 KB
- Native context 32K (model card)
- With YaRN 128K (model card)
- Config positions 40K (config.json max_position_embeddings)
- API context 250K (maker’s API)
- Needs
- ≈ 9.1 GB (weights 7.5 (maker’s file) + KV cache 1.1 + overhead 0.5)
- Usable
- 21.6 GB (90% of its memory)
- Generation speed
- 54–82 tok/s
- Longest context
- 128K (the model’s limit)
- First token
- about 0.13–0.19 s for a 2K prompt
| Precision | Weights | Needs at 8K | On your hardware | Longest context |
|---|---|---|---|---|
| BF16 (native)maker’s file | 7.5 GB | ≈ 9.1 | ●Runs well 54–82 tok/s | 128K |
| Q8_0maker’s file | 4.0 GB | ≈ 5.6 | ●Runs well 92–138 tok/s | 128K |
| FP8maker’s file | 4.8 GB | ≈ 6.5 | ●Runs well 79–118 tok/s | 128K |
| Q6_Kmaker’s file | 3.1 GB | ≈ 4.7 | ●Runs well 112–167 tok/s | 128K |
| Q5_K_Mmaker’s file | 2.7 GB | ≈ 4.3 | ●Runs well 123–185 tok/s | 128K |
| Q5_0maker’s file | 2.6 GB | ≈ 4.3 | ●Runs well 125–188 tok/s | 128K |
| Q4_K_Mmaker’s file | 2.3 GB | ≈ 4.0 | ●Runs well 136–204 tok/s | 128K |
| Q4_0 | 2.1 GB | ≈ 3.7 | ●Runs well 145–218 tok/s | 128K |
| INT4 (AWQ / GPTQ)maker’s file | 2.5 GB | ≈ 4.1 | ●Runs well 130–195 tok/s | 128K |
| IQ4_XS | 2.0 GB | ≈ 3.6 | ●Runs well 151–226 tok/s | 128K |
| Q3_K_Mquality drops | 1.8 GB | ≈ 3.5 | ●Runs well 159–238 tok/s | 128K |
| IQ3_XXSquality drops | 1.4 GB | ≈ 3.1 | ●Runs well 184–275 tok/s | 128K |
| Q2_Kquality drops | 1.4 GB | ≈ 3.0 | ●Runs well 186–278 tok/s | 128K |
| IQ2_XXSquality drops | 1.0 GB | ≈ 2.6 | ●Runs well 225–337 tok/s | 128K |
Click a row to choose a precision. “Maker’s file” sizes are the maker’s own files; others are parameters × bits per weight.
Compared with other hardware
Each at the highest precision it runs. Click one for details.
Smallest that runs it (Q4_K_M, 8K): GPU GeForce RTX 3080; unified memory Apple M5 · 16 GB.
Run commands
vllm serve Qwen/Qwen3-4B --max-model-len 8192
Memory to fine-tune
Batch 1, 2,048-token sequences, gradient checkpointing; LoRA and QLoRA train rank-16 adapters on the attention projections.
Estimates; facts from the maker’s Hugging Face repositories, as of 2026-11-06. How it’s estimated
Cited scores
From third-party leaderboards, not measured by us- Epoch AI · GPQA Diamond 52.3%
#121 of 168 listed models · ±3.01
Also listed: reasoning off 43.6%
- EQ-Bench Longform Writing 17
#92 of 92 listed models
- Epoch AI, 'Capabilities & benchmarking'. Published online at epoch.ai. Retrieved from 'https://epoch.ai/benchmarks'. Licensed CC BY 4.0. · License · as of Nov 4, 2026
- EQ-Bench by Samuel J. Paech (eqbench.com; EQ-bench/EQ-bench-site on GitHub), MIT License. · License · as of Oct 28, 2026
- changes we made
Changes
All changes →No changes recorded yet.
Sources
- Text generation models - Qwen, DeepSeek, GLM | Model Studio - Alibaba Cloud Model Studio - Alibaba Cloud Documentation Center (opens in a new tab) docs.modelstudio.console.alibabacloud.com · checked Oct 15, 2026
- Alibaba Cloud Model Studio pricing (opens in a new tab) alibabacloud.com · checked Sep 30, 2026
- Qwen3: Think Deeper, Act Faster | Qwen (opens in a new tab) qwenlm.github.io · checked Oct 31, 2026
- Qwen3-4B (opens in a new tab) huggingface.co · checked Nov 4, 2026
- Qwen/Qwen3-4B model card (opens in a new tab) huggingface.co · checked Oct 30, 2026
- Qwen/Qwen3-4B config.json (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B files (opens in a new tab) huggingface.co · checked Nov 1, 2026
- Qwen/Qwen3-4B-AWQ files (opens in a new tab) huggingface.co · checked Nov 3, 2026
- Qwen/Qwen3-4B-FP8 files (opens in a new tab) huggingface.co · checked Nov 1, 2026
- Qwen/Qwen3-4B-GGUF files (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B-MLX-4bit files (opens in a new tab) huggingface.co · checked Nov 1, 2026
- Qwen/Qwen3-4B-MLX-6bit files (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B-MLX-8bit files (opens in a new tab) huggingface.co · checked Nov 2, 2026
- Qwen/Qwen3-4B-MLX-bf16 files (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B README.md (opens in a new tab) huggingface.co · checked Nov 4, 2026
Alibaba Qwen’s official policies: data use, privacy, terms →
Some values on this page are still waiting to be checked against official pages: a filled dot is verified, a hollow one is not yet (with or without a source on file). How we verify data
Alibaba Qwen · China · qwen.ai
Related models
Snapshots, the same family and other models from this provider