--- license: cc-by-4.0 pretty_name: nvidia/OpenCodeGeneticInstruct (mirror) source_datasets: - nvidia/OpenCodeGeneticInstruct tags: - laya - laya-finetune - mirror - domain-code - use-permissive - genre-instruction - label-text - annot-llm - lang-en language: - en size_categories: - 10M__ pattern, aft…` | | `solution` | `string` | `import threading import time class Calculator: …` | | `output` | `string` | `The described problem can be solved by using the…` | | `last_operation` | `string` | `mutation` | | `generation_model` | `string` | `Mixtral-8x22B-Instruct` | 行数と列は HF のデータセットビューアの集計(元のデータセットの現在の版で数えたもの)。全データセットの一覧は [HYUKI5/dataset-catalog](https://huggingface.co/datasets/HYUKI5/dataset-catalog) にある。 ## 複製について [`nvidia/OpenCodeGeneticInstruct`](https://huggingface.co/datasets/nvidia/OpenCodeGeneticInstruct) をリビジョン `9c95d36eb47c3d8482066282112ad3d057b9ed51` の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(`convaiinnovations/laya`)の微調整に使う候補として、調査メモ(`Laya 学習用データセット調査`)に載せたデータを集めている。 ## 出典 - 元のデータセット: https://huggingface.co/datasets/nvidia/OpenCodeGeneticInstruct - 複製したリビジョン: `9c95d36eb47c3d8482066282112ad3d057b9ed51`(2025-05-23 00:13:04+00:00) - 元のライセンス表記: `cc-by-4.0` ## 論文 - https://arxiv.org/abs/2407.21077 ## アノテーションの方法 **データセットの作成期間** 2025 年 1 月〜2025 年 3 月 ## 微調整に使うときの注意 - 調査メモの台帳での区分: A(許諾型のライセンスだけで、疑義の注記が無い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。 - Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。 - 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。 ## 調査メモの記述 | メモ | 節 | ライセンス(記載) | 確認 | 注記 | |---|---|---|---|---| | `nvidia_nemotron.md` | 付録. 取得した nvidia 組織のデータセット全件の簡易一覧 (L401) | cc-by-4.0 | 確認済 | 確認印なし(各ファイルの凡例により確認済扱い) / 原文注記: × 数学・コード・科学・計測 | ## 元のカード(日本語訳) 以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。 --- # OpenCodeGeneticInstruct: コードを生成する LLM の能力を高めるための、大規模なコーディング指示のデータセット ## データの概要 OpenCodeGeneticInstruct は、Genetic-Instruct [1] の手法で合成的に生成された、Python のコーディング指示を 1,500 万件以上含む。このデータセットは、LLM のコード生成能力を高めるための教師あり微調整(SFT)に使える。各サンプルは、コーディングの質問または指示と、その答えからなる。答えには Python によるコードの解答が含まれる。 - [論文](https://arxiv.org/abs/2407.21077) - OpenCodeGeneticInstruct の方法論と技術的詳細を確認できる。 - [Github リポジトリ](https://github.com/NVIDIA/NeMo-Skills) - SFT の実験に使われた完全なパイプラインを参照できる。 このデータセットは商用・非商用のどちらでも利用できる。 ## データの分布 - このデータセットの生成では、初期集団として Tiger-Leetcode [TigerResearch. 2023. Tigerbot kaggle leetcode solutions dataset (english) - 2k. https://huggingface.co/datasets/TigerResearch/tigerbot-kaggle-leetcodesolutions-en-2k.] のコレクションから 512 件のサンプルを使った。 - 2 つの生成モデル、Mixtral-8x22B-Instruct と Qwen2.5-32B-Instruct を使ってサンプルを生成した。 | Generation Model | # Seed | # Sample | |:--------------------------|:-----------|:-----------| | Mixtral-8x22B-Instruct | 512 | 7,593,134 | | Qwen2.5-32B-Instruct | 512 | 7,000,000 | | 合計 | 512 | 15,093,134 | ## データセットの提供者 NVIDIA Corporation ## データセットの作成期間 2025 年 1 月〜2025 年 3 月 ## ライセンス・利用条件 準拠規約: このデータセットは [Creative Commons Attribution 4.0 International License(CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode) のもとで提供される。 **データの開発者:** NVIDIA ### ユースケース:
LLM をコード生成に特化させるために LLM を訓練する開発者。
### 公開日:
05/06/2025
## 想定される用途 OpenCodeInstruct データセットは、コミュニティがオープンなモデルを改善し続けるために使われることを想定している。このデータは自由に使ってモデルを訓練してよい。**ただし、利用者が使うデータセットごとに、そのライセンスが目的に適うかは利用者の責任で確かめること**。 ## データセットの特性 ** データ収集方法
* [ハイブリッド: 自動, 合成]
** ラベル付けの方法 * [ハイブリッド: 自動, 合成]
## データの形式 |Field|Type|Description| |:---|:---|:---| |id|string|質問ごとの一意な ID| |input|string|競技プログラミングの入力となる質問| |output|string|モデルの応答。| |solution|string|モデルの応答のうち、コードの部分だけ。| |last_operation|string|この質問を生成するのに使われた操作(mutation、crossover)。| |generation_model|string|この質問や応答を生成するのに使われたモデル(Mixtral-8x22B-Instruct、Qwen2.5-32B-Instruct)。| ## 使い方 次のコードでデータセットを読み込める。 ```python from datasets import load_dataset ds_mixtral = load_dataset("nvidia/OpenCodeGeneticInstruct", name="mixtral-8x22b-instruct", split="train") print(ds_mixtral) ## output: ## Dataset({ ## features: ['id', 'input', 'solution', 'output', 'operation', 'model'], ## num_rows: 7593134 ## }) ds_qwen = load_dataset("nvidia/OpenCodeGeneticInstruct", name="qwen2.5-32b-instruct", split="train") print(ds_qwen) ## output: ## Dataset({ ## features: ['id', 'input', 'solution', 'output', 'operation', 'model'], ## num_rows: 7500000 ##}) ``` ## データ量 - レコード数 - 1,500 万件の、コーディングの質問と答えのペア。 - ダウンロードサイズ - 25 GB ## 倫理的配慮: NVIDIA は、信頼できる AI は共同の責任であると考えており、多様な AI 応用の開発を可能にする方針と慣行を整えている。ダウンロードして利用規約に従って使う場合、開発者は社内のモデルチームと協力して、このモデルが関連する業界と用途の要件を満たすこと、そして想定外の製品上の誤用に対処することを確かめるべきである。 セキュリティの脆弱性や NVIDIA の AI に関する懸念は [こちら](https://www.nvidia.com/en-us/support/submit-security-vulnerability/) から報告してほしい。 ## 引用 データが有用だった場合は、次の文献を引用してほしい。 ``` [1] @article{majumdar2025geneticinstructscalingsynthetic, title = {Genetic Instruct: Scaling up Synthetic Generation of Coding Instructions for Large Language Models}, author = {Somshubra Majumdar, Vahid Noroozi, Mehrzad Samadi, Sean Narenthiran, Aleksander Ficek, Wasi Uddin Ahmad, Jocelyn Huang, Jagadeesh Balam, Boris Ginsburg}, year={2025}, eprint={2407.21077}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2407.21077}, } ```
原文(英語) # OpenCodeGeneticInstruct: A large-scale dataset of coding instructions for improving the code generation capabilities of LLMs ## Data Overview OpenCodeGeneticInstruct comprises more than 15M coding instructions in python which is generated synthetically with the Genetic-Instruct [1] approach. This dataset can be used for supervised fine-tuning (SFT) of LLMs to improve their code genearation capability. Each sample includes a coding question/instruction and its corrsponding answer. The answer contains the coding solution in Python. - [Paper](https://arxiv.org/abs/2407.21077) - Discover the methodology and technical details behind OpenCodeGeneticInstruct. - [Github Repo](https://github.com/NVIDIA/NeMo-Skills) - Access the complete pipeline used to perform the SFT experiments. This dataset can be used for commercial/non-commercial use. ## Data distribution - We use 512 samples from the Tiger-Leetcode [TigerResearch. 2023. Tigerbot kaggle leetcode solutions dataset (english) - 2k. https://huggingface.co/datasets/TigerResearch/tigerbot-kaggle-leetcodesolutions-en-2k.] collection as the initial population to generate this dataset. - Two genearation models, Mixtral-8x22B-Instruct and Qwen2.5-32B-Instruct, are used to generate the samples. | Generation Model | # Seed | # Sample | |:--------------------------|:-----------|:-----------| | Mixtral-8x22B-Instruct | 512 | 7,593,134 | | Qwen2.5-32B-Instruct | 512 | 7,000,000 | | Total | 512 | 15,093,134 | ## Dataset Owner(s) NVIDIA Corporation ## Dataset Creation Date January 2025 - March 2025 ## License/Terms of Use 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. **Data Developer:** NVIDIA ### Use Case:
Developers training LLMs to specialize LLMs in code generation.
### Release Date:
05/06/2025
## Intended Usage The OpenCodeInstruct 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, for each dataset a user elects to use, the user is responsible for checking if the dataset license is fit for the intended purpose**. ## Dataset Characterization ** Data Collection Method
* [Hybrid: Automated, Synthetic]
** Labeling Method * [Hybrid: Automated, Synthetic]
## Dataset Format |Field|Type|Description| |:---|:---|:---| |id|string|A unique id for each question| |input|string|The input competitive programming question | |output|string|Model's response.| |solution|string|Only the code portion of Model's response.| |last_operation|string|Operation used to generate this question (mutation, crossover).| |generation_model|string|Model used to generate this question/response (Mixtral-8x22B-Instruct, Qwen2.5-32B-Instruct).| ## How to use it You can load the dataset with the following lines of code. ```python from datasets import load_dataset ds_mixtral = load_dataset("nvidia/OpenCodeGeneticInstruct", name="mixtral-8x22b-instruct", split="train") print(ds_mixtral) ## output: ## Dataset({ ## features: ['id', 'input', 'solution', 'output', 'operation', 'model'], ## num_rows: 7593134 ## }) ds_qwen = load_dataset("nvidia/OpenCodeGeneticInstruct", name="qwen2.5-32b-instruct", split="train") print(ds_qwen) ## output: ## Dataset({ ## features: ['id', 'input', 'solution', 'output', 'operation', 'model'], ## num_rows: 7500000 ##}) ``` ## Dataset Quantification - Record Count - 15 million coding question-answer pairs. - Download Size - 25 GB ## 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/). ## Citation If you find the data useful, please cite: ``` [1] @article{majumdar2025geneticinstructscalingsynthetic, title = {Genetic Instruct: Scaling up Synthetic Generation of Coding Instructions for Large Language Models}, author = {Somshubra Majumdar, Vahid Noroozi, Mehrzad Samadi, Sean Narenthiran, Aleksander Ficek, Wasi Uddin Ahmad, Jocelyn Huang, Jagadeesh Balam, Boris Ginsburg}, year={2025}, eprint={2407.21077}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2407.21077}, } ```