The Stack: 3 TB of permissively licensed source code

By Denis Kocetkov, Raymond Li, Raymond Li, Loubna Ben Allal, Jia Li, Jia Li, Chenghao Mou, Carlos Muñoz Ferrandis, Yacine Jernite, Margaret Mitchell and 6 more. 2022

482 citations recorded by the source corpus.

Large Language Models (LLMs) play an ever-increasing role in the field of Artificial Intelligence (AI)--not only for natural language processing but also for code understanding and generation. To stimulate open and responsible research on LLMs for code, we introduce The Stack, a 3.1 TB dataset consisting of permissively licensed source code in 30 programming languages. We describe how we collect the full dataset, construct a permissively licensed subset, present a data governance plan, discuss limitations, and show promising results on text2code benchmarks by training 350M-parameter decoders on different Python subsets. We find that (1) near-deduplicating the data significantly boosts performance across all experiments, and (2) it is possible to match previously reported HumanEval and MBPP performance using only permissively licensed data. We make the dataset available at https://hf.co/BigCode, provide a tool called"Am I in The Stack"(https://hf.co/spaces/bigcode/in-the-stack) for developers to search The Stack for copies of their code, and provide a process for code to be removed from the dataset by following the instructions at https://www.bigcode-project.org/docs/about/the-stack/.

Subfields: Artificial Intelligence, Information Systems, Evaluation & Benchmarks

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. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Hannaneh Hajishirzi
  4. Yejin Choi
  5. Percy Liang
  6. Noah A. Smith
  7. Jianfeng Gao
  8. Graham Neubig

In Information Systems

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Caiming Xiong
  4. Sewon Min
  5. Maosong Sun
  6. Percy Liang
  7. Li Dong
  8. Xu Han

In Evaluation & Benchmarks

  1. Hannaneh Hajishirzi
  2. Noah A. Smith
  3. Luke S. Zettlemoyer
  4. Caiming Xiong
  5. Percy Liang
  6. Eric Wallace
  7. Mohit Bansal
  8. Furu Wei

Citations in the corpus