Code Llama: Open Foundation Models for Code

By Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Tan, Yossi Adi, Jingyu Liu, Tal Remez, J. Rapin and 15 more. 2023

3,394 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Networks and Communications, Software, Large Language Models

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Jianfeng Gao
  4. Graham Neubig
  5. Furu Wei
  6. Quoc V. Le
  7. Yoshua Bengio
  8. Percy Liang

In Computer Networks and Communications

  1. Ion Stoica
  2. Joseph E. Gonzalez
  3. Yinmin Zhong
  4. Yiming Yang
  5. Song Han
  6. Prateek Mittal
  7. Stella Biderman
  8. Huan Sun

In Software

  1. Mark Harman
  2. Koushik Sen
  3. Chun Xia
  4. Lingming Zhang
  5. Yinlin Deng
  6. Shin Yoo
  7. Ling-Ming Zhang
  8. Soren Dunn

In Large Language Models

  1. Furu Wei
  2. Jianfeng Gao
  3. Graham Neubig
  4. Richard Socher
  5. Nan Duan
  6. Marie-Anne Lachaux
  7. Maosong Sun
  8. Wenhu Chen

Citations in the corpus