File size: 15,774 Bytes
f091b44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
---
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<n<100M
configs:
- config_name: mixtral-8x22b-instruct
  data_files:
  - split: train
    path: mixtral-8x22b-instruct/train-*
- config_name: qwen2.5-32b-instruct
  data_files:
  - split: train
    path: qwen2.5-32b-instruct/train-*
dataset_info:
- config_name: mixtral-8x22b-instruct
  features:
  - name: id
    dtype: string
  - name: input
    dtype: string
  - name: solution
    dtype: string
  - name: output
    dtype: string
  - name: last_operation
    dtype: string
  - name: generation_model
    dtype: string
  splits:
  - name: train
    num_bytes: 34330192247
    num_examples: 7593134
  download_size: 16733055803
  dataset_size: 34330192247
- config_name: qwen2.5-32b-instruct
  features:
  - name: id
    dtype: string
  - name: input
    dtype: string
  - name: solution
    dtype: string
  - name: output
    dtype: string
  - name: last_operation
    dtype: string
  - name: generation_model
    dtype: string
  splits:
  - name: train
    num_bytes: 24957035531
    num_examples: 7500000
  download_size: 10135336305
  dataset_size: 24957035531
---

# nvidia/OpenCodeGeneticInstruct(複製)

## データの内容

Genetic-Instruct の手法で合成した、Python のコーディング指示と解答のデータ。1 行が 1 件の質問と応答で、質問 `input`、応答全体 `output`、コードだけの `solution`、生成に使った操作 `last_operation`(mutation か crossover)と生成モデル `generation_model` を持つ。種になる問題は Tiger-Leetcode の 512 件で、生成は Mixtral-8x22B-Instruct と Qwen2.5-32B-Instruct が行った。

## データの概要

| 項目 | 値 |
|---|---|
| 行数 | 15,093,134(2 構成・2 分割の合計) |
| 列数 | 6 |
| 容量 | 26.87 GB(ファイル 33 本) |
| ファイルの形式 | parquet 31 |
| 言語 | en |
| 公開 | public |

### 構成と分割

| 構成(config) | 分割(split)ごとの行数 | 列数 |
|---|---|---:|
| `mixtral-8x22b-instruct` | `train` 7,593,134 | 6 |
| `qwen2.5-32b-instruct` | `train` 7,500,000 | 6 |

### 列(構成 `mixtral-8x22b-instruct`・分割 `train`。どの構成も同じ列)

| 列 | 型 | 先頭の行の値 |
|---|---|---|
| `id` | `string` | `617d30a7f75a4777b1def52c5bf3dcc8` |
| `input` | `string` | `Implement the __<method/function>__ 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

### ユースケース: <br>
LLM をコード生成に特化させるために LLM を訓練する開発者。 <br>

### 公開日: <br>
05/06/2025 <br>

## 想定される用途

OpenCodeInstruct データセットは、コミュニティがオープンなモデルを改善し続けるために使われることを想定している。このデータは自由に使ってモデルを訓練してよい。**ただし、利用者が使うデータセットごとに、そのライセンスが目的に適うかは利用者の責任で確かめること**。


## データセットの特性
** データ収集方法<br>
* [ハイブリッド: 自動, 合成] <br>

** ラベル付けの方法<be>
* [ハイブリッド: 自動, 合成] <br>


## データの形式
|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}, 
}
```

<details>
<summary>原文(英語)</summary>

# 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: <br>
Developers training LLMs to specialize LLMs in code generation. <br>

### Release Date:  <br>
05/06/2025 <br>

## 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<br>
* [Hybrid: Automated, Synthetic] <br>

** Labeling Method<be>
* [Hybrid: Automated, Synthetic] <br>


## 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}, 
}
```

</details>