What is Qwen3-4B-Thinking-2507?
Qwen3-4B-Thinking-2507 is a 4 billion parameter reasoning model from the Qwen team, an updated build of the Qwen3-4B thinking variant published on Hugging Face on August 5, 2025. It runs in thinking mode only: every answer starts with a reasoning trace, and the chat template enforces it. The local appeal is the size: the Q4_K_M build is a 2.50 GB file with a native 262,144 token context.
| Specification | Qwen3-4B-Thinking-2507 |
|---|---|
| Total parameters | 4.0B (3.6B non-embedding) |
| Model type | Causal language model |
| Layers | 36 |
| Attention | GQA, 32 query heads and 8 key/value heads |
| Context window | 262,144 tokens natively |
| Modalities | Text input and output |
| Reasoning | Thinking only, cannot be switched off |
| Training stage | Pretraining and post-training |
| Recommended output length | 32,768 tokens, 81,920 for competition math and coding |
| Release date | August 5, 2025 |
| License | Apache 2.0 |
Qwen presents the 2507 build as three more months of work on the thinking capability of the original Qwen3-4B, aimed at both the quality and the depth of the reasoning. The claims on the model card are specific: significantly improved performance on logical reasoning, mathematics, science, coding and academic benchmarks that typically require human expertise, markedly better general capabilities in instruction following, tool usage, text generation and alignment with human preferences, and enhanced 256K long-context understanding. Qwen is blunt about the cost: this version has an increased thinking length, and the team strongly recommends it for highly complex reasoning tasks.
The thinking budget is the point of the update. Qwen recommends a 32,768 token output length for most queries and 81,920 tokens for competition math and programming, with sampling at temperature 0.6, top-p 0.95, top-k 20 and min-p 0. A presence penalty between 0 and 2 cuts endless repetition, at the risk of language mixing and a slight quality loss at the top of that range. The template opens the reasoning block itself, so responses carry only a closing </think> tag, and it drops thinking content from earlier turns automatically. For serving, Qwen names sglang 0.4.6.post1 or newer and vllm 0.8.5 or newer, both with the deepseek-r1 reasoning parser, and points local users at Ollama, LMStudio, MLX-LM, llama.cpp and KTransformers.
Qwen3-4B-Thinking-2507 benchmarks
The numbers Qwen publishes on the model card compare the 2507 refresh with the original Qwen3-4B Thinking and the much larger Qwen3-30B-A3B Thinking:
| Benchmark | Qwen3-4B-Thinking-2507 | Qwen3-4B Thinking | Qwen3-30B-A3B Thinking |
|---|---|---|---|
MMLU-Pro Academic knowledge | 74.0 | 70.4 | 78.5 |
GPQA Expert science | 65.8 | 55.9 | 65.8 |
AIME25 Competition math | 81.3 | 65.6 | 70.9 |
HMMT25 Olympiad math | 55.5 | 42.1 | 49.8 |
LiveCodeBench v6 Competitive coding | 55.2 | 48.4 | 57.4 |
IFEval Instruction following | 87.4 | 81.9 | 86.5 |
BFCL-v3 Tool calling | 71.2 | 65.9 | 69.1 |
TAU2-Retail Retail agents | 53.5 | 38.6 | 34.2 |
The refresh beats the original 4B on every row and takes five of the eight from Qwen3-30B-A3B Thinking, all the math and agent rows among them, plus a tie on GPQA. The 30B keeps the lead on broad knowledge and competitive coding. The wider vendor table follows the same split: the 4B pulls ahead on multilingual instruction following (MultiIF 77.3 against 72.2) and on WritingBench (83.3 against 77.0), while the 30B stays in front on MMLU-Redux, SuperGPQA, Arena-Hard v2 and the knowledge-heavy multilingual sets MMLU-ProX and INCLUDE.
Qwen3-4B-Thinking-2507 hardware requirements
The system requirement to check is memory. The builds below are real file sizes from unsloth/Qwen3-4B-Thinking-2507-GGUF.
| Memory | Build to pick | File size |
|---|---|---|
| 4 GB | UD-Q2_K_XL | 1.70 GB |
| 6 GB | UD-Q3_K_XL | 2.13 GB |
| 8 GB | Q4_K_M | 2.50 GB |
| 10 GB | Q5_K_M | 2.89 GB |
| 12 GB | Q6_K | 3.31 GB |
| 16 GB | Q8_0 | 4.28 GB |
| 24 GB and up | F16 | 8.05 GB |
The repo goes below the table too, down to UD-IQ2_M at 1.53 GB and UD-IQ1_S at 1.08 GB, which is where quality falls fastest: those files cut the weights harder than the rest of the ladder while saving only a few hundred megabytes over UD-Q2_K_XL. From Q4_K_M up the whole ladder to Q8_0 spans 1.8 GB, so a step up is cheap, and when two builds both fit, take the larger one. Leave more headroom than usual for context, since the model reasons at length: Qwen recommends keeping the context above 131,072 tokens where you can, and only shrinking it if you hit out of memory errors. If the format is new to you, start with what GGUF is, and see the best local LLMs for a 16 GB Mac for what else fits alongside it.
How to run Qwen3-4B-Thinking-2507 in Atomic Chat
Atomic Chat is a free local app for macOS, Windows and Linux. It includes a Hugging Face model browser and a built-in chat, with no manual llama.cpp build required.
- Download Atomic Chat for your platform and open it.
- Search for Qwen3-4B-Thinking-2507 in the model browser and open Download Options.
- Pick the build that fits the memory you have, then start a chat.
For the rest of the lineup, see every Qwen model you can run locally.
Qwen3-4B-Thinking-2507 license
Qwen3-4B-Thinking-2507 is released under Apache 2.0. That permits commercial use, modification and redistribution with no royalties, so you can ship products built on the model and run it on your own hardware without a usage fee.
