HYUKI5's picture
nvidia/OpenCodeGeneticInstruct@9c95d36eb47c を複製し、カードを日本語で書く
f091b44 verified
|
Raw History Blame Contribute Delete
15.8 kB
metadata
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 にある。

複製について

nvidia/OpenCodeGeneticInstruct をリビジョン 9c95d36eb47c3d8482066282112ad3d057b9ed51 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。

出典

論文

アノテーションの方法

データセットの作成期間

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 によるコードの解答が含まれる。

  • 論文 - OpenCodeGeneticInstruct の方法論と技術的詳細を確認できる。
  • Github リポジトリ - SFT の実験に使われた完全なパイプラインを参照できる。

このデータセットは商用・非商用のどちらでも利用できる。

データの分布

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) のもとで提供される。

データの開発者: 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)。

使い方

次のコードでデータセットを読み込める。

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 に関する懸念は こちら から報告してほしい。

引用

データが有用だった場合は、次の文献を引用してほしい。

[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 - Discover the methodology and technical details behind OpenCodeGeneticInstruct.
  • Github Repo - Access the complete pipeline used to perform the SFT experiments.

This dataset can be used for commercial/non-commercial use.

Data distribution

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.

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.

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