reign12 nielsr HF Staff commited on
Commit
8fcd400
Β·
verified Β·
1 Parent(s): 2ded8d4

Add pipeline tag and library_name (#1)

Browse files

- Add pipeline tag and library_name (51950d6d48f3e9d6cb115064b618c6beb6dbb8b1)


Co-authored-by: Niels Rogge <[email protected]>

Files changed (1) hide show
  1. README.md +30 -14
README.md CHANGED
@@ -1,6 +1,10 @@
1
  ---
2
  license: mit
 
 
3
  ---
 
 
4
  <div align="center">
5
 
6
  # Open Reasoner Zero
@@ -24,7 +28,7 @@ An Open Source Approach to Scaling Up Reinforcement Learning on the Base Model
24
  src="https://img.shields.io/badge/Notion-%23000000.svg?style=for-the-badge&logo=notion&logoColor=white"/></a>
25
 
26
  <br>
27
- <a href="https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/ORZ_paper.pdf"><b>Paper PDF Link [WIP]</b>πŸ‘οΈ</a>
28
  </div>
29
 
30
  <div>
@@ -34,10 +38,11 @@ An Open Source Approach to Scaling Up Reinforcement Learning on the Base Model
34
 
35
  ## Overview 🌊
36
  We introduce **Open-Reasoner-Zero**, the first open source implementation of large-scale reasoning-oriented RL training focusing on scalability, simplicity and accessibility.
 
37
 
38
  To enable broader participation in this pivotal moment we witnessed and accelerate research towards artificial general intelligence (AGI),
39
  we release our source code, parameter settings, training data, and model weights.
40
- Please refer to our [paper](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/ORZ_paper.pdf) for more insights across various model sizes.
41
 
42
  **Let the Reasoner-Zero tide rise!**
43
 
@@ -46,17 +51,17 @@ Please refer to our [paper](https://github.com/Open-Reasoner-Zero/Open-Reasoner-
46
 
47
  ![](figure/teaser.png)
48
 
49
- *Figure 1 | Evaluation performance of Open-Reasoner-Zero-\{7B, 32B\}. Evaluation performance of Open-Reasoner-Zero-\{7B, 32B\} on benchmarks (averaged on 16 responses) during training. Using the same base model as DeepSeek-R1-Zero-Qwen-32B, Open-Reasoner-Zero-32B achieves superior performance on AIME2024, MATH500, and GPQA Diamond benchmark-requiring only a tenth of the training steps.*
50
 
51
  ![](figure/train_curve.png)
52
  *Figure 2 | Train-time Scale up on Train Reward and Response Length of Open-Reasoner-Zero (ORZ) - \{0.5B, 1.5B, 7B, 32B\}. Train Reward and Response Length increase steadily, demonstrating consistent scalability across model sizes. Interestingly, the ORZ-32B Response Length exhibits fluctuations without negatively impacting training stability, highlighting the robustness of our minimalist recipe.*
53
 
54
  ## Releases πŸ“¦
55
 
56
- <strong>[2025/03/31]</strong>
57
  We announce a major milestone for `Open-Reasoner-Zero`:
58
 
59
- - 🌊 [Updated Paper](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/ORZ_paper.pdf) with new results.
60
  - πŸ”­ [Easy-to-use Training Scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/playground):
61
  - [ORZ-1.5B training scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/playground/orz_1p5b_ppo.py) and [ORZ-0.5B training scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/playground/orz_0p5b_ppo.py) (main results in Figure 2).
62
  - [Minimal resource training scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/playground/orz_0p5b_ppo_1gpu.py): ORZ-0.5B can be run on a single A800/H800 gpu!
@@ -71,11 +76,11 @@ We announce a major milestone for `Open-Reasoner-Zero`:
71
  - Released HF Models: [`Open-Reasoner-Zero-1.5B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-1.5B) and [`Open-Reasoner-Zero-0.5B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-0.5B).
72
  - πŸš€ Full Suite of Critic Models for in-depth research: `Open-Reasoner-Zero-Critic-`{[0.5B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-0.5B), [1.5B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-1.5B), [7B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-7B), [32B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-32B)}.
73
 
74
- <strong>[2025/02/18]</strong>
75
  We release `Open-Reasoner-Zero`.
76
 
77
  As part of this release, we open-source:
78
- - 🌊 [Paper](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/ORZ_paper.pdf) on our comprehensive analysis and insights in Reasoner-Zero training
79
  - πŸ€— HF Model [`Open-Reasoner-Zero-7B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-7B) and [`Open-Reasoner-Zero-32B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-32B)
80
  - 🎁 [`Our curated 57k training data`](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/data)
81
  - πŸ“„ [Training Scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/playground) to enjoy your own Reasoner-Zero journey!
@@ -94,7 +99,7 @@ We release all of curated high-quality training data in the [`data`](https://git
94
  * [extended 72k](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/data/orz_math_72k_collection_extended.json), mainly cleaned from OpenR1-Math-220k.
95
  * [hard 13k](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/data/orz_math_13k_collection_hard.json), mined from the first stage of ORZ-32B training.
96
 
97
- The details for how to collect data are described in our [paper](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/ORZ_paper.pdf).
98
 
99
  ### Installation & Training Scripts
100
  We release our [Dockerfile](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/docker/Dockerfile) in [docker](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/docker) folder to facilitate the reproducibility of our training.
@@ -186,6 +191,14 @@ DEBUG_MODE=True python -m playground.orz_14m_ppo_mini
186
  DEBUG_MODE=True python -m playground.orz_7b_ppo
187
  ```
188
 
 
 
 
 
 
 
 
 
189
  ## Acknowledgements πŸ’–
190
 
191
  - This work was supported by computing resources and valuable feedback provided by [StepFun](https://www.stepfun.com/) and Tsinghua University.
@@ -209,11 +222,14 @@ We have several wechat groups to help discussions and sharing, you can scan the
209
  ## Citation
210
 
211
  ```bibtex
212
- @misc{OpenReasonerZero2025,
213
- title={Open-Reasoner-Zero: An Open Source Approach to Scaling Reinforcement Learning on the Base Model},
214
- author={Jingcheng Hu and Yinmin Zhang and Qi Han and Daxin Jiang and Xiangyu Zhang, Heung-Yeung Shum},
215
- year={2025},
216
- howpublished={\url{https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero}},
 
 
 
217
  }
218
  ```
219
-
 
1
  ---
2
  license: mit
3
+ pipeline_tag: reinforcement-learning
4
+ library_name: transformers
5
  ---
6
+
7
+ ```markdown
8
  <div align="center">
9
 
10
  # Open Reasoner Zero
 
28
  src="https://img.shields.io/badge/Notion-%23000000.svg?style=for-the-badge&logo=notion&logoColor=white"/></a>
29
 
30
  <br>
31
+ <a href="https://arxiv.org/abs/2503.24290"><b>Paper Arxiv Link </b>πŸ‘οΈ</a>
32
  </div>
33
 
34
  <div>
 
38
 
39
  ## Overview 🌊
40
  We introduce **Open-Reasoner-Zero**, the first open source implementation of large-scale reasoning-oriented RL training focusing on scalability, simplicity and accessibility.
41
+ Using the same base model as DeepSeek-R1-Zero-Qwen-32B, our implementation achieves superior performance on AIME2024, MATH500, and the GPQA Diamond benchmark while demonstrating remarkable efficiencyβ€”requiring only a tenth of the training steps, compared to DeepSeek-R1-Zero pipeline.
42
 
43
  To enable broader participation in this pivotal moment we witnessed and accelerate research towards artificial general intelligence (AGI),
44
  we release our source code, parameter settings, training data, and model weights.
45
+ Please refer to our [paper](https://arxiv.org/abs/2503.24290) for more insights across various model sizes.
46
 
47
  **Let the Reasoner-Zero tide rise!**
48
 
 
51
 
52
  ![](figure/teaser.png)
53
 
54
+ *Figure 1 | Evaluation performance of Open-Reasoner-Zero-{7B, 32B}. Evaluation performance of Open-Reasoner-Zero-{7B, 32B} on benchmarks (averaged on 16 responses) during training. Using the same base model as DeepSeek-R1-Zero-Qwen-32B, Open-Reasoner-Zero-32B achieves superior performance on AIME2024, MATH500, and GPQA Diamond benchmark-requiring only a tenth of the training steps.*
55
 
56
  ![](figure/train_curve.png)
57
  *Figure 2 | Train-time Scale up on Train Reward and Response Length of Open-Reasoner-Zero (ORZ) - \{0.5B, 1.5B, 7B, 32B\}. Train Reward and Response Length increase steadily, demonstrating consistent scalability across model sizes. Interestingly, the ORZ-32B Response Length exhibits fluctuations without negatively impacting training stability, highlighting the robustness of our minimalist recipe.*
58
 
59
  ## Releases πŸ“¦
60
 
61
+ **[2025/03/31]**
62
  We announce a major milestone for `Open-Reasoner-Zero`:
63
 
64
+ - 🌊 [Updated Paper](https://arxiv.org/abs/2503.24290) with new results.
65
  - πŸ”­ [Easy-to-use Training Scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/playground):
66
  - [ORZ-1.5B training scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/playground/orz_1p5b_ppo.py) and [ORZ-0.5B training scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/playground/orz_0p5b_ppo.py) (main results in Figure 2).
67
  - [Minimal resource training scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/playground/orz_0p5b_ppo_1gpu.py): ORZ-0.5B can be run on a single A800/H800 gpu!
 
76
  - Released HF Models: [`Open-Reasoner-Zero-1.5B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-1.5B) and [`Open-Reasoner-Zero-0.5B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-0.5B).
77
  - πŸš€ Full Suite of Critic Models for in-depth research: `Open-Reasoner-Zero-Critic-`{[0.5B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-0.5B), [1.5B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-1.5B), [7B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-7B), [32B](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-Critic-32B)}.
78
 
79
+ **[2025/02/18]**
80
  We release `Open-Reasoner-Zero`.
81
 
82
  As part of this release, we open-source:
83
+ - 🌊 [Paper](https://arxiv.org/abs/2503.24290) on our comprehensive analysis and insights in Reasoner-Zero training
84
  - πŸ€— HF Model [`Open-Reasoner-Zero-7B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-7B) and [`Open-Reasoner-Zero-32B`](https://huggingface.co/Open-Reasoner-Zero/Open-Reasoner-Zero-32B)
85
  - 🎁 [`Our curated 57k training data`](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/data)
86
  - πŸ“„ [Training Scripts](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/playground) to enjoy your own Reasoner-Zero journey!
 
99
  * [extended 72k](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/data/orz_math_72k_collection_extended.json), mainly cleaned from OpenR1-Math-220k.
100
  * [hard 13k](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/data/orz_math_13k_collection_hard.json), mined from the first stage of ORZ-32B training.
101
 
102
+ The details for how to collect data are described in our [paper](https://arxiv.org/abs/2503.24290).
103
 
104
  ### Installation & Training Scripts
105
  We release our [Dockerfile](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/docker/Dockerfile) in [docker](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/tree/main/docker) folder to facilitate the reproducibility of our training.
 
191
  DEBUG_MODE=True python -m playground.orz_7b_ppo
192
  ```
193
 
194
+ ### How to Use the Model
195
+ #### Policy Model
196
+ Policy models can be used in the same way as any chat model in transformers and vllm, since we have put the chat template jinja in the tokenizer.
197
+
198
+ #### Critic Model
199
+ Critic models can be loaded the same way like in the [training code](https://github.com/Open-Reasoner-Zero/Open-Reasoner-Zero/blob/main/orz/ppo/actors.py#L738).
200
+
201
+
202
  ## Acknowledgements πŸ’–
203
 
204
  - This work was supported by computing resources and valuable feedback provided by [StepFun](https://www.stepfun.com/) and Tsinghua University.
 
222
  ## Citation
223
 
224
  ```bibtex
225
+ @misc{hu2025openreasonerzeroopensourceapproach,
226
+ title={Open-Reasoner-Zero: An Open Source Approach to Scaling Up Reinforcement Learning on the Base Model},
227
+ author={Jingcheng Hu and Yinmin Zhang and Qi Han and Daxin Jiang and Xiangyu Zhang and Heung-Yeung Shum},
228
+ year={2025},
229
+ eprint={2503.24290},
230
+ archivePrefix={arXiv},
231
+ primaryClass={cs.LG},
232
+ url={https://arxiv.org/abs/2503.24290},
233
  }
234
  ```
235
+ ```