HYUKI5's picture
nvidia/OpenCodeReasoning@20a1ca19c0d0 を複製し、カードを日本語で書く
2ac236b verified
|
Raw History Blame Contribute Delete
18.1 kB
---
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](https://huggingface.co/datasets/HYUKI5/dataset-catalog) にある。
## 複製について
[`nvidia/OpenCodeReasoning`](https://huggingface.co/datasets/nvidia/OpenCodeReasoning) をリビジョン `20a1ca19c0d050fe9057fc08339d6b370ec1c67a` の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(`convaiinnovations/laya`)の微調整に使う候補として、調査メモ(`Laya 学習用データセット調査`)に載せたデータを集めている。
## 出典
- 元のデータセット: https://huggingface.co/datasets/nvidia/OpenCodeReasoning
- 複製したリビジョン: `20a1ca19c0d050fe9057fc08339d6b370ec1c67a`(2025-05-04 23:54:22+00:00)
- 元のライセンス表記: `cc-by-4.0`
## 論文
- https://arxiv.org/abs/2504.01943
## アノテーションの方法
(元のカードに該当の見出しが無いので、ラベルの付け方に触れた段落を抜き出した)
- CodeForces の問題は http://codeforces.com から取得している。
- 問題の集合は、TACO (https://huggingface.co/datasets/BAAI/TACO)、APPS (https://huggingface.co/datasets/codeparrot/apps)、CodeContests
(https://huggingface.co/datasets/deepmind/code_contests)、open-r1/codeforces (https://huggingface.co/datasets/open-r1/codeforces) から集めている。
- CodeContests と open-r1/codeforces のテスト分割は含めていない。
- 出力の応答は R1 が生成したものである。
** ラベル付けの方法<be>
* [ハイブリッド: 自動化、合成] <br>
## 微調整に使うときの注意
- 調査メモの台帳での区分: 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)のために設計されている。
- [技術報告](https://arxiv.org/abs/2504.01943) - OpenCodeReasoning の方法論と技術的な詳細を確認できる。
- [Github リポジトリ](https://github.com/NVIDIA/NeMo-Skills) - SFT の実行に使われた完全なパイプラインにアクセスできる。
このデータセットは、商用・非商用のどちらの利用にも対応している。
## データの分布
- CodeForces の問題は http://codeforces.com から取得している。
- 問題の集合は、TACO (https://huggingface.co/datasets/BAAI/TACO)、APPS (https://huggingface.co/datasets/codeparrot/apps)、CodeContests
(https://huggingface.co/datasets/deepmind/code_contests)、open-r1/codeforces (https://huggingface.co/datasets/open-r1/codeforces) から集めている。
- CodeContests と open-r1/codeforces のテスト分割は含めていない。
- 出力の応答は R1 が生成したものである。
| 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 のみ)。|
## 使い方
次のコードでデータセットを読み込める。
```python
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"]
```
## データセットの特徴づけ
** データ収集の方法<br>
* [ハイブリッド: 自動化、合成] <br>
** ラベル付けの方法<be>
* [ハイブリッド: 自動化、合成] <br>
## ライセンスと利用規約
このデータセットは、Creative Commons Attribution 4.0 International License(CC BY 4.0)のもとで公開されている。ライセンス本文は https://creativecommons.org/licenses/by/4.0/legalcode で確認できる。
**データの開発者:** NVIDIA
### 用途: <br>
コード生成のために推論能力を蒸留する LLM を学習させる開発者。 <br>
### 公開日: <br>
04/04/2025 <br>
## データのバージョン
1.0 (04/04/2025)
## 想定される用途
OpenCodeReasoning データセットは、コミュニティが公開モデルを改良し続けるために使われることを想定している。このデータは、モデルの学習に自由に使ってよい。**ただし、利用者が使うことを選んだ各データセットについて、
そのデータセットのライセンスが意図する用途に適しているかどうかを確認する責任は利用者にある**。
## 倫理的な配慮:
NVIDIA は、信頼できる AI は共有の責任であると考えており、幅広い AI の応用の開発を可能にするための方針と慣行を定めている。利用規約に従ってダウンロードまたは使用する場合、開発者は社内のモデルチームと連携し、このモデルが関連する業界と用途の要件を満たし、予期しない製品の誤用に対処できるようにすべきである。
セキュリティ上の脆弱性や NVIDIA AI に関する懸念は[こちら](https://www.nvidia.com/en-us/support/submit-security-vulnerability/)から報告してほしい。
## 引用
このデータが役に立つ場合は、次を引用してほしい:
```
@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},
}
```
<details>
<summary>原文(英語)</summary>
# 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](https://arxiv.org/abs/2504.01943) - Discover the methodology and technical details behind OpenCodeReasoning.
- [Github Repo](https://github.com/NVIDIA/NeMo-Skills) - Access the complete pipeline used to perform SFT.
This dataset is ready for commercial/non-commercial use.
## 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 output responses are generated by R1.
| 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.
```python
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<br>
* [Hybrid: Automated, Synthetic] <br>
** Labeling Method<be>
* [Hybrid: Automated, Synthetic] <br>
## 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: <br>
Developers training LLMs to distill reasoning capabilities for code generation. <br>
### Release Date: <br>
04/04/2025 <br>
## 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](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
## 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},
}
```
</details>