Qwen2.5-Coder 技术报告

Qwen2.5-Coder Technical Report

杨安 An Yang · Qwen Team, Alibaba · 2024-09-18 · arXiv:2409.12186 ↗ · 被引 1330

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

本报告介绍了 Qwen2.5-Coder 系列,这是对其前身 CodeQwen1.5 的重大升级。该系列包含六个模型:Qwen2.5-Coder-(0.5B/1.5B/3B/7B/14B/32B)。作为代码专用模型,Qwen2.5-Coder 基于 Qwen2.5 架构,并在超过 5.5 万亿 tokens 的庞大语料上继续预训练。通过细致的数据清洗、可扩展的合成数据生成和平衡的数据混合,Qwen2.5-Coder 在保持通用和数学能力的同时,展现了令人印象深刻的代码生成能力。这些模型在广泛的代码相关任务上进行了评估,在包括代码生成、补全、推理和修复在内的 10 多个基准测试中取得了最先进的性能,持续优于相同模型规模的更大模型。我们相信,Qwen2.5-Coder 系列的发布将推动代码智能的研究,并且凭借其宽松的许可,支持开发者在实际应用中更广泛地采用。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 22)

阅读逐段中英对照全文 →