fenglui commited on
Commit
4f79b91
·
verified ·
1 Parent(s): 24bb4c3

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +89 -3
README.md CHANGED
@@ -1,3 +1,89 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: agentica-org/DeepScaleR-1.5B-Preview
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ license: mit
7
+ tags:
8
+ - deepseek
9
+ - unsloth
10
+ - transformers
11
+ - qwen
12
+ ---
13
+
14
+ ## DeepScaleR Overview
15
+ DeepScaleR-1.5B-Preview is a language model fine-tuned from DeepSeek-R1-Distilled-Qwen-1.5B using distributed reinforcement learning (RL) to scale up to long context lengths. The model achieves 43.1% Pass@1 accuracy on AIME 2024, representing a 15% improvement over the base model (28.8%) and surpassing OpenAI's O1-Preview performance with just 1.5B parameters.
16
+
17
+ ## Data
18
+ Our training dataset consists of approximately 40,000 unique problem-answer pairs compiled from:
19
+ - AIME problems (1984-2023)
20
+ - AMC problems (prior to 2023)
21
+ - Omni-MATH dataset
22
+ - Still dataset
23
+
24
+ ## Training Recipe
25
+ We employ Deepseek's Group Relative Policy Optimization (GRPO), a simplified RL algorithm that extends PPO by:
26
+ - Normalizing advantage function over all samples generated from the same prompt.
27
+ - Applying KL divergence regularization on top of PPO's surrogate loss to prevent significant policy drift.
28
+
29
+ **Reward Function**: Our reward function is simple but effective:
30
+ - 1 for correct answers passing LaTeX/Sympy checks
31
+ - 0 for incorrect or improperly formatted answers
32
+ - Note: No partial rewards (such as PRMs) or intermediate feedback.
33
+
34
+ **Iterative Context Lengthening**: A key challenge in scaling RL for reasoning is compute cost. Our approach trains models with progressively longer contexts as the model improves, thus saving monetary costs and end2end training time:
35
+ - Initial 8K Context (0-1040 steps):
36
+ - 22.9% -> 33% Pass@1 on AIME 2024
37
+ - Trained on 8 A100-80GB GPUs, BS= (Prompts) * (Samples/Prompt) = 128 * 8 = 1024
38
+ - Extended to 16K (steps 1040-1520):
39
+ - 33% -> 43% Pass@1 on AIME 2024
40
+ - Trained on 32 A100-80GB GPUs, BS= (Prompts) * (Samples/Prompt) = 128 * 16 = 2048
41
+ - Further extended to 24K (step 1520+):
42
+ - 38% -> 43% Pass@1 on AIME 2024
43
+ - Trained on 32 A100-80GB GPUs, BS= (Prompts) * (Samples/Prompt) = 128 * 16 = 2048
44
+ - Significant improvements within <200 steps
45
+
46
+ A more detailed description of the training recipe can be found in our [blog post](https://pretty-radio-b75.notion.site/DeepScaleR-Surpassing-O1-Preview-with-a-1-5B-Model-by-Scaling-RL-19681902c1468005bed8ca303013a4e2).
47
+
48
+ ## Evaluation
49
+ We report Pass@1 accuracy averaged over 16 samples for each problem.
50
+ | Model | AIME 2024 | MATH 500 | AMC 2023 | Minerva Math | OlympiadBench | Avg. |
51
+ |-------|-----------|-----------|-----------|--------------|---------------|------|
52
+ | 2.5-7B-Instruct | 13.3 | 79.8 | 50.6 | 34.6 | 40.7 | 43.8 |
53
+ | rStar-Math-7B | 26.7 | 78.4 | 47.5 | - | 47.1 | - |
54
+ | Eurus-2-7B-PRIME | 26.7 | 79.2 | 57.8 | 38.6 | 42.1 | 48.9 |
55
+ | Qwen2.5-7B-SimpleRL | 26.7 | 82.4 | 62.5 | <strong>39.7</strong> | 43.3 | 50.9 |
56
+ | DeepSeek-R1-Distill-Qwen-1.5B | 28.8 | 82.8 | 62.9 | 26.5 | 43.3 | 48.9 |
57
+ | Still-1.5B | 32.5 | 84.4 | 66.7 | 29.0 | 45.4 | 51.6 |
58
+ | <strong>DeepScaleR-1.5B-Preview</strong> | <strong>43.1</strong> | <strong>87.8</strong> | <strong>73.6</strong> | 30.2 | <strong>50.0</strong> | <strong>57.0</strong> |
59
+ | O1-Preview | 40.0 | 81.4 | - | - | - | - |
60
+
61
+ ## Serving DeepScaleR
62
+ Our model can be served using popular high-performance inference systems:
63
+ - vLLM
64
+ - Hugging Face Text Generation Inference (TGI)
65
+ - SGLang
66
+ - TensorRT-LLM
67
+
68
+ All these systems support the OpenAI Chat Completions API format.
69
+
70
+ ## License
71
+ This project is released under the MIT License, reflecting our commitment to open and accessible AI development.
72
+ We believe in democratizing AI technology by making our work freely available for anyone to use, modify, and build upon.
73
+ This permissive license ensures that researchers, developers, and enthusiasts worldwide can leverage and extend our work without restrictions, fostering innovation and collaboration in the AI community.
74
+
75
+ ## Acknowledgement
76
+ - Our training experiments are powered by our heavily modified fork of [Verl](https://github.com/agentica-project/verl), an open-source RLHF library.
77
+ - Our model is trained on top of [`DeepSeek-R1-Distill-Qwen-1.5B`](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B).
78
+ - Our work is done as part of [Berkeley Sky Computing Lab](https://skycomputing.berkeley.edu/) and [Berkeley AI Research](https://bair.berkeley.edu/).
79
+
80
+ ## Citation
81
+ ```bibtex
82
+ @misc{deepscaler2025,
83
+ title={DeepScaleR: Surpassing O1-Preview with a 1.5B Model by Scaling RL},
84
+ author={Michael Luo and Sijun Tan and Justin Wong and Xiaoxiang Shi and William Tang and Manan Roongta and Colin Cai and Jeffrey Luo and Tianjun Zhang and Erran Li and Raluca Ada Popa and Ion Stoica},
85
+ year={2025},
86
+ howpublished={\url{https://pretty-radio-b75.notion.site/DeepScaleR-Surpassing-O1-Preview-with-a-1-5B-Model-by-Scaling-RL-19681902c1468005bed8ca303013a4e2}},
87
+ note={Notion Blog}
88
+ year={2025}
89
+ }