# OpenCodeInstruct

- **ID:** 1156
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/nvidia/OpenCodeInstruct
- **Authors:** nvidia
- **Published:** 2025
- **Source:** huggingface
- **Language:** en
- **Access:** Free
- **License:** CC-BY-4.0 (HF card YAML). Card: ready for commercial/non-commercial use. Qwen2.5-32B-Instruct / Genetic-Instruct teacher terms may still apply if used to train a distributed model. GitHub seed function licenses and TACO contest-problem licenses remain.
- **License family:** Permissive (auto-classified)
- **Topics:** Python code generation; instruction SFT; unit-test execution feedback
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Page:** https://papers.projxon.ai/entries/1156

## Summary

Largest open-access code instruction-tuning set (paper Table 1) for SFT of code LLMs

## From the source (fetched 2026-10-03)

- **Repository:** nvidia/OpenCodeInstruct (Hugging Face)
- **Created:** Apr 9, 2025 (Hugging Face)
- **Last updated:** Apr 28, 2025 (Hugging Face)
- **Downloads (last month):** 31,198 (Hugging Face)
- **Likes:** 111 (Hugging Face)
- **Size:** 1M to 10M rows (Hugging Face)
- **Modalities:** text (Hugging Face)
- **Tasks:** text-generation (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** Card/paper 5 million samples. YAML config train 5,000,000 / download_size 6,861,113,102 bytes (~6.86 GB) / dataset_size 19,066,895,906 bytes (~19.07 GB). usedStorage 8,644,941,304 bytes (~8.64 GB). LFS data/train-00000-of-00050.parquet … train-00049 (~113.9–154.6 MB; 50 files). size_categories YAML 1M<n<5M vs Hub tag 1M<n<10M — catalog YAML/card 5,000,000. Hub/datasets-server viewer-partial 4,969,570; datasets-server info currently 1,400,000 / 7 parquet (partial convert of 50) — do not catalog 1.4M as n. Hub overview 14.7K downloads / 108 likes at check. gated=false.
- **Format:** parquet under data/train-00000-of-00050.parquet … train-00049. Columns: id, input, output, domain, generation_algorithm, llm_judgement, unit_tests, tests_execution_status, average_test_score. Hub config_name train (not default).
- **Type:** Annotated synthetic code-instruction SFT / NL prompt + Python solution + unit tests + LLM judgement
- **License:** CC-BY-4.0 (HF card YAML). Card: ready for commercial/non-commercial use. Qwen2.5-32B-Instruct / Genetic-Instruct teacher terms may still apply if used to train a distributed model. GitHub seed function licenses and TACO contest-problem licenses remain.
- **Cost:** Free
- **Languages:** English prompts + Python solutions (paper: code-instruction dataset in Python). Card language:en. Preview NL-to-Python tasks. No LID table. Per-language percents N/A.
- **Modality:** Text-only (English problem statements + Python). No images.
- **Domain:** Python code generation; instruction SFT; unit-test execution feedback
- **Time period:** Paper arXiv 2504.04030 (Hub publishedAt 2025-04-05T02:52:16Z). Card creation January 2025–March 2025; release 2025-04-28. HF createdAt 2025-04-09; lastModified 2025-04-28T19:08:02Z. One-shot Genetic-Instruct synthesis, not a live GitHub scrape.
- **Purpose:** Largest open-access code instruction-tuning set (paper Table 1) for SFT of code LLMs
- **Used for:** Paper OCI-Llama3 and OCI-Qwen2.5-Coder SFT vs Llama3-Instruct / Qwen2.5-Coder-Instruct on HumanEval, MBPP, LiveCodeBench, BigCodeBench. Hub overview 14.7K downloads / 108 likes at check. Paper 4 upvotes at paper-metadata check. GitHub NVIDIA-NeMo/Skills 1,022 stars / 194 forks at check. Distinct from already-cataloged OpenCodeReasoning.
- **Authors:** NVIDIA (Ahmad, Ficek, Samadi, Huang, Noroozi, Majumdar, Ginsburg; arXiv 2504.04030). Seeds: 1.43M generic OSS-Instruct items from GitHub Python functions (Qwen2.5-32B-Instruct) plus 25,443 TACO contest questions. Genetic-Instruct (Self-Instruct + Evol-Instruct) then LLM unit tests/judgement. Not organic GitHub commits.
- **Bias:** Python-only NL-to-code. Seeds overweight GitHub-Python OSS-Instruct plus TACO contest platforms (paper Table 2: CodeForces 8,193 / CodeChef 3,352 / GeeksForGeeks 2,680 / Codewars 2,460 / HackerEarth 2,390 / AIZU 2,151 / AtCoder 1,440 / Kattis 1,236 / LeetCode 777 / HackerRank 764; total 25,443). datasets-server partial statistics on 1,400,000 rows (partial=true, not full 5M): domain generic 744,201 / algorithmic 655,799; generation_algorithm self-instruct 1,089,553 / evol-instruct 310,447; average_test_score 1: 549,389 / 0: 285,371 / 0.9: 172,537 (rest 0.1–0.8). Distinct from already-cataloged OpenCodeReasoning / OpenCoder SFT Stage 2 / rStar-Coder.
- **Text quality:** Preview row 0 (max non-overlapping tasks) and row 1 (balanced brackets) are well-posed Python NL-to-code items with assert unit tests and llm_judgement scores of 5 on requirement/logic. Paper: LLM judgement predicted quality better than execution feedback; Genetic-Instruct beat either Self-Instruct or Evol-Instruct alone. Residual: fully synthetic; datasets-server partial average_test_score 0 on 285,371 / 1.4M (~20%); not independently executed here; Python-only vs already-cataloged multilingual code dumps.
- **Sample size:** Single Hub config train / split train. Card/YAML 5,000,000. No val/test. domain and generation_algorithm are columns not Hub configs. datasets-server 1.4M is a partial parquet convert — not extra n. Do not concat with already-cataloged OpenCodeReasoning.
- **Long context:** No (short NL-to-Python items). datasets-server partial: input mean 769 / median 693 chars; output mean 936 / median 792 chars. Exact token histogram Unknown without aggregating.
- **Intermediate steps:** Yes (GitHub Python functions → OSS-Instruct seed instructions via Qwen2.5-32B-Instruct; TACO algorithmic seeds; Genetic-Instruct mutation/crossover ~9M then n-gram dedup/clean/decontam to 5M; LLM unit tests + execution feedback + LLM judgement). Pipeline in NVIDIA-NeMo/Skills.
- **Idea quality:** High
- **Novelty:** High (public 5M Python instruction SFT with tests/judgement vs already-cataloged OpenCodeReasoning / OpenCoder SFT)
- **Text conversion:** Ready parquet; README load_dataset('nvidia/OpenCodeInstruct', split='train') — Hub config is 'train'. ~6.86 GB download — streaming recommended. Do not treat datasets-server 1.4M partial convert as full n.
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2025-04-28; one-shot).
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/nvidia/OpenCodeInstruct
- Related: https://arxiv.org/abs/2504.04030
- Related: https://huggingface.co/papers/2504.04030
- Related: https://huggingface.co/datasets/nvidia/OpenCodeInstruct
- Related: https://github.com/NVIDIA-NeMo/Skills

## Research notes

- Dump-adjacent public corpus (not in data-source-dump.jsonl). gated=false; public; CuratorBote listed README plus 50 LFS parquet ~6.86 GB. Catalog YAML/card 5,000,000, not datasets-server partial 1.4M / viewer-partial 4,969,570. Cite Ahmad et al. 2025 arXiv 2504.04030. Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export. Substituted ahead of Hub-gated nvidia/Nemotron-Pretraining-Code-v1 / bigcode/the-stack; skipped Modotte/CodeX-2M-Thinking (mashup) and Convence/Rust-Coder (too small).

## Similar entries

- [RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning](https://papers.projxon.ai/entries/923) (paper, #923)
- [BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?](https://papers.projxon.ai/entries/777) (paper, #777)
- [UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)](https://papers.projxon.ai/entries/1035) (dataset, #1035)
- [OpenCoder SFT Stage 2](https://papers.projxon.ai/entries/1153) (dataset, #1153)
- [Step-3.5-Flash-SFT](https://papers.projxon.ai/entries/255) (dataset, #255)
- [Harness Learning Enables Generalizable Test-Time Adaptation](https://papers.projxon.ai/entries/851) (paper, #851)
