Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: Couldn't cast array of type
string
to
{'test_code': Value('string'), 'test_entry_point': Value('string')}
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2315, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2121, in cast_array_to_feature
casted_array_values = _c(array.values, feature.feature)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2071, in cast_array_to_feature
_c(children[name] if name in array_fields else null_array, subfeature)
~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2071, in cast_array_to_feature
_c(children[name] if name in array_fields else null_array, subfeature)
~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2161, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
TypeError: Couldn't cast array of type
string
to
{'test_code': Value('string'), 'test_entry_point': Value('string')}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
messages list |
|---|
[
{
"content": "Let the set $A=\\{1,2,3\\}$, and the set $B=\\{0,1,2\\}$. Then, the number of elements in $A\\cup B$ is $(\\quad)$.\n\nA: $2$\n\nB: $3$\n\nC: $4$\n\nD: $5$",
"info": {
"answer_content": null,
"reference_answer": "C",
"source": "openR1Math_extended",
"test_case": null,
... |
[
{
"content": "The extreme value points of the function $f(x) = \\frac {1}{3} x^3 - \\frac {1}{4} x^4$ in the interval (0, 3) are __________.",
"info": {
"answer_content": null,
"reference_answer": "x = 1",
"source": "openR1Math_extended",
"test_case": null,
"think_content": nul... |
[
{
"content": "Given the power function $f(x) = x^{9-3m}$ $(m \\in N^*)$ whose graph is symmetric about the origin and is monotonically increasing on $\\mathbb{R}$.\n\n$(1)$ Find the expression for $f(x)$; \n$(2)$ Find the range of values for $a$ that satisfies $f(a+1) + f(3a-4) < 0$.",
"info": {
"ans... |
[
{
"content": "A certain school initiated a charity book donation activity called \"A Dream of Reading for Children in Poor Areas\". Within a short week, a large number of books were donated by students. A random survey was conducted on the donation situation of some students, and the collected data is summarize... |
[
{
"content": "In an isosceles triangle, one side length is $6$ and the other side length is $14$. What is the perimeter of the triangle?\n\nA: $26$\n\nB: $26$ or $34$\n\nC: $34$\n\nD: $20$",
"info": {
"answer_content": null,
"reference_answer": "C",
"source": "openR1Math_extended",
"... |
[
{
"content": "If $a-3b=-3$, then the value of the algebraic expression $5-a+3b$ is ( )\nA: 0\nB: 2\nC: 5\nD: 8",
"info": {
"answer_content": null,
"reference_answer": "D",
"source": "openR1Math_extended",
"test_case": null,
"think_content": null
},
"role": "user"
},
... |
[
{
"content": "Let's consider the following statements:\n- For statement A: The function $f(x) = |x^2 + mx + n|$ has four monotonic intervals.\n- For statement B: The function $g(x) = \\log(x^2 + mx + n)$ has its range as $\\mathbb{R}$.\n\nThen, statement A is to statement B as ( )\n\nA: A sufficient but not nec... |
[
{
"content": "There are 3 girls and 5 boys standing in a row.\n\n(1) If all the girls stand together, how many different arrangements are there?\n\n(2) If no two girls stand next to each other, how many different arrangements are there?",
"info": {
"answer_content": null,
"reference_answer": "14... |
[
{
"content": "6. Which of the following numbers cannot be expressed as the difference of squares of two natural numbers?\nA. 2021\nB. 2020\nC. 2019\nD. 2018\nE. 2017",
"info": {
"answer_content": null,
"reference_answer": "D",
"source": "openR1Math_extended",
"test_case": null,
... |
[
{
"content": "Let non-zero vectors $\\vec{a}$ and $\\vec{b}$ satisfy $|\\vec{a}| = |\\vec{b}|$. If $(2\\vec{a} + \\vec{b}) \\cdot \\vec{b} = 0$, then the angle between vectors $\\vec{a}$ and $\\vec{b}$ is $\\_\\_\\_\\_\\_\\_\\_\\_$.",
"info": {
"answer_content": null,
"reference_answer": "120^\\... |
[
{
"content": "Given the function $$f(x)=- \\frac {1}{2}x^{2}+1$$, where $x \\in \\mathbb{R}$.\n1. Find the equation of the tangent line to the function's graph that passes through the point (1,1).\n2. Calculate the area of the closed figure formed by the graph of function $f(x)$ and the line $y=-1$.",
"info... |
a-m-team/AM-DeepSeek-R1-Distilled-1.4M(複製)
データの内容
中国語と英語の、推論モデルの応答を集めた大規模なデータ。1 行が 1 件の会話で、messages の各メッセージに role と content があり、info に出所(source)や参照解答(reference_answer)が入る。全 140 万件のうち 50 万件は他のオープンソースのデータセットで蒸留され、90 万件は AM チームが DeepSeek-R1-671B から蒸留したもの。カードの限界の節には、厳密には検証していないとある。
データの概要
| 項目 | 値 |
|---|---|
| 行数・列数 | 不明(データセットビューアで読めない形式。ファイルの内訳だけを示す) |
| 容量 | 39.62 GB(ファイル 9 本) |
| ファイルの形式 | jsonl 3、jsonl.zst 3、jpeg 1 |
| 言語 | zh, en |
| 公開 | public |
全データセットの一覧は HYUKI5/dataset-catalog にある。
複製について
a-m-team/AM-DeepSeek-R1-Distilled-1.4M をリビジョン 53531c06634904118a2dcd83961918c4d69d1cdf の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。
出典
- 元のデータセット: https://huggingface.co/datasets/a-m-team/AM-DeepSeek-R1-Distilled-1.4M
- 複製したリビジョン:
53531c06634904118a2dcd83961918c4d69d1cdf(2025-03-30 01:30:08+00:00) - 元のライセンス表記:
cc-by-nc-4.0
論文
- https://arxiv.org/abs/2503.19633
- https://github.com/a-m-team/a-m-models/blob/main/docs/AM-DeepSeek-R1-Distilled-Dataset.pdf
アノテーションの方法
(元のカードに該当の見出しが無いので、ラベルの付け方に触れた段落を抜き出した)
- AM-DeepSeek-R1-Distilled-1.4M: 推論の過程(reasoning traces)を含む、中国語と英語のオープンソースのデータセット(140 万件)。
- 50 万件のデータはすべてオープンソースのデータセットに由来し、90 万件のデータは AM チームが DeepSeek-R1-671B から蒸留したものである。これは、応答の出典にある "am-0309" で確認できる。
- データの処理:
- 指示の部分: 大規模言語モデルを使い、すべての指示を難度とカテゴリで採点した。次に、難度とカテゴリのラベルに従ってデータを絞り込み、厳密な意味的重複除去を行い、指示の質と多様性を確保した。
- 応答の部分: 一部のデータを、ルールと大規模言語モデルの両方を使い、それぞれ参照答えで検証した。テストケースのあるコードのデータは、サンドボックスで検証した。加えて、報酬モデルで生成されたすべての結果を採点し、ルールと報酬モデルに基づく棄却サンプリング(rejection sampling)を行った。
出典
- オープンソースのデータ: 既存のデータセットの指示と推論の過程。
- AM の蒸留データ: オープンソースのデータセットから得た高品質な指示に、DeepSeek-R1 が生成した推論の過程と解答を加えたもの。
指示の出典
出典 件数 natural_reasoning 319085 InfinityInstruct 306675 KodCode 210838 Dolphin - R1 63921 openR1Math_extended 63290 NuminaMath_1.5 62446 openR1Math_default 62239 codeio 55176 GeneralThought - Feb25 50600 openThoughts 34620 OpenCoder 22249 data_ablation_full59K 14155 MetaMathQA 14083 ... ...
微調整に使うときの注意
- 調査メモの台帳での区分: C(NC・ND・研究専用・評価専用など、商用の利用を妨げうる記載がある)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。
調査メモの記述
| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|---|---|---|---|---|
open_weight_reasoning_logs.md |
Q1. 数学・コード以外(一般チャット・科学・社会・指示追従)を含む大規模蒸留データは何があり、トレースはどのモデル由来か (L22) | cc-by-nc-4.0 | 確認済 | 原文注記: カードの Limitation に「厳密には検証していない」と明記。ルール・LLM・報酬モデルのどれで検証した行かは行ごとには分からない |
元のカード(日本語訳)
以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。
他のオープンソースのデータセット、モデル、方法論は、GitHub リポジトリ を参照すること。
AM-DeepSeek-R1-Distilled-1.4M は、高品質で難度の高い推論問題から成る、大規模な汎用の推論タスクのデータセットである。問題は多数のオープンソースのデータセットから集められ、意味的に重複を除き、テストセットの混入を取り除くよう整えられている。データ内のすべての応答は推論モデル(主に DeepSeek-R1)から蒸留されており、厳密な検証を経ている。数学の問題は答え合わせで、コードの問題はテストケースで、その他のタスクは報酬モデルの評価で検証される。具体的には、am_0.5M.jsonl の応答は他のオープンソースのデータセットで蒸留されたものであり、am_0.9M.jsonl の応答は AM チーム が DeepSeek-R1-671B から蒸留したものである。
モデルの学習によってこのデータセットを検証し、有効であること、DeepSeek チームの蒸留モデルに匹敵する性能を示すことを確かめた。詳細は、技術レポート 1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Traning にある。
この 140 万の問題と応答を研究コミュニティに公開する。目的は、推論を重視する強力な大規模言語モデル(LLM)の進歩を促すことである。オープンソースのコミュニティに心から感謝する。その支えがなければ、ここまで来ることはなかった。
このデータセットに基づくモデルの学習性能
規模と構成
- AM-DeepSeek-R1-Distilled-1.4M: 推論の過程(reasoning traces)を含む、中国語と英語のオープンソースのデータセット(140 万件)。
- 50 万件のデータはすべてオープンソースのデータセットに由来し、90 万件のデータは AM チームが DeepSeek-R1-671B から蒸留したものである。これは、応答の出典にある "am-0309" で確認できる。
- データの処理:
- 指示の部分: 大規模言語モデルを使い、すべての指示を難度とカテゴリで採点した。次に、難度とカテゴリのラベルに従ってデータを絞り込み、厳密な意味的重複除去を行い、指示の質と多様性を確保した。
- 応答の部分: 一部のデータを、ルールと大規模言語モデルの両方を使い、それぞれ参照答えで検証した。テストケースのあるコードのデータは、サンドボックスで検証した。加えて、報酬モデルで生成されたすべての結果を採点し、ルールと報酬モデルに基づく棄却サンプリング(rejection sampling)を行った。
統一された形式
専用のフィールド
messages: ユーザーとアシスタントのやり取りのオブジェクトからなる配列。各要素はrole、content、infoのフィールドを持つ。role: ユーザーかアシスタントかを示し、メッセージの送信者を定める。content: アシスタントのメッセージでは<think> reasoning process </think> <answer> solution </answer>の形式に従う。info: メタデータを含む。source: 指示または応答の出典。reference_answer: 一部の数学、科学などの問題にだけある、正解の答え。test_case: 一部のコード関連の問題にだけある、テストケース。think_content: アシスタントのメッセージにおける推論の手順。answer_content: アシスタントのメッセージにおける最終的な解答。
サンプル
{
"messages":[{
"role": "user",
"content": "Find the integral of .",
"info":{
"source":"natural_reasoning",
"reference_answer": "-e^{-x} - \\frac{1}{2}e^{-2x} + C",
"test_case": null
}
},
{
"role": "assistant",
"content": "<think>Okay, let's see. The user wants to find the integral of e^{-x} + e^{-2x} dx. Hmm, integrals of exponential functions. I remember that the integral of e^{kx} dx is (1/k)e^{kx} + C, right? But here the exponents are negative. Let me think.\n\nFirst, maybe I can split the integral into two parts because it's the sum of two functions. So, ∫(e^{-x} + e^{-2x}) dx = ∫e^{-x} dx + ∫e^{-2x} dx. That makes sense because integration is linear. Now, handle each integral separately.\n\nFor the first integral, ∫e^{-x} dx. If I use the formula, normally ∫e^{kx} dx = (1/k)e^{kx} + C. Here, k is -1. So substituting, that would be (1/(-1))e^{-x} + C, which simplifies to -e^{-x} + C. Wait, but since we're doing an indefinite integral here, each term will have its own constant, but since they're both combined, we'll have one constant at the end.\n\nNow the second integral: ∫e^{-2x} dx. Again, using the same formula, where k is -2. So that becomes (1/(-2))e^{-2x} + C, which is (-1/2)e^{-2x} + C.\n\nPutting both results together: the first integral is -e^{-x} and the second is (-1/2)e^{-2x}, so adding them and combining the constants gives the final answer. Let me check the signs again. The first term's coefficient is -1, and the second is -1/2. So combining those, it should be -e^{-x} - (1/2)e^{-2x} + C. Yeah, that looks right.\n\nLet me verify by differentiating the result. If I take the derivative of -e^{-x}, that's (-1)(-e^{-x}) = e^{-x}. For the second term, derivative of -1/2 e^{-2x} is (-1/2)(-2)e^{-2x} = e^{-2x}. So adding those derivatives gives e^{-x} + e^{-2x}, which matches the original integrand. Great, so the integration is correct. The constants of integration from both terms just combine into a single constant C at the end.\n</think>\n<answer>\nThe integral of with respect to is:\n\n\\[\n\\int \\left(e^{-x} + e^{-2x}\\right) dx = -e^{-x} - \\frac{1}{2}e^{-2x} + C\n\\]\n\nwhere is the constant of integration.\n</answer>",
"info": {
"source": "am-0309",
"think_content": "Okay, let's see. The user wants to find the integral of e^{-x} + e^{-2x} dx. Hmm, integrals of exponential functions. I remember that the integral of e^{kx} dx is (1/k)e^{kx} + C, right? But here the exponents are negative. Let me think.\n\nFirst, maybe I can split the integral into two parts because it's the sum of two functions. So, ∫(e^{-x} + e^{-2x}) dx = ∫e^{-x} dx + ∫e^{-2x} dx. That makes sense because integration is linear. Now, handle each integral separately.\n\nFor the first integral, ∫e^{-x} dx. If I use the formula, normally ∫e^{kx} dx = (1/k)e^{kx} + C. Here, k is -1. So substituting, that would be (1/(-1))e^{-x} + C, which simplifies to -e^{-x} + C. Wait, but since we're doing an indefinite integral here, each term will have its own constant, but since they're both combined, we'll have one constant at the end.\n\nNow the second integral: ∫e^{-2x} dx. Again, using the same formula, where k is -2. So that becomes (1/(-2))e^{-2x} + C, which is (-1/2)e^{-2x} + C.\n\nPutting both results together: the first integral is -e^{-x} and the second is (-1/2)e^{-2x}, so adding them and combining the constants gives the final answer. Let me check the signs again. The first term's coefficient is -1, and the second is -1/2. So combining those, it should be -e^{-x} - (1/2)e^{-2x} + C. Yeah, that looks right.\n\nLet me verify by differentiating the result. If I take the derivative of -e^{-x}, that's (-1)(-e^{-x}) = e^{-x}. For the second term, derivative of -1/2 e^{-2x} is (-1/2)(-2)e^{-2x} = e^{-2x}. So adding those derivatives gives e^{-x} + e^{-2x}, which matches the original integrand. Great, so the integration is correct. The constants of integration from both terms just combine into a single constant C at the end.\n",
"answer_content": "\nThe integral of with respect to is:\n\n\\[\n\\int \\left(e^{-x} + e^{-2x}\\right) dx = -e^{-x} - \\frac{1}{2}e^{-2x} + C\n\\]\n\nwhere is the constant of integration.\n"
}
}]
}
使い方
データセットは、応答の出典に基づいて二つの圧縮ファイルに分かれている:
am_0.9M.jsonl.zst:am-0309の出典の応答。am_0.5M.jsonl.zst: それ以外の出典の応答。- 加えて、
am-0309から無作為に抽出した 1,000 件のサブセット(am_0.9M_1k.jsonl)が、すぐに試せるように提供されている。
ファイルは、ダウンロードを速くし保存容量を減らすため zstd で圧縮されている。
展開の手順:
apt install zstd
zstd -d am_0.9M.jsonl.zst -o am_0.9M.jsonl
load_dataset での使い方
from datasets import load_dataset, Features, Value
features = Features({
"messages": [
{
"role": Value("string"),
"content": Value("string"),
"info": {
"source": Value("string"),
"reference_answer": Value("string"),
"test_case": Value("string"),
"think_content": Value("string"),
"answer_content": Value("string")
}
}
]
})
# Take downloading "am_0.9M_sample_1k.jsonl" as an example.
data = load_dataset('a-m-team/AM-DeepSeek-R1-Distilled-1.4M', 'am_0.9M_sample_1k', features=features)
出典
- オープンソースのデータ: 既存のデータセットの指示と推論の過程。
- AM の蒸留データ: オープンソースのデータセットから得た高品質な指示に、DeepSeek-R1 が生成した推論の過程と解答を加えたもの。
指示の出典
| 出典 | 件数 |
|---|---|
| natural_reasoning | 319085 |
| InfinityInstruct | 306675 |
| KodCode | 210838 |
| Dolphin - R1 | 63921 |
| openR1Math_extended | 63290 |
| NuminaMath_1.5 | 62446 |
| openR1Math_default | 62239 |
| codeio | 55176 |
| GeneralThought - Feb25 | 50600 |
| openThoughts | 34620 |
| OpenCoder | 22249 |
| data_ablation_full59K | 14155 |
| MetaMathQA | 14083 |
| ... | ... |
応答の出典
| 出典 | 件数 |
|---|---|
| am-0309 | 900000 |
| KodCode | 210838 |
| openR1Math_extended | 63290 |
| Dolphin - R1 | 62750 |
| openR1Math_default | 60839 |
| GeneralThought - Feb25 | 50600 |
| openThoughts | 31431 |
| data_ablation_full59K | 14155 |
| Bespoke17k | 5747 |
| ... | ... |
制限と利用上の制約
開発者には、このプロジェクトで公開されたコード、データ、モデル、その他の成果物を研究目的にのみ使うよう求める。商用利用および、その他の有害なおそれのある用途は認めない。
このデータセットは LLM によって生成され、厳密には検証されていないため、事実性などの面で依然として不備がある。このデータセットを使う際は、注意深い確認が必要である。
このデータセットは、誰の立場・利益・考えも代表するものではなく、いかなる集団の主張とも関係がない。このプロジェクトの開発者は、このデータセットとプロジェクトの利用によって生じうる害について、いかなる責任も負わない。
一部のデータは出典同士が入れ子の関係にあるため、出典の不正確さに関する問題がありうる。
引用
このデータを使う場合は、次の BibTeX の項目で引用すること:
@misc{zhao202514millionopensourcedistilled,
title={1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Training},
author={Han Zhao and Haotian Wang and Yiping Peng and Sitong Zhao and Xiaoyu Tian and Shuaiting Chen and Yunjie Ji and Xiangang Li},
year={2025},
eprint={2503.19633},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.19633},
}
原文(英語)
For more open-source datasets, models, and methodologies, please visit our GitHub repository.
AM-DeepSeek-R1-Distilled-1.4M is a large-scale general reasoning task dataset composed of high-quality and challenging reasoning problems. These problems are collected from numerous open-source datasets, semantically deduplicated, and cleaned to eliminate test set contamination. All responses in the dataset are distilled from the reasoning model (mostly DeepSeek-R1) and have undergone rigorous verification: mathematical problems are validated through answer checking, code problems via test cases, and other tasks through reward model evaluation. Specifically, responses in am_0.5M.jsonl are distilled by other open-source datasets, while those in am_0.9M.jsonl are distilled from the DeepSeek-R1-671B by the AM team.
We have validated the dataset through model training, confirming its effectiveness and demonstrating performance comparable to the distilled models from the DeepSeek team, and the details can be found in our technique reports 1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Traning
We are releasing these 1.4 million problems and responses to the research community, aiming to foster advancements in powerful reasoning-oriented Large Language Models (LLMs). We sincerely thank the open-source community. Without their support, we would never have come this far.
Model Training Performance based on this dataset
Scale & Composition
- AM-DeepSeek-R1-Distilled-1.4M: An Open-source Chinese & English dataset with reasoning traces (1.4 million entries).
- 0.5 million entries of data are entirely from open-source datasets, and 0.9 million entries of data are distilled from DeepSeek-R1-671B by AM team, which can be seen in the "am-0309" of the Response sources.
- Data processing:
- Instruction part: we used the large language model to score all the instructions in terms of difficulty and category. Then we filtered the data according to the difficulty and category labels and conducted strict semantic deduplication to ensure the high-quality and diversity of the instructions.
- Response part: we verified part of the data with reference answers using both rules and the large language model respectively. For code data with test cases, we used a sandbox for verification. Additionally, we used a reward model to score all the generated results and performed rejection sampling based on the rules and the reward model.
Unified Format
Dedicated fields
messages: Array with user - assistant interaction objects, Each havingrole、contentandinfofields.role: Indicates whether it's user or assistant, defining the sender of the message.content: Follows<think> reasoning process </think> <answer> solution </answer>format in assistant message.info: Contains metadata.source: Instrction or response source.reference_answer: Ground-truth answers only for some math, science, and other problems.test_case: Test cases only for some code-related problems.think_content: Reasoning steps in assistant message.answer_content: Final solution in assistant message.
sample
{
"messages":[{
"role": "user",
"content": "Find the integral of .",
"info":{
"source":"natural_reasoning",
"reference_answer": "-e^{-x} - \\frac{1}{2}e^{-2x} + C",
"test_case": null
}
},
{
"role": "assistant",
"content": "<think>Okay, let's see. The user wants to find the integral of e^{-x} + e^{-2x} dx. Hmm, integrals of exponential functions. I remember that the integral of e^{kx} dx is (1/k)e^{kx} + C, right? But here the exponents are negative. Let me think.\n\nFirst, maybe I can split the integral into two parts because it's the sum of two functions. So, ∫(e^{-x} + e^{-2x}) dx = ∫e^{-x} dx + ∫e^{-2x} dx. That makes sense because integration is linear. Now, handle each integral separately.\n\nFor the first integral, ∫e^{-x} dx. If I use the formula, normally ∫e^{kx} dx = (1/k)e^{kx} + C. Here, k is -1. So substituting, that would be (1/(-1))e^{-x} + C, which simplifies to -e^{-x} + C. Wait, but since we're doing an indefinite integral here, each term will have its own constant, but since they're both combined, we'll have one constant at the end.\n\nNow the second integral: ∫e^{-2x} dx. Again, using the same formula, where k is -2. So that becomes (1/(-2))e^{-2x} + C, which is (-1/2)e^{-2x} + C.\n\nPutting both results together: the first integral is -e^{-x} and the second is (-1/2)e^{-2x}, so adding them and combining the constants gives the final answer. Let me check the signs again. The first term's coefficient is -1, and the second is -1/2. So combining those, it should be -e^{-x} - (1/2)e^{-2x} + C. Yeah, that looks right.\n\nLet me verify by differentiating the result. If I take the derivative of -e^{-x}, that's (-1)(-e^{-x}) = e^{-x}. For the second term, derivative of -1/2 e^{-2x} is (-1/2)(-2)e^{-2x} = e^{-2x}. So adding those derivatives gives e^{-x} + e^{-2x}, which matches the original integrand. Great, so the integration is correct. The constants of integration from both terms just combine into a single constant C at the end.\n</think>\n<answer>\nThe integral of with respect to is:\n\n\\[\n\\int \\left(e^{-x} + e^{-2x}\\right) dx = -e^{-x} - \\frac{1}{2}e^{-2x} + C\n\\]\n\nwhere is the constant of integration.\n</answer>",
"info": {
"source": "am-0309",
"think_content": "Okay, let's see. The user wants to find the integral of e^{-x} + e^{-2x} dx. Hmm, integrals of exponential functions. I remember that the integral of e^{kx} dx is (1/k)e^{kx} + C, right? But here the exponents are negative. Let me think.\n\nFirst, maybe I can split the integral into two parts because it's the sum of two functions. So, ∫(e^{-x} + e^{-2x}) dx = ∫e^{-x} dx + ∫e^{-2x} dx. That makes sense because integration is linear. Now, handle each integral separately.\n\nFor the first integral, ∫e^{-x} dx. If I use the formula, normally ∫e^{kx} dx = (1/k)e^{kx} + C. Here, k is -1. So substituting, that would be (1/(-1))e^{-x} + C, which simplifies to -e^{-x} + C. Wait, but since we're doing an indefinite integral here, each term will have its own constant, but since they're both combined, we'll have one constant at the end.\n\nNow the second integral: ∫e^{-2x} dx. Again, using the same formula, where k is -2. So that becomes (1/(-2))e^{-2x} + C, which is (-1/2)e^{-2x} + C.\n\nPutting both results together: the first integral is -e^{-x} and the second is (-1/2)e^{-2x}, so adding them and combining the constants gives the final answer. Let me check the signs again. The first term's coefficient is -1, and the second is -1/2. So combining those, it should be -e^{-x} - (1/2)e^{-2x} + C. Yeah, that looks right.\n\nLet me verify by differentiating the result. If I take the derivative of -e^{-x}, that's (-1)(-e^{-x}) = e^{-x}. For the second term, derivative of -1/2 e^{-2x} is (-1/2)(-2)e^{-2x} = e^{-2x}. So adding those derivatives gives e^{-x} + e^{-2x}, which matches the original integrand. Great, so the integration is correct. The constants of integration from both terms just combine into a single constant C at the end.\n",
"answer_content": "\nThe integral of with respect to is:\n\n\\[\n\\int \\left(e^{-x} + e^{-2x}\\right) dx = -e^{-x} - \\frac{1}{2}e^{-2x} + C\n\\]\n\nwhere is the constant of integration.\n"
}
}]
}
Usage
The dataset is split into two compressed files based on response sources:
am_0.9M.jsonl.zst: Responses from theam-0309source.am_0.5M.jsonl.zst: Responses from other sources.- Additionally, a subset of 1,000 random samples (
am_0.9M_1k.jsonl) fromam-0309is provided for quick experimentation.
Files are compressed using zstd for faster download and reduced storage requirements.
Decompression Instructions:
apt install zstd
zstd -d am_0.9M.jsonl.zst -o am_0.9M.jsonl
How to use with load_dataset
from datasets import load_dataset, Features, Value
features = Features({
"messages": [
{
"role": Value("string"),
"content": Value("string"),
"info": {
"source": Value("string"),
"reference_answer": Value("string"),
"test_case": Value("string"),
"think_content": Value("string"),
"answer_content": Value("string")
}
}
]
})
# Take downloading "am_0.9M_sample_1k.jsonl" as an example.
data = load_dataset('a-m-team/AM-DeepSeek-R1-Distilled-1.4M', 'am_0.9M_sample_1k', features=features)
Sources
- Open-source data: Instructions and reasoning traces from existing datasets.
- AM distilled data: High-quality instructions from the Open-source dataset, augmented with reasoning traces and solutions generated by DeepSeek-R1.
Instruction sources
| Source | Nums |
|---|---|
| natural_reasoning | 319085 |
| InfinityInstruct | 306675 |
| KodCode | 210838 |
| Dolphin - R1 | 63921 |
| openR1Math_extended | 63290 |
| NuminaMath_1.5 | 62446 |
| openR1Math_default | 62239 |
| codeio | 55176 |
| GeneralThought - Feb25 | 50600 |
| openThoughts | 34620 |
| OpenCoder | 22249 |
| data_ablation_full59K | 14155 |
| MetaMathQA | 14083 |
| ... | ... |
Response sources
| Source | Nums |
|---|---|
| am-0309 | 900000 |
| KodCode | 210838 |
| openR1Math_extended | 63290 |
| Dolphin - R1 | 62750 |
| openR1Math_default | 60839 |
| GeneralThought - Feb25 | 50600 |
| openThoughts | 31431 |
| data_ablation_full59K | 14155 |
| Bespoke17k | 5747 |
| ... | ... |
Limitation and Usage Limits
We require developers only use the open-sourced code, data, model and any other artifacts generated via this project for research purposes. Commercial use and other potential harmful use cases are not allowed.
Since this dataset was generated by LLM and was not strictly verified, it still has shortcomings regarding factuality and other aspects. When using this dataset, careful inspection is needed.
This dataset does not represent anyone's ground, interest or thought, and is not related to any kind of claim of any groups. The developers of this project do not assume any responsibility to potential harm inflicted by using this dataset and project.
Due to the nested relationships among the sources of some data, there may be issues regarding the inaccuracy of the sources.
Citation
If you use this data, please cite with the following BibTex entry:
@misc{zhao202514millionopensourcedistilled,
title={1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Training},
author={Han Zhao and Haotian Wang and Yiping Peng and Sitong Zhao and Xiaoyu Tian and Shuaiting Chen and Yunjie Ji and Xiangang Li},
year={2025},
eprint={2503.19633},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.19633},
}
- Downloads last month
- 91
