ProCreations commited on
Commit
36edbbd
·
verified ·
1 Parent(s): a452267

Beam reasoning traces: 53,306 verified SFT rows + 124,945 raw generations

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. README.md +102 -0
  3. data/sft.jsonl +3 -0
  4. data/traces_all.jsonl +3 -0
  5. run_a_ids.txt +0 -0
.gitattributes CHANGED
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/sft.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ data/traces_all.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-generation
7
+ - question-answering
8
+ tags:
9
+ - reasoning
10
+ - distillation
11
+ - chain-of-thought
12
+ - math
13
+ - science
14
+ - beam
15
+ - synthetic
16
+ size_categories:
17
+ - 100K<n<1M
18
+ pretty_name: Beam Reasoning Traces
19
+ configs:
20
+ - config_name: sft
21
+ default: true
22
+ data_files:
23
+ - split: train
24
+ path: data/sft.jsonl
25
+ - config_name: all
26
+ data_files:
27
+ - split: train
28
+ path: data/traces_all.jsonl
29
+ ---
30
+
31
+ # Beam Reasoning Traces
32
+
33
+ Verified math and science reasoning traces from Reflection's
34
+ [Beam-1.0-501B-A23B](https://huggingface.co/reflection/Beam-1.0-501B-A23B) at `reasoning_effort=medium`.
35
+ They were built to distill Beam into a small model, and were used to train
36
+ [ProCreations/Dory-Beam-4B](https://huggingface.co/ProCreations/Dory-Beam-4B), a looped NVIDIA Dory-4B that
37
+ reasons about half as long as the base model at the same accuracy. Made for the Build with Beam challenge.
38
+
39
+ | Config | Rows | What it is |
40
+ |---|---|---|
41
+ | `sft` (default) | 53,306 | One verified-correct trace per prompt (the shortest correct one), in chat `messages` form |
42
+ | `all` | 124,945 | Every generation over 62,417 prompts, correct or not, with the grader's verdict |
43
+
44
+ ## How it was made
45
+
46
+ **Prompts.** These are decontaminated, auto-verifiable problems from two sources:
47
+ - [zwhe99/DeepMath-103K](https://huggingface.co/datasets/zwhe99/DeepMath-103K) (MIT): difficulty 5–9, closed-form answers
48
+ - [nvidia/OpenScienceReasoning-2](https://huggingface.co/datasets/nvidia/OpenScienceReasoning-2) (CC-BY-4.0): multiple choice, single-letter answers
49
+
50
+ Any prompt sharing a 13-gram with MATH-500, AIME 2024/2025, AMC 2023 or GPQA was dropped. A separate check
51
+ against the 198 GPQA-Diamond questions found zero 13-gram overlap. 300 further pool prompts were held out for
52
+ evaluation and are not in this dataset.
53
+
54
+ **Generation.** Every trace comes from Beam-1.0-501B-A23B with `reasoning_effort=medium`, apart from 30 pilot
55
+ rows at `high`. Most were generated by self-hosting the open weights with SGLang (`lmsysorg/sglang:beam`) at
56
+ temperature 0.7 and top-p 0.99, usually with 2 samples per prompt. The rest came from the Reflection API with
57
+ its default sampling:
58
+
59
+ | `teacher` | Checkpoint | `sft` rows | Math accuracy | Science accuracy | Median tokens |
60
+ |---|---|---|---|---|---|
61
+ | `selfhost-nvfp4` | Beam NVFP4 on 2× B300 | 48,826 | 85.8% | 76.5% | 1,248 |
62
+ | `selfhost-fp8` | Beam FP8 on 4× B300 | 2,640 | 86.3% | 78.1% | 1,152 |
63
+ | `api` | Reflection API | 1,840 | 83.5% | 78.7% | 987 |
64
+
65
+ Self-hosted Beam matched the API's accuracy but wrote about 30–37% longer reasoning on token-identical
66
+ prompts. This held for both NVFP4 and FP8, so quantization is unlikely to be the cause; sampling or serving
67
+ differences on Reflection's side are more likely. Keeping the shortest correct of two samples narrows the gap.
68
+
69
+ **Verification.** Math answers are taken from the last `\boxed{}` and compared with
70
+ [math-verify](https://github.com/huggingface/Math-Verify). Science answers must match the gold letter.
71
+ Truncated generations always count as incorrect.
72
+
73
+ ## Fields
74
+
75
+ `sft`: `id`, `domain` (`math`/`science`), `source`, `difficulty` (DeepMath only), `teacher`, `reasoning_effort`,
76
+ `messages` (user prompt, then an assistant turn with `reasoning_content` and `content`), `gold`, `n_samples` and
77
+ `n_correct` (Beam's generations and correct ones for this prompt).
78
+
79
+ `all`: `id`, `domain`, `source`, `topic`, `difficulty`, `teacher`, `reasoning_effort`, `prompt`, `reasoning`,
80
+ `content`, `gold`, `answer_type`, `pred` (the extracted answer), `correct`, `finish_reason`, `completion_tokens`.
81
+ Self-hosted SGLang requests reported only total usage across samples, so their per-sample token counts are
82
+ approximate.
83
+
84
+ `run_a_ids.txt` lists the 52,660 prompts in the snapshot that Dory-Beam-4B was trained on. Later rows come from
85
+ nightly API top-ups.
86
+
87
+ ## Use
88
+
89
+ ```python
90
+ from datasets import load_dataset
91
+ ds = load_dataset("ProCreations/Beam-Reasoning-Traces", "sft", split="train")
92
+ ```
93
+
94
+ The `messages` format works with any chat template that renders `reasoning_content`, including Dory's and
95
+ Qwen3's. To train on another model, the code in the
96
+ [model repo](https://huggingface.co/ProCreations/Dory-Beam-4B/tree/main/code) rebuilds everything:
97
+ `build_pool.py`, `generate.py`, `verify.py` and `build_dataset.py`.
98
+
99
+ ## License
100
+
101
+ CC-BY-4.0. Prompts come from DeepMath-103K (MIT) and OpenScienceReasoning-2 (CC-BY-4.0, please credit NVIDIA).
102
+ Responses were generated by Beam-1.0-501B-A23B, which is released under Apache-2.0.
data/sft.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c12a4daf400c1928129f6ed13fc5d12bce11aed3ca76de0611e812853169331
3
+ size 308228420
data/traces_all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84be386e189cf26a9a10022fff593b094bf36cf41ae4afdb518a7c4be1b4aa5f
3
+ size 921089884
run_a_ids.txt ADDED
The diff for this file is too large to render. See raw diff