The Stack: 3 TB of permissively licensed source code
Authors:
- Denis KocetkovDKDenis Kocetkov
- Raymond LiRLRaymond Li
- Loubna Ben AllalLALoubna Ben Allal
- Jia LiJLJia Li
- Chenghao MouCMChenghao Mou
- Carlos Muñoz FerrandisCFCarlos Muñoz Ferrandis
- Yacine JerniteYJYacine Jernite
- Margaret MitchellMMMargaret Mitchell
- Sean HughesSHSean Hughes
- Thomas WolfTWThomas Wolf
- Dzmitry BahdanauDBDzmitry Bahdanau
- Leandro von WerraLWLeandro von Werra
Preprint
Abstract
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/.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- Data Governance in the Age of Large-Scale Data-Driven Language Technology2022
- A systematic evaluation of large language models of code2022
- CodeFill2022
- Deduplicating Training Data Makes Language Models Better2022
- Datasheets for datasetsCommunications of the ACM, 2021
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation2021
- Findings of the Association for Computational Linguistics: EMNLP 20202020
- The adverse effects of code duplication in machine learning models of code2019
- Data Statements for Natural Language Processing: Toward Mitigating System Bias and Enabling Better ScienceTransactions of the Association for Computational Linguistics, 2018