OctoPack: Instruction Tuning Code Large Language Models

Niklas Muennighoff, Qian Liu, Qi Liu, A. Zebaze, Qinkai Zheng +6 more
2/12/2026

No official code found. Best implementation: bigcode-project/bigcode-evaluation-harness (1,062 stars, Apache-2.0, last commit 2025-07-22). 1 more below.

Abstract

Finetuning large language models (LLMs) on instructions leads to vast performance improvements on natural language tasks. We apply instruction tuning using code, leveraging the natural structure of Git commits, which pair code changes with human instructions. We compile CommitPack: 4 terabytes of Git commits across 350 programming languages. We benchmark CommitPack against other natural and synthetic code instructions (xP3x, Self-Instruct, OASST) on the 16B parameter StarCoder model, and achieve state-of-the-art performance among models not trained on OpenAI outputs, on the HumanEval Python benchmark (46.2% pass@1). We further introduce HumanEvalPack, expanding the HumanEval benchmark to a total of 3 coding tasks (Code Repair, Code Explanation, Code Synthesis) across 6 languages (Python, JavaScript, Java, Go, C++, Rust). Our models, OctoCoder and OctoGeeX, achieve the best performance across HumanEvalPack among all permissive models, demonstrating CommitPack's benefits in generalizing to a wider set of languages and natural coding tasks. Code, models and data are freely available at https://github.com/bigcode-project/octopack.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

A framework for the evaluation of autoregressive code generation language models.

1,062262Shell, PythonAug 9, 20221 years agoApache-2.0
MIT

🐙 OctoPack: Instruction Tuning Code Large Language Models

48030Java, ShellMar 25, 20231 years agoMIT

Similar Papers

Cite this paper

@article{muennighoff2026octopack,
  title  = {OctoPack: Instruction Tuning Code Large Language Models},
  author = {Niklas Muennighoff and Qian Liu and Qi Liu and A. Zebaze and Qinkai Zheng and Binyuan Hui and Terry Yue Zhuo and Swayam Singh and Xiangru Tang and L. V. Werra and S. Longpre},
  year   = {2026},
  eprint = {2308.07124},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2308.07124},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.07124.svg)](https://codeofpaper.com/paper/2308.07124)

Discussion