# OpenCodeReasoning

- **ID:** 161
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/nvidia/OpenCodeReasoning
- **Authors:** nvidia
- **Venue:** nvidia
- **Published:** 2025
- **Source:** huggingface
- **Access:** free
- **License:** cc-by-4.0
- **License family:** Permissive (auto-classified)
- **Topics:** Language Modeling
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/161

## Summary

OpenCodeReasoning is the largest reasoning-based synthetic dataset to date for coding, comprises 735,255 samples in Python across 28,319 unique competitive programming

## Attributes

- **Purpose:** Language Modeling
- **Scale:** 100K<n<1M
- **Used for:** arXiv: 2504.01943
- **Time period:** created 2025-04-01; updated 2025-05-04
- **Author type:** mixed

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

- **Repository:** nvidia/OpenCodeReasoning (Hugging Face)
- **Created:** Apr 1, 2025 (Hugging Face)
- **Last updated:** May 4, 2025 (Hugging Face)
- **Downloads (last month):** 12,510 (Hugging Face)
- **Likes:** 561 (Hugging Face)
- **Size:** 100K to 1M rows (Hugging Face)
- **Modalities:** code, text (Hugging Face)
- **Tasks:** text-generation (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** Card: 735,255 Python samples / 28,319 unique questions. YAML: split_0 567,850 / 28,108,469,190 bytes (~28.11 GB); split_1 167,405 / 4,722,811,278 bytes (~4.72 GB); combined dataset_size 32,831,280,468 bytes (~32.83 GB). Download: split_0 30 parquet ~242 MB each (~7.27 GB) + split_1 10 parquet ~140 MB each (~1.41 GB) ≈ 8.68 GB. size_categories 100K<n<1M. Paper (slightly larger construction set): 736,712 Python / 28,904 questions + 355,792 C++. datasets-server numRows 752,713 (viewer-partial; ~17k above the card 735,255). HF 13,691 downloads / 550 likes at check. usedStorage Unknown (not independently summed; YAML dataset_size ~32.83 GB).
- **Format:** parquet (id, input, output, source, license, dataset, split, difficulty, solution; split_1 adds index)
- **Type:** Annotated competitive-code SFT corpus / R1 question–trace–solution
- **License:** CC BY 4.0 (card). Per-row license field also records upstream dataset licenses (mit / apache-2.0 / cc-by-4.0). User must check each source dataset for the intended use. Contest platform ToS still apply.
- **Cost:** Free
- **Languages:** English problem statements + Python solutions (card). Paper also generated 355,792 C++ samples for IOI ablations — not in this HF repo. No LID table.
- **Modality:** Text + Python source code
- **Domain:** competitive programming; Python code reasoning SFT traces
- **Time period:** HF lastModified 2025-05-04. Paper 2025-04-02 (arXiv 2504.01943); card release 2025-04-04; Data Version 1.0. Teacher DeepSeek-R1 (2025). Seed questions from TACO/APPS/CodeContests/open-r1/codeforces (older contests). Discord posted 2025-11-17.
- **Purpose:** Largest open reasoning-trace SFT dump for competitive coding; distill R1 coding CoT into student models without RL
- **Used for:** OpenCodeReasoning-Nemotron 7B/14B/32B (Qwen2.5 SFT): paper 32B 61.8 LiveCodeBench pass@1 avg@64 / 24.6 CodeContests, beating same-size R1-Distill. OpenThoughts3-1.2M uses this as a code-question source (already cataloged). Hub 13,691 downloads / 550 likes at check.
- **Authors:** Human contest authors (CodeForces/CodeChef/AtCoder/AIZU/Codewars/GeeksForGeeks/HackerEarth/HackerRank/Kattis/LeetCode). Traces: DeepSeek-R1. NVIDIA (Ahmad / Narenthiran / Majumdar / Ficek / Jain / Huang / Noroozi / Ginsburg).
- **Bias:** CodeForces-heavy: card 10,069 questions / 386,948 samples (52.6% of samples, 35.6% of questions). Then CodeChef 3,796 q / 72,925 s; AIZU 2,123 / 62,476; HackerEarth 2,269 / 59,181; AtCoder 2,043 / 47,222. LeetCode only 777 / 10,525. Python-only on Hub. Multiple R1 samples per question (~26 per unique on the card). Paper: execution filtering hurt LiveCodeBench so they kept incorrect traces; instruction diversity over solution correctness. Decontaminated vs LiveCodeBench/CodeContests/HumanEval/MBPP (cosine 0.7 + Llama-3.3-70B/Qwen2.5-32B judges; 90 flagged, ≤0.3%, none paraphrases).
- **Text quality:** R1 CoT with <think> tags; Tree-sitter syntax check; responses with code inside the thinking block dropped. Max generation 16k tokens (SGLang, T=0.6, top-p=0.95). Residual: unverified functional correctness (by design). split_1 input is "-" — recover the question from TACO/APPS via dataset/split/index.
- **Sample size:** split_0 567,850 (questions inlined); split_1 167,405 (TACO/APPS index). Card source table: CodeForces 386,948; CodeChef 72,925; AIZU 62,476; HackerEarth 59,181; AtCoder 47,222; GeeksForGeeks 37,602; Codewars 34,326; Kattis 13,095; HackerRank 10,955; LeetCode 10,525. Single split name equals config name.
- **Long context:** Yes (long R1 CoT; paper 16k max output; coding proofs/implementations)
- **Intermediate steps:** Yes (exact-match question dedup across TACO/APPS/CodeContests/open-r1/codeforces; R1 multi-sample; think-tag + fenced-code + Tree-sitter filter; no execution filter in the released set)
- **Idea quality:** High
- **Novelty:** High (largest open competitive-coding reasoning-trace dump at release)
- **Text conversion:** Ready parquet. load_dataset("nvidia/OpenCodeReasoning", "split_0"|"split_1"). split_1 needs BAAI/TACO and codeparrot/apps to fill input.
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2025-05-04; Data Version 1.0 2025-04-04; one-shot)
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/nvidia/OpenCodeReasoning
- Related: https://arxiv.org/abs/2504.01943
- Related: https://huggingface.co/datasets/nvidia/OpenCodeReasoning
- Related: https://github.com/NVIDIA/NeMo-Skills
- Related: https://huggingface.co/nvidia/OpenCodeReasoning-Nemotron-32B

## Research notes

- downloads=11918; likes=546
- Discord posted the HF pointer. Cite Ahmad et al. 2025 arXiv 2504.01943. C++ traces are paper-only. Do not confuse with nvidia/OpenCodeReasoning-Nemotron-* models or with OpenThoughts3 which consumes this as a source. Substituted for gated nvidia/Nemotron-Pretraining-Code-v1. Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.

## Related entries

- Related: [Nemotron-Terminal-Corpus](https://papers.projxon.ai/entries/228) (dataset, #228)

## Similar entries

- [Contrastive Language Models (CLM): A System One Model for Fast and Generalizable Decision-Making](https://papers.projxon.ai/entries/1018) (model, #1018)
- [How Depth Growth and Looping Shape In-Context Learning in Language Models](https://papers.projxon.ai/entries/1464) (paper, #1464)
- [Introducing OUI-1: world's first model for Generative UI](https://papers.projxon.ai/entries/703) (post, #703)
- [Reinforcing Recursive Language Models](https://papers.projxon.ai/entries/1100) (post, #1100)
- [Discussion thread on diffusion language models (Sean Welleck)](https://papers.projxon.ai/entries/757) (thread, #757)
- [Learning to Learn a Language](https://papers.projxon.ai/entries/1288) (paper, #1288)
