arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.12950cs.CL
收藏

Code Llama:面向代码的开源基础模型

Code Llama: Open Foundation Models for Code

Meta AI
Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Romain Sauvestre, Tal Remez, Jérémy Rapin, A… 展开作者

Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Romain Sauvestre, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton Ferrer, Aaron Grattafiori, Wenhan Xiong, Alexandre Défossez, Jade Copet, Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, Gabriel Synnaeve

AI总结:

本研究发布基于Llama 2的Code Llama系列代码大模型,含多版本多参数规模,具备长上下文、代码补全等能力,在多个代码基准上取得开源模型最优性能,且支持研究与商业使用。

摘要:

我们发布了Code Llama,这是一系列基于Llama 2的代码大语言模型,在开源模型中具备顶尖性能,拥有代码补全能力、大输入上下文支持能力,以及针对编程任务的零样本指令遵循能力。我们提供多个版本以覆盖广泛应用场景:基础模型(Code Llama)、Python专项模型(Code Llama - Python),以及指令遵循模型(Code Llama - Instruct),每个系列均有7B、13B、34B和70B参数规模。所有模型均在16k token的序列上训练,且在最长100k token的输入上表现出性能提升。7B、13B和70B的Code Llama与Code Llama - Instruct变体支持基于周围内容的代码补全。Code Llama在多个代码基准测试中达到开源模型的顶尖水平,在HumanEval和MBPP上的得分分别高达67%和65%。值得注意的是,Code Llama - Python 7B在HumanEval和MBPP上的表现优于Llama 2 70B,且我们所有模型在MultiPL-E上的表现均优于其他所有公开可用模型。我们以宽松许可证发布Code Llama,允许研究和商业使用。

英文摘要:

We release Code Llama, a family of large language models for code based on Llama 2 providing state-of-the-art performance among open models, infilling capabilities, support for large input contexts, and zero-shot instruction following ability for programming tasks. We provide multiple flavors to cover a wide range of applications: foundation models (Code Llama), Python specializations (Code Llama - Python), and instruction-following models (Code Llama - Instruct) with 7B, 13B, 34B and 70B parameters each. All models are trained on sequences of 16k tokens and show improvements on inputs with up to 100k tokens. 7B, 13B and 70B Code Llama and Code Llama - Instruct variants support infilling based on surrounding content. Code Llama reaches state-of-the-art performance among open models on several code benchmarks, with scores of up to 67% and 65% on HumanEval and MBPP, respectively. Notably, Code Llama - Python 7B outperforms Llama 2 70B on HumanEval and MBPP, and all our models outperform every other publicly available model on MultiPL-E. We release Code Llama under a permissive license that allows for both research and commercial use.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑