Update dataset card: Add paper link, correct size category, and enhance tags
#3
by nielsr HF Staff - opened
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263643 unmodified lines686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710813 unmodified lines12212312412512612712812913013118 unmodified lines15015115215315415515615715815916016116216316416516616713 unmodified lines1811821831841851861871881891901915 unmodified lines1971981992002012022034 unmodified lines208209210211212213214215216217218219220221222223224225226227---license: cc-by-4.0size_categories:- 100K<n<1Mpretty_name: OpenCodeReasoning-2dataset_info:- config_name: trainfeatures:- name: questiondtype: string- name: r1_generationdtype: string- name: qwq_critiquedtype: string- name: solutiondtype: string- name: judgementdtype: string- name: pass_ratedtype: string- name: sourcedtype: string- name: licensedtype: string- name: datasetdtype: string- name: splitdtype: string- name: difficultydtype: string- name: indexdtype: string- name: iddtype: string- name: question_iddtype: stringsplits:- name: pythonnum_bytes: 72296224095num_examples: 1398166- name: cppnum_bytes: 44739645805num_examples: 1174475configs:- config_name: traindata_files:- split: pythonpath: train/python/train-*- split: cpppath: train/cpp/train-*task_categories:- text-generationtags:- synthetic---# OpenCodeReasoning-2: A Large-scale Dataset for Reasoning in Code Generation and Critique## Dataset DescriptionOpenCodeReasoning-2 is the largest reasoning-based synthetic dataset to date for coding, comprising 1.4M samples in Python and 1.1M samples in C++ across 34,799 unique competitive programming questions.OpenCodeReasoning-2 is designed for supervised fine-tuning (SFT) tasks of code completion and code critique.- [Github Repo](https://github.com/NVIDIA/NeMo-Skills) - Access the complete pipeline used to perform SFT.3 unmodified lines## Data distribution- The CodeForces problems are sourced from http://codeforces.com.- The question collections are gathered from TACO (https://huggingface.co/datasets/BAAI/TACO), APPS (https://huggingface.co/datasets/codeparrot/apps), CodeContests(https://huggingface.co/datasets/deepmind/code_contests), and open-r1/codeforces (https://huggingface.co/datasets/open-r1/codeforces).- We do not include the test split of CodeContests and open-r1/codeforces.- The solution responses are generated by R1 and critique responses are generated by QwQ.### Python| Source | # Question | #Sample ||:---------------|:-----------|:-------------|| AIZU | 2150 | 71,681 || AtCoder | 2080 | 64,468 || CodeChef | 3869 | 120,040 || CodeForces | 15641 | 834,523 || Codewars | 2506 | 79,771 || GeeksForGeeks | 2670 | 58,154 || HackerEarth | 2285 | 73,559 || HackerRank | 912 | 26,106 || Kattis | 1235 | 39,938 || LeetCode | 777 | 29,926 || Total | 34,125 | 1,398,166 |### C++| Source | # Question | #Sample ||:---------------|:-----------|:-------------|| AIZU | 2067 | 35,471 || AtCoder | 1988 | 62,493 || CodeChef | 3830 | 171,882 || CodeForces | 11887 | 355,180 || Codewars | 2492 | 155,162 || GeeksForGeeks | 2668 | 167,610 || HackerEarth | 2273 | 82,765 || HackerRank | 903 | 43,867 || Kattis | 1209 | 49,699 || LeetCode | 775 | 50,346 || Total | 30,092 | 1,174,475 |## Data Fields|Field|Type|Description|13 unmodified lines|difficulty|string|A difficulty label for the input question.||index|string|An index to retrieve the input question from APPS/TACO dataset (only available for train-extra split).|## How to use it```from tqdm import tqdmfrom datasets import load_dataset18 unmodified linesreturn Nonequestion = benchmark["description"]if benchmark["input_format"]:question += "\n\nInput\n\n" + benchmark["input_format"]if benchmark["output_format"]:question += "\n\nOutput\n\n" + benchmark["output_format"]if benchmark["examples"]:question += "\n\nExamples"for example in benchmark["examples"]:if "input" in example:question += "\n\nInput\n\n" + example["input"]if "output" in example:question += "\n\nOutput\n\n" + example["output"]if benchmark["note"]:question += "\n\nNote\n\n" + benchmark["note"]return questionreturn None13 unmodified lines## Dataset Owner(s)NVIDIA Corporation## Dataset Creation DateMarch 2025 - May 2025## License/Terms of UseGOVERNING TERMS: GOVERNING TERMS: This dataset is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0) available at https://creativecommons.org/licenses/by/4.0/legalcode.5 unmodified lines### Use Case: <br>Developers training Large Language Models (LLMs) to specialize LLMs in code generation and code critique. <br>### Release Date: <br>05/15/2025 <br>## Data Version4 unmodified lines** Data Collection Method<br>* [Hybrid: Automated, Synthetic] <br>** Labeling Method<be>* [Hybrid: Automated, Synthetic] <br>## Intended UsageThe OpenCodeReasoning-2 Dataset is intended to be used by the community to continue to improve open models. The data may be freely used to train models. **However, foreach dataset a user elects to use, the user is responsible for checking if the dataset license is fit for the intended purpose**.## Ethical Considerations:NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970713 unmodified lines7576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311413 unmodified lines12812913013113213313413513618 unmodified lines15515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319413 unmodified lines2082092102112122132142152165 unmodified lines2222232242252262272284 unmodified lines233234235236237238239240241242243244245246247248---license: cc-by-4.0size_categories:- 1M<n<10Mtask_categories:- text-generationpretty_name: OpenCodeReasoning-2library_name: datasetsdataset_info:- config_name: trainfeatures:- name: questiondtype: string- name: r1_generationdtype: string- name: qwq_critiquedtype: string- name: solutiondtype: string- name: judgementdtype: string- name: pass_ratedtype: string- name: sourcedtype: string- name: licensedtype: string- name: datasetdtype: string- name: splitdtype: string- name: difficultydtype: string- name: indexdtype: string- name: iddtype: string- name: question_iddtype: stringsplits:- name: pythonnum_bytes: 72296224095num_examples: 1398166- name: cppnum_bytes: 44739645805num_examples: 1174475configs:- config_name: traindata_files:- split: pythonpath: train/python/train-*- split: cpppath: train/cpp/train-*tags:- synthetic- code-generation- code-critique- reasoning- competitive-programming---# OpenCodeReasoning-2: A Large-scale Dataset for Reasoning in Code Generation and CritiqueThe dataset was introduced in the paper [OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique](https://huggingface.co/papers/2507.09075).## Dataset DescriptionOpenCodeReasoning-2 is the largest reasoning-based synthetic dataset to date for coding, comprising 1.4M samples in Python and 1.1M samples in C++ across 34,799 unique competitive programming questions.OpenCodeReasoning-2 is designed for supervised fine-tuning (SFT) tasks of code completion and code critique.- [Github Repo](https://github.com/NVIDIA/NeMo-Skills) - Access the complete pipeline used to perform SFT.3 unmodified lines## Data distribution- The CodeForces problems are sourced from http://codeforces.com.- The question collections are gathered from TACO (https://huggingface.co/datasets/BAAI/TACO), APPS (https://huggingface.co/datasets/codeparrot/apps), CodeContests(https://huggingface.co/datasets/deepmind/code_contests), and open-r1/codeforces (https://huggingface.co/datasets/open-r1/codeforces).- We do not include the test split of CodeContests and open-r1/codeforces.- The solution responses are generated by R1 and critique responses are generated by QwQ.### Python| Source | # Question | #Sample ||:---------------|:-----------|:-------------|| AIZU | 2150 | 71,681 || AtCoder | 2080 | 64,468 || CodeChef | 3869 | 120,040 || CodeForces | 15641 | 834,523 || Codewars | 2506 | 79,771 || GeeksForGeeks | 2670 | 58,154 || HackerEarth | 2285 | 73,559 || HackerRank | 912 | 26,106 || Kattis | 1235 | 39,938 || LeetCode | 777 | 29,926 || Total | 34,125 | 1,398,166 |### C++| Source | # Question | #Sample ||:---------------|:-----------|:-------------|| AIZU | 2067 | 35,471 || AtCoder | 1988 | 62,493 || CodeChef | 3830 | 171,882 || CodeForces | 11887 | 355,180 || Codewars | 2492 | 155,162 || GeeksForGeeks | 2668 | 167,610 || HackerEarth | 2273 | 82,765 || HackerRank | 903 | 43,867 || Kattis | 1209 | 49,699 || LeetCode | 775 | 50,346 || Total | 30,092 | 1,174,475 |## Data Fields|Field|Type|Description|13 unmodified lines|difficulty|string|A difficulty label for the input question.||index|string|An index to retrieve the input question from APPS/TACO dataset (only available for train-extra split).|## How to use it```pythonfrom tqdm import tqdmfrom datasets import load_dataset18 unmodified linesreturn Nonequestion = benchmark["description"]if benchmark["input_format"]:question += "Input" + benchmark["input_format"]if benchmark["output_format"]:question += "Output" + benchmark["output_format"]if benchmark["examples"]:question += "Examples"for example in benchmark["examples"]:if "input" in example:question += "Input" + example["input"]if "output" in example:question += "Output" + example["output"]if benchmark["note"]:question += "Note" + benchmark["note"]return questionreturn None13 unmodified lines## Dataset Owner(s)NVIDIA Corporation## Dataset Creation DateMarch 2025 - May 2025## License/Terms of UseGOVERNING TERMS: GOVERNING TERMS: This dataset is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0) available at https://creativecommons.org/licenses/by/4.0/legalcode.5 unmodified lines### Use Case: <br>Developers training Large Language Models (LLMs) to specialize LLMs in code generation and code critique. <br>### Release Date: <br>05/15/2025 <br>## Data Version4 unmodified lines** Data Collection Method<br>* [Hybrid: Automated, Synthetic] <br>** Labeling Method<br>* [Hybrid: Automated, Synthetic] <br>## Intended UsageThe OpenCodeReasoning-2 Dataset is intended to be used by the community to continue to improve open models. The data may be freely used to train models. **However, foreach dataset a user elects to use, the user is responsible for checking if the dataset license is fit for the intended purpose**.## Ethical Considerations:NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
README.md+109-88