HYUKI5's picture
nvidia/OpenCodeReasoning@20a1ca19c0d0 を複製し、カードを日本語で書く
2ac236b verified
|
Raw History Blame Contribute Delete
18.1 kB
metadata
license: cc-by-4.0
pretty_name: nvidia/OpenCodeReasoning (mirror)
source_datasets:
  - nvidia/OpenCodeReasoning
tags:
  - laya
  - laya-finetune
  - mirror
  - domain-code
  - use-permissive
  - genre-instruction
  - label-text
  - annot-llm
task_categories:
  - text-generation
size_categories:
  - 100K<n<1M
configs:
  - config_name: split_0
    data_files:
      - split: split_0
        path: split_0/train-*
  - config_name: split_1
    data_files:
      - split: split_1
        path: split_1/train-*
dataset_info:
  - config_name: split_0
    features:
      - name: id
        dtype: string
      - name: input
        dtype: string
      - name: output
        dtype: string
      - name: source
        dtype: string
      - name: license
        dtype: string
      - name: dataset
        dtype: string
      - name: split
        dtype: string
      - name: difficulty
        dtype: string
      - name: solution
        dtype: string
    splits:
      - name: split_0
        num_bytes: 28108469190
        num_examples: 567850
  - config_name: split_1
    features:
      - name: id
        dtype: string
      - name: input
        dtype: string
      - name: output
        dtype: string
      - name: source
        dtype: string
      - name: license
        dtype: string
      - name: dataset
        dtype: string
      - name: split
        dtype: string
      - name: difficulty
        dtype: string
      - name: solution
        dtype: string
      - name: index
        dtype: string
    splits:
      - name: split_1
        num_bytes: 4722811278
        num_examples: 167405

nvidia/OpenCodeReasoning(複製)

データの内容

競技プログラミングの問題と Python の解答のデータ。1 行が 1 件の問題に対する 1 つの応答で、応答の全体は output、そのうちコードだけが solution に入る。問題文は input に入るが、split_1 では input が - のままで、dataset・split・index から TACO や APPS を引いて補う。問題は TACO・APPS・CodeContests・open-r1/codeforces から集め、応答は R1 が生成した。

データの概要

項目 値
行数 約 752,713(2 構成・2 分割の合計)
列数 9〜10(構成による)
容量 9.73 GB(ファイル 42 本)
ファイルの形式 parquet 40
公開 public

構成と分割

構成(config) 分割(split)ごとの行数 列数
split_0 split_0 約 585,308 9
split_1 split_1 167,405 10

列(構成 split_0・分割 split_0。構成ごとに列が違う)

列 型 先頭の行の値
id string c0d4209f929db2b5bf3526a47a2520b0
input string Problem description. Vipul is a hardworking supe…
output string <think> Okay, I need to solve this problem where…
source string codechef
license string cc-by-4.0
dataset string code_contests
split string train
difficulty string UNKNOWN_DIFFICULTY
solution string T = int(input()) for _ in range(T): s = inpu…

行数と列は HF のデータセットビューアの集計(元のデータセットの現在の版で数えたもの)。全データセットの一覧は HYUKI5/dataset-catalog にある。

複製について

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

出典

論文

アノテーションの方法

(元のカードに該当の見出しが無いので、ラベルの付け方に触れた段落を抜き出した)

** ラベル付けの方法

  • [ハイブリッド: 自動化、合成]

微調整に使うときの注意

  • 調査メモの台帳での区分: A(許諾型のライセンスだけで、疑義の注記が無い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
  • Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
  • 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。

調査メモの記述

メモ 節 ライセンス(記載) 確認 注記
nvidia_nemotron.md 付録. 取得した nvidia 組織のデータセット全件の簡易一覧 (L375) cc-by-4.0 確認済 確認印なし(各ファイルの凡例により確認済扱い) / 原文注記: × 数学・コード・科学・計測

元のカード(日本語訳)

以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。


OpenCodeReasoning: Advancing Data Distillation for Competitive Coding

データの概要

OpenCodeReasoning は、コーディングのための推論ベースの合成データセットとして現時点で最大のものであり、28,319 の一意な競技プログラミングの問題にわたる Python のサンプル 735,255 件を含む。 OpenCodeReasoning は教師あり微調整(SFT)のために設計されている。

  • 技術報告 - OpenCodeReasoning の方法論と技術的な詳細を確認できる。
  • Github リポジトリ - SFT の実行に使われた完全なパイプラインにアクセスできる。

このデータセットは、商用・非商用のどちらの利用にも対応している。

データの分布

Source # Question # Sample
AIZU 2123 62,476
AtCoder 2043 47,222
CodeChef 3796 72,925
CodeForces 10069 386,948
Codewars 2493 34,326
GeeksForGeeks 2667 37,602
HackerEarth 2269 59,181
HackerRank 895 10,955
Kattis 1187 13,095
LeetCode 777 10,525
合計 28,319 735,255

データのフィールド

Field Type Description
id string 問題ごとの一意な ID
input string 入力となる競技プログラミングの問題(split_0 のみ)。split_1 では、dataset/split/index のフィールドに基づいて問題を取得する必要がある。
output string R1 の応答。
solution string R1 の応答のうち、コードの部分だけ。
dataset string 問題の収集元のデータセットの名前(例: "apps"、"taco"、"code_contests")
license string データセットに付随するライセンス(例: "mit"、"apache-2.0"、"cc-by-4.0")
split string 問題の収集元となった、データセットの分割の名前(例: "train"、"valid"、"test")
source string 競技プログラミングのプラットフォームの名前(例: CodeForces、CodeChef)
difficulty string 入力の問題の難易度のラベル。
index string APPS/TACO データセットから入力の問題を取り出すための索引(split_1 のみ)。

使い方

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

from datasets import load_dataset

ocr_ds_split_0 = load_dataset("nvidia/OpenCodeReasoning", "split_0")
print(ocr_ds_split_0)
DatasetDict({
    split_0: Dataset({
        features: ['id', 'input', 'output', 'source', 'license', 'dataset', 'split', 'difficulty', 'solution'],
        num_rows: 567850
    })
})

ocr_ds_split_1 = load_dataset("nvidia/OpenCodeReasoning", "split_1")
print(ocr_ds_split_1)
DatasetDict({
    split_1: Dataset({
        features: ['id', 'index', 'input', 'output', 'source', 'license', 'dataset', 'split', 'difficulty', 'solution'],
        num_rows: 167405
    })
})

datasets = {
    "taco": load_dataset("BAAI/TACO"),
    "apps": load_dataset("codeparrot/apps")
}
for item in tqdm(ocr_ds_split_1["train"]):
    assert item["input"] == "-"
    assert item["dataset"] in ["taco", "apps"]
    item["input"] = datasets[item["dataset"]][item["split"]][int(item["index"])]["question"]

データセットの特徴づけ

** データ収集の方法

  • [ハイブリッド: 自動化、合成]

** ラベル付けの方法

  • [ハイブリッド: 自動化、合成]

ライセンスと利用規約

このデータセットは、Creative Commons Attribution 4.0 International License(CC BY 4.0)のもとで公開されている。ライセンス本文は https://creativecommons.org/licenses/by/4.0/legalcode で確認できる。

データの開発者: NVIDIA

用途:

コード生成のために推論能力を蒸留する LLM を学習させる開発者。

公開日:

04/04/2025

データのバージョン

1.0 (04/04/2025)

想定される用途

OpenCodeReasoning データセットは、コミュニティが公開モデルを改良し続けるために使われることを想定している。このデータは、モデルの学習に自由に使ってよい。ただし、利用者が使うことを選んだ各データセットについて、 そのデータセットのライセンスが意図する用途に適しているかどうかを確認する責任は利用者にある。

倫理的な配慮:

NVIDIA は、信頼できる AI は共有の責任であると考えており、幅広い AI の応用の開発を可能にするための方針と慣行を定めている。利用規約に従ってダウンロードまたは使用する場合、開発者は社内のモデルチームと連携し、このモデルが関連する業界と用途の要件を満たし、予期しない製品の誤用に対処できるようにすべきである。

セキュリティ上の脆弱性や NVIDIA AI に関する懸念はこちらから報告してほしい。

引用

このデータが役に立つ場合は、次を引用してほしい:

@article{ahmad2025opencodereasoning,
      title={OpenCodeReasoning: Advancing Data Distillation for Competitive Coding}, 
      author={Wasi Uddin Ahmad, Sean Narenthiran, Somshubra Majumdar, Aleksander Ficek, Siddhartha Jain, Jocelyn Huang, Vahid Noroozi, Boris Ginsburg},
      year={2025},
      eprint={2504.01943},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2504.01943}, 
}
原文(英語)

OpenCodeReasoning: Advancing Data Distillation for Competitive Coding

Data Overview

OpenCodeReasoning is the largest reasoning-based synthetic dataset to date for coding, comprises 735,255 samples in Python across 28,319 unique competitive programming questions. OpenCodeReasoning is designed for supervised fine-tuning (SFT).

  • Technical Report - Discover the methodology and technical details behind OpenCodeReasoning.
  • Github Repo - Access the complete pipeline used to perform SFT.

This dataset is ready for commercial/non-commercial use.

Data distribution

Source # Question # Sample
AIZU 2123 62,476
AtCoder 2043 47,222
CodeChef 3796 72,925
CodeForces 10069 386,948
Codewars 2493 34,326
GeeksForGeeks 2667 37,602
HackerEarth 2269 59,181
HackerRank 895 10,955
Kattis 1187 13,095
LeetCode 777 10,525
Total 28,319 735,255

Data Fields

Field Type Description
id string A unique id for each question
input string The input competitive programming question (split_0 only). For split_1, user needs to get the question based on the dataset/split/index fields.
output string R1's response.
solution string Only the code portion of R1's response.
dataset string The name of the dataset from which this question is collected from (e.g., "apps", "taco", "code_contests")
license string The license associated with the dataset (e.g., "mit", "apache-2.0", "cc-by-4.0")
split string The name of the split of the dataset from which this question is collected from (e.g., "train", "valid", "test")
source string The name of the competitive programming platform (e.g., CodeForces, CodeChef)
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 split_1).

How to use it

You can load the dataset with the following lines of code.

from datasets import load_dataset

ocr_ds_split_0 = load_dataset("nvidia/OpenCodeReasoning", "split_0")
print(ocr_ds_split_0)
DatasetDict({
    split_0: Dataset({
        features: ['id', 'input', 'output', 'source', 'license', 'dataset', 'split', 'difficulty', 'solution'],
        num_rows: 567850
    })
})

ocr_ds_split_1 = load_dataset("nvidia/OpenCodeReasoning", "split_1")
print(ocr_ds_split_1)
DatasetDict({
    split_1: Dataset({
        features: ['id', 'index', 'input', 'output', 'source', 'license', 'dataset', 'split', 'difficulty', 'solution'],
        num_rows: 167405
    })
})

datasets = {
    "taco": load_dataset("BAAI/TACO"),
    "apps": load_dataset("codeparrot/apps")
}
for item in tqdm(ocr_ds_split_1["train"]):
    assert item["input"] == "-"
    assert item["dataset"] in ["taco", "apps"]
    item["input"] = datasets[item["dataset"]][item["split"]][int(item["index"])]["question"]

Dataset Characterization

** Data Collection Method

  • [Hybrid: Automated, Synthetic]

** Labeling Method

  • [Hybrid: Automated, Synthetic]

License/Terms of Use

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 distill reasoning capabilities for code generation.

Release Date:

04/04/2025

Data Version

1.0 (04/04/2025)

Intended use

The OpenCodeReasoning 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 an 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.

Citation

If you find the data useful, please cite:

@article{ahmad2025opencodereasoning,
      title={OpenCodeReasoning: Advancing Data Distillation for Competitive Coding}, 
      author={Wasi Uddin Ahmad, Sean Narenthiran, Somshubra Majumdar, Aleksander Ficek, Siddhartha Jain, Jocelyn Huang, Vahid Noroozi, Boris Ginsburg},
      year={2025},
      eprint={2504.01943},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2504.01943}, 
}