Overview
Qwen2.5-Coder-7B-Instruct is the instruction-tuned 7.61B-parameter member of Alibaba's Qwen2.5-Coder family, released in September 2024 as the successor to CodeQwen1.5.
- License: Apache 2.0
- Context length: 128K tokens (with YaRN)
- Parameters: 7.61B (28 layers, GQA)
- Minimum hardware: ~8 GB VRAM (4-bit)
- Strengths: code generation, code reasoning, bug fixing
Highlights
- Code-specialized 7B — Qwen2.5-Coder tuned for generation, reasoning, and fixing.
- 5.5T training tokens — source code, text-code grounding, and synthetic data.
- Strong code editing — keeps completion and edit quality while staying fast for IDE use.
- 128K context — long-context support via YaRN for repository-scale work.
What it's good at
The model is specialized for code generation, code reasoning, and bug fixing. The Qwen2.5-Coder series was trained on 5.5 trillion tokens of source code, text-code grounding, and synthetic data, and supports a wide range of programming languages. While the 32B flagship is the one the Qwen team compares to GPT-4o on coding, the 7B variant keeps strong code completion and editing quality while staying fast enough for IDE integration and local agents. It also retains general math and reasoning ability inherited from Qwen2.5.
Running locally
At BF16 the model needs about 16 GB of VRAM; 4-bit GGUF or GPTQ quantizations bring that down to roughly 8 GB, so it runs on cards like an RTX 3060 or on Apple Silicon. You can load it through Hugging Face transformers (4.37 or newer), serve it with vLLM, or run quantized builds via Ollama and llama.cpp. The default config sets context to 32,768 tokens; enabling YaRN rope scaling extends it to the full 131,072-token (128K) window, which the team recommends only when long inputs are actually needed.
License
Qwen2.5-Coder-7B-Instruct is released under the Apache 2.0 license. That permits commercial use, modification, and redistribution, requiring only that you preserve the license and attribution notices. The open weights are downloadable from Hugging Face for self-hosting.


