arXiv(opens in a new tab)cs.CLSep 2024Cited by 138 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2409.12186

Qwen2.5-Coder Technical Report

Binyuan Hui, Jian Yang, Zeyu Cui, Jiaxi Yang, Dayiheng Liu, Lei Zhang, Tianyu Liu, Jiajun Zhang, Bowen Yu, Keming Lu, Kai Dang, Yang Fan, Yichang Zhang, An Yang, Rui Men, Fei Huang, Bo Zheng, Yibo Miao, Shanghaoran Quan, Yunlong Feng, Xingzhang Ren, Xuancheng Ren, Jingren Zhou, Junyang Lin

Abstract

In this report, we introduce the Qwen2.5-Coder series, a significant upgrade from its predecessor, CodeQwen1.5. This series includes six models: Qwen2.5-Coder-(0.5B/1.5B/3B/7B/14B/32B). As a code-specific model, Qwen2.5-Coder is built upon the Qwen2.5 architecture and continues pretrained on a vast corpus of over 5.5 trillion tokens. Through meticulous data cleaning, scalable synthetic data generation, and balanced data mixing, Qwen2.5-Coder demonstrates impressive code generation capabilities while retaining general and math skills. These models have been evaluated on a wide range of code-related tasks, achieving state-of-the-art (SOTA) performance across more than 10 benchmarks, including code generation, completion, reasoning, and repair, consistently outperforming larger models of the same model size. We believe that the release of the Qwen2.5-Coder series will advance research in code intelligence and, with its permissive licensing, support wider adoption by developers in real-world applications.

Qwen2.5-Coder-32B

Figure

*Equal core contribution, †Corresponding author

Contents

1 Introduction 3
2 Model Architecture 3
3 Pre-training 4
3.1 Pretraining Data 4
3.1.1 Data Composition 5
3.1.2 Data Mixture 6
3.2 Training Policy 6
3.2.1 File-Level Pretraining 6
3.2.2 Repo-Level Pretraining 7
4 Post-training 7
4.1 A Recipe for Instruction Data 7
4.2 Training Policy 9
5 Decontamination 9
6 Evaluation on Base Models 10
6.1 Code Generation 10
6.2 Code Completion 11
6.3 Code Reasoning 14
6.4 Math Reasoning 15
6.5 General Natural Language 15
6.6 Long-Context Evaluation 16
7 Evaluation on Instruct Models 16
7.1 Code Generation 18
7.2 Code Reasoning 22
7.3 Code Editing 23
7.4 Text-to-SQL 25
7.5 Math Reasoning and General Natural Language 27
7.6 Table Understanding 27
8 Discussion: Scaling is All You Need 28
9 Conclusion 28

References (51)

Cited by (138)