arXiv:2402.19173 · 中英对照阅读
StarCoder 2 与 The Stack v2:新一代
StarCoder 2 and The Stack v2: The Next Generation
中文速览
面对代码模型训练数据有限、覆盖语言不全且训练过程不够透明的问题,研究团队与 Software Heritage 合作,整理出涵盖 619 种编程语言、规模比上一代大四倍的代码及相关资料,并进行去重、质量筛选和隐私信息清理,再训练出 3B、7B 和 15B 三种规模的 StarCoder2。测试显示,3B 版本在多数评测中胜过同级模型,甚至追平或超过旧版 15B;15B 版本整体强于许多同级模型,在部分任务上也能匹敌更大的模型,不过 7B 版本表现相对逊色。研究还公开模型权重和代码数据来源标识,让外界能追查训练数据;这既提供了实用的编程助手,也让模型开发更容易被检查、复用和讨论。
摘要
The BigCode project,11 1 https://www.bigcode-project.org an open-scientific collaboration focused on the responsible development of Large Language Models for Code (Code LLMs), introduces StarCoder2. In partnership with Software Heritage (SWH),22 2 https://www.softwareheritage.org/ we build The Stack v2 on top of the digital commons of their source code archive. Alongside the SWH repositories spanning 619 programming languages, we carefully select other high-quality data sources, such as GitHub pull requests, Kaggle notebooks, and code documentation. This results in a training set that is $4\times$ larger than the first StarCoder dataset. We train StarCoder2 models with 3B, 7B, and 15B parameters on 3.3 to 4.3 trillion tokens and thoroughly evaluate them on a comprehensive set of Code LLM benchmarks.
术语表
- BigCode
- BigCode
- Large Language Models for Code (Code LLMs)
- 代码大语言模型(Code LLMs)
- StarCoder2
- StarCoder2
- Software Heritage (SWH)
- Software Heritage(SWH)
- The Stack v2
- The Stack v2
- source code archive
- 源代码档案库
- GitHub pull requests
- GitHub 拉取请求
- training set
- 训练集
- model weights
- 模型权重
- OpenRAIL license
- OpenRAIL 许可证
- SoftWare Heritage persistent IDentifiers (SWHIDs)
- Software Heritage 持久标识符(SWHIDs)
- StarCoderBase
- StarCoderBase
- CodeLlama
- CodeLlama
- DeepSeekCoder
- DeepSeekCoder
- open-weight models
- 开放权重模型
- fine-tuning
- 微调
- fully open development
- 完全开放式开发
- The Stack v1
- The Stack v1
- SantaCoder
- SantaCoder
- deduplication
- 去重
- Personally Identifiable Information (PII)
- 个人身份信息(PII)
- opt-out
- 退出机制
- two-stage training process
- 两阶段训练流程
- context window
- 上下文窗口
- training tokens
- 训练词元
- compute-optimal
- 计算最优
- Chinchilla
- Chinchilla
- code LLM benchmarks
- 代码大语言模型基准测试