Qwen3-4B-Instruct-2507
- Tool use
- Open weights
Prices
0 offerings · prices as listedNo priced offering is listed for this model yet.
Details
- Licence
- apache-2.0
- Family
- qwen
Not stated on Alibaba Qwen’s pages: max input, input modalities, output modalities, reasoning, reasoning efforts, reasoning can be off, max thinking budget, structured output, built-in tools, knowledge cutoff, aliases.
Run locally
Weights: Qwen/Qwen3-4B-Instruct-2507- Parameters 4B
- Dense
- Native precision BF16
- Layers 36
- KV cache per token 144 KB
- Native context 256K (model card)
- Config positions 256K (config.json max_position_embeddings)
- API context 256K (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
- 97K (longer doesn’t fit)
- 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 | 97K |
| Q8_0 | 4.0 GB | ≈ 5.6 | ●Runs well 92–138 tok/s | 122K |
| FP8maker’s file | 4.8 GB | ≈ 6.5 | ●Runs well 79–118 tok/s | 116K |
| Q6_K | 3.1 GB | ≈ 4.7 | ●Runs well 112–168 tok/s | 128K |
| Q5_K_M | 2.7 GB | ≈ 4.3 | ●Runs well 124–186 tok/s | 131K |
| Q5_0 | 2.6 GB | ≈ 4.2 | ●Runs well 127–190 tok/s | 131K |
| Q4_K_M | 2.3 GB | ≈ 3.9 | ●Runs well 138–207 tok/s | 133K |
| Q4_0 | 2.1 GB | ≈ 3.7 | ●Runs well 145–218 tok/s | 135K |
| IQ4_XS | 2.0 GB | ≈ 3.6 | ●Runs well 151–226 tok/s | 135K |
| Q3_K_Mquality drops | 1.8 GB | ≈ 3.5 | ●Runs well 159–238 tok/s | 137K |
| IQ3_XXSquality drops | 1.4 GB | ≈ 3.1 | ●Runs well 184–275 tok/s | 139K |
| Q2_Kquality drops | 1.4 GB | ≈ 3.0 | ●Runs well 186–278 tok/s | 140K |
| IQ2_XXSquality drops | 1.0 GB | ≈ 2.6 | ●Runs well 225–337 tok/s | 143K |
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-Instruct-2507 --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 45.8%
#139 of 168 listed models · ±2.85
- Epoch AI · OTIS Mock AIME 2024–2025 52.2%
#110 of 159 listed models · ±6.59
- 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
- changes we made
Changes
All changes →No changes recorded yet.
Sources
- Qwen/Qwen3-4B-Instruct-2507 config.json (opens in a new tab) huggingface.co · checked Nov 2, 2026
- Qwen/Qwen3-4B-Instruct-2507 model card (opens in a new tab) huggingface.co · checked Nov 4, 2026
- GitHub - QwenLM/Qwen3: Qwen3 is the large language model series developed by Qwen team, Alibaba Cloud. · GitHub (opens in a new tab) github.com · checked Nov 6, 2026
- Qwen/Qwen3-4B-Instruct-2507 model card (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B-Instruct-2507 · Hugging Face (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B-Instruct-2507-FP8 files (opens in a new tab) huggingface.co · checked Oct 31, 2026
- Qwen/Qwen3-4B-Instruct-2507 files (opens in a new tab) huggingface.co · checked Nov 1, 2026
- Qwen/Qwen3-4B-Instruct-2507 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