Papers › OctoPack: Instruction Tuning Code Large Language Models

OctoPack: Instruction Tuning Code Large Language Models

14 Aug 2023arXiv:2308.07124archive 2025-07-28

Niklas Muennighoff, Qian Liu, Armel Zebaze, Qinkai Zheng, Binyuan Hui, Terry Yue Zhuo, Swayam Singh, Xiangru Tang, Leandro von Werra, Shayne Longpre

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.07124")

Code

Syntology Ran 9 of 13 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 13 samples from 2 repositories, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bigcode-project/bigcode-evaluation-harness officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
bigcode-project/octopack officialmentioned in papermentioned on GitHubpytorch report
infi-coder/infibench-evaluation-harness mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · our draft was wrong
4ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cpp_instruct bigcode-project/octopack/evaluation/create/create_instructions.py official repository ran · our draft was wrong MIT (permissive) · 7655561f064db48a · report
get_diff bigcode-project/octopack/dataset/commitpack/scrape_github.py official repository ran · our draft was wrong MIT (permissive) · db89171e76d09770 · report
get_file_contents bigcode-project/octopack/dataset/commitpack/scrape_github.py official repository ran · our draft was wrong MIT (permissive) · 2905235d73624835 · report
get_test_results_json_path bigcode-project/bigcode-evaluation-harness/bigcode_eval/tasks/custom_metrics/multiple_metrics/evaluation.py official repository ran Apache-2.0 (permissive) · 4ba028fb30a021b2 · report
java_instruct bigcode-project/octopack/evaluation/create/create_instructions.py official repository ran · our draft was wrong MIT (permissive) · ef807f76cf003934 · report
python_instruct bigcode-project/octopack/evaluation/create/create_instructions.py official repository ran · our draft was wrong MIT (permissive) · ef34b9d45f6cbdf6 · report
remove_after_return bigcode-project/bigcode-evaluation-harness/bigcode_eval/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 29ee1d8c120f674a · report
run_in_shell bigcode-project/octopack/dataset/commitpack/scrape_github.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 3266895adde27ef7 · report
update_code_gens bigcode-project/bigcode-evaluation-harness/bigcode_eval/utils.py official repository ran Apache-2.0 (permissive) · ac86a6f136bea277 · report
cache_get bigcode-project/bigcode-evaluation-harness/bigcode_eval/tasks/custom_metrics/multiple_metrics/evaluation.py official repository unverified Apache-2.0 (permissive) · f2e0ef72cfe052c9 · report
cached_eval_script bigcode-project/bigcode-evaluation-harness/bigcode_eval/tasks/custom_metrics/multiple_metrics/evaluation.py official repository unverified Apache-2.0 (permissive) · 2bceb28a9eb6ff16 · report
complete_code bigcode-project/bigcode-evaluation-harness/bigcode_eval/utils.py official repository unverified Apache-2.0 (permissive) · 21177b52be3390ee · report
compute_codexglue_code_to_text_bleu bigcode-project/bigcode-evaluation-harness/bigcode_eval/tasks/codexglue_code_to_text.py official repository unverified Apache-2.0 (permissive) · d611d112ec49cc8e · report

Tasks

Code GenerationCode RepairHumanEval

Datasets

Introduced by this paper, per the archive.

CommitPackCommitPackFTHumanEvalPack

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Repair

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections