Qwen3-Coder - A code generation model launched by Alibaba's Tongyi Qianwen
Qwen3-Coder is a powerful code generation model developed by the Alibaba Tongyi Qianwen team. It features 480B parameters and 35B activation parameters, supports a native 256K token context, and can be expanded to 1M tokens. The model is used in Agen...
What is Qwen3-Coder?
Qwen3-Coder is a powerful code generation model developed by the Alibaba Tongyi Qianwen team. It boasts 480B parameters and 35B activation parameters, supports a native 256K token context, and can be expanded to 1M tokens. The model excels in tasks such as Agentic Coding, Agentic Browser-Use, and Agentic Tool-Use, reaching top-tier performance among open-source models. Qwen3-Coder enhances performance through large-scale reinforcement learning and long-term interactive training, and provides the command-line tool Qwen Code and API interfaces for easy developer use. Qwen3-Coder supports and assists in software development, improving efficiency and reducing the human burden on complex tasks.
Qwen3-Coder's main functions
- Code generation and optimizationGenerates high-quality code based on user-input natural language descriptions. Supports multiple programming languages, including but not limited to Python, JavaScript, and Java, and can generate complex code logic such as functions, classes, and modules.
- Agentic CodingIt can autonomously plan and execute multi-step tasks, such as automatically calling tools and executing code tests during development. It supports interaction with external tools (such as browsers, APIs, etc.) to complete complex tasks.
- Long-Horizon InteractionIn real-world software engineering tasks, Qwen3-Coder solves problems through multi-turn interactions, excelling in tasks such as SWE-Bench.
- Context extensionIt natively supports a context length of 256K tokens, which can be extended to 1M tokens based on YaRN technology, making it suitable for warehouse-level and dynamic data (such as pull requests).
-
Multi-tool integrationSupports integration with various tools such as Qwen Code, Claude Code, Cline, etc.
The technical principles of Qwen3-Coder
- Mixture-of-Experts (MoE) modelQwen3-Coder is a 480-parameter hybrid expert model with 35-parameter activation. It supports efficient computational performance when handling large-scale data while possessing powerful expressive capabilities.
- Large-scale pre-trainingThe model was pre-trained using 7.5TB of data, with code data accounting for 70%. Based on this large-scale training, the model learned rich programming patterns and language structures. It supports a context length of 256K tokens, which can be extended to 1M tokens using YaRN technology, optimizing its ability to handle repository-level and dynamic data.
- Synthetic Data ExtensionBased on Qwen2.5-Coder, low-quality data is cleaned and rewritten, significantly improving the overall data quality and further optimizing the training effect of the model.
- Reinforcement Learning (RL)In the post-training phase, based on large-scale reinforcement learning, high-quality training instances are constructed by automatically expanding test cases, significantly improving the code execution success rate. Long-Horizon Reinforcement Learning (LRL) is introduced to encourage the model to solve problems through multi-round interactions, improving performance in real-world software engineering tasks.
Qwen3-Coder's project address
- Project official website: https://qwenlm.github.io/blog/qwen3-coder/
- GitHub repositoryhttps://github.com/QwenLM/Qwen3-Coder
- HuggingFace model libraryhttps://huggingface.co/Qwen/Qwen3-Coder-480B-A35B-Instruct
Application Scenarios of Qwen3-Coder
- Code generation and automated developmentIt can quickly generate code prototypes, support multiple languages, save development time, and improve efficiency.
- Agentic CodingIt can autonomously plan and execute multi-step tasks, interact with external tools, and complete complex tasks.
- Software engineering tasksIt assists in code review, optimization, test generation, and documentation writing, improving code quality and development process efficiency.
- Education and LearningIt provides code examples and teaching support for beginners, helping them quickly master programming knowledge and skills.
- Enterprise DevelopmentRapidly develop internal tools and automation scripts to improve team efficiency and accelerate project launches.