Safetensors
llama
zqh11 commited on
Commit
b82d6c7
1 Parent(s): f1a3a22

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +177 -5
README.md CHANGED
@@ -1,5 +1,177 @@
1
- ---
2
- license: other
3
- license_name: deepseek
4
- license_link: LICENSE
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: deepseek-license
4
+ license_link: LICENSE
5
+ ---
6
+ <!-- markdownlint-disable first-line-h1 -->
7
+ <!-- markdownlint-disable html -->
8
+ <!-- markdownlint-disable no-duplicate-header -->
9
+
10
+ <div align="center">
11
+ <img src="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/logo.svg?raw=true" width="60%" alt="DeepSeek-V2" />
12
+ </div>
13
+ <hr>
14
+ <div align="center" style="line-height: 1;">
15
+ <a href="https://www.deepseek.com/" target="_blank" style="margin: 2px;">
16
+ <img alt="Homepage" src="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/badge.svg?raw=true" style="display: inline-block; vertical-align: middle;"/>
17
+ </a>
18
+ <a href="https://chat.deepseek.com/" target="_blank" style="margin: 2px;">
19
+ <img alt="Chat" src="https://img.shields.io/badge/🤖%20Chat-DeepSeek%20V2-536af5?color=536af5&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
20
+ </a>
21
+ <a href="https://huggingface.co/deepseek-ai" target="_blank" style="margin: 2px;">
22
+ <img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-DeepSeek%20AI-ffc107?color=ffc107&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
23
+ </a>
24
+ </div>
25
+
26
+ <div align="center" style="line-height: 1;">
27
+ <a href="https://discord.gg/Tc7c45Zzu5" target="_blank" style="margin: 2px;">
28
+ <img alt="Discord" src="https://img.shields.io/badge/Discord-DeepSeek%20AI-7289da?logo=discord&logoColor=white&color=7289da" style="display: inline-block; vertical-align: middle;"/>
29
+ </a>
30
+ <a href="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/qr.jpeg?raw=true" target="_blank" style="margin: 2px;">
31
+ <img alt="Wechat" src="https://img.shields.io/badge/WeChat-DeepSeek%20AI-brightgreen?logo=wechat&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
32
+ </a>
33
+ <a href="https://twitter.com/deepseek_ai" target="_blank" style="margin: 2px;">
34
+ <img alt="Twitter Follow" src="https://img.shields.io/badge/Twitter-deepseek_ai-white?logo=x&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
35
+ </a>
36
+ </div>
37
+ <div align="center" style="line-height: 1;">
38
+ <a href="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/LICENSE-CODE" style="margin: 2px;">
39
+ <img alt="Code License" src="https://img.shields.io/badge/Code_License-MIT-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/>
40
+ </a>
41
+ <a href="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/LICENSE-MODEL" style="margin: 2px;">
42
+ <img alt="Model License" src="https://img.shields.io/badge/Model_License-Model_Agreement-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/>
43
+ </a>
44
+ </div>
45
+ <p align="center">
46
+ <a href="#3-evaluation-results">Evaluation Results</a> |
47
+ <a href="#3-model-downloads">Model Download</a> |
48
+ <a href="#4-setup-environment">Setup Environment</a> |
49
+ <a href="#5-quick-start">Quick Start</a> |
50
+ <a href="#6-questions-and-bugs">Questions and Bugs</a> |
51
+ <a href="#7-license">License</a> |
52
+ <a href="#8-citation">Citation</a> |
53
+ <a href="#9-contact">Contact</a>
54
+ </p>
55
+
56
+
57
+
58
+ <p align="center">
59
+ <a href="https://arxiv.org/abs/2408.08152"><b>Paper Link</b>👁️</a>
60
+ </p>
61
+
62
+ # DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Search
63
+
64
+ ## 1. Introduction
65
+
66
+ We introduce DeepSeek-Prover-V1.5, an open-source language model designed for theorem proving in Lean 4, which enhances DeepSeek-Prover-V1 by optimizing both training and inference processes. Pre-trained on DeepSeekMath-Base with specialization in formal mathematical languages, the model undergoes supervised fine-tuning using an enhanced formal theorem proving dataset derived from DeepSeek-Prover-V1. Further refinement is achieved through reinforcement learning from proof assistant feedback (RLPAF). Beyond the single-pass whole-proof generation approach of DeepSeek-Prover-V1, we propose RMaxTS, a variant of Monte-Carlo tree search that employs an intrinsic-reward-driven exploration strategy to generate diverse proof paths. DeepSeek-Prover-V1.5 demonstrates significant improvements over DeepSeek-Prover-V1, achieving new state-of-the-art results on the test set of the high school level miniF2F benchmark (63.5%) and the undergraduate level ProofNet benchmark (25.3%).
67
+
68
+ <p align="center">
69
+ <img width="100%" src="figures/performance.png">
70
+ </p>
71
+
72
+
73
+ ## 2. Evaluation Results
74
+
75
+ <div align="center">
76
+
77
+ | | miniF2F-test | ProofNet |
78
+ |--------|------------------|------------------|
79
+ | **ReProver** | 26.5% | 13.8% |
80
+ | **GPT-f** | 36.6% | - |
81
+ | **Hypertree Proof Search** | 41.0% | - |
82
+ | **InternLM2-StepProver** | 54.5% | 18.1% |
83
+ | **DeepSeek-Prover-V1** | 50.0% | - |
84
+ | **DeepSeek-Prover-V1.5-Base** | 42.2% | 13.2% |
85
+ | **DeepSeek-Prover-V1.5-SFT** | 57.4% | 22.9% |
86
+ | **DeepSeek-Prover-V1.5-RL** | 60.2% | 22.6% |
87
+ | **DeepSeek-Prover-V1.5-RL + RMaxTS** | **63.5%** | **25.3%** |
88
+
89
+ </div>
90
+
91
+ ## 3. Model Downloads
92
+
93
+ We release the DeepSeek-Prover-V1.5 with 7B parameters, including base, SFT and RL models, to the public.
94
+
95
+ <div align="center">
96
+
97
+ | **Model** | **Download** |
98
+ | :-----------------------------: | :----------------------------------------------------------: |
99
+ | DeepSeek-Prover-V1.5-Base | [🤗 HuggingFace](https://huggingface.co/deepseek-ai/DeepSeek-Prover-V1.5-Base) |
100
+ | DeepSeek-Prover-V1.5-SFT | [🤗 HuggingFace](https://huggingface.co/deepseek-ai/DeepSeek-Prover-V1.5-SFT) |
101
+ | DeepSeek-Prover-V1.5-RL | [🤗 HuggingFace](https://huggingface.co/deepseek-ai/DeepSeek-Prover-V1.5-RL) |
102
+
103
+ </div>
104
+
105
+ ## 4. Setup Environment
106
+
107
+ ### Requirements
108
+
109
+ * Supported platform: Linux
110
+ * Python 3.10
111
+
112
+ ### Installation
113
+
114
+ 1. **Install Lean 4**
115
+
116
+ Follow the instructions on the [Lean 4 installation page](https://leanprover.github.io/lean4/doc/quickstart.html) to set up Lean 4.
117
+
118
+ 2. **Clone the repository**
119
+
120
+ ```sh
121
+ git clone --recurse-submodules git@github.com:deepseek-ai/DeepSeek-Prover-V1.5.git
122
+ cd DeepSeek-Prover-V1.5
123
+ ```
124
+
125
+ 3. **Install Dependencies**
126
+
127
+ ```sh
128
+ pip install -r requirements.txt
129
+ ```
130
+
131
+ 4. **Build Mathlib4**
132
+
133
+ ```sh
134
+ cd mathlib4
135
+ lake build
136
+ ```
137
+
138
+ ## 5. Quick Start
139
+
140
+ You can directly use [Huggingface's Transformers](https://github.com/huggingface/transformers) for model inference. A simple example of generating a proof for a problem from miniF2F and verifying it can be found in [quick_start.py](https://github.com/deepseek-ai/DeepSeek-Prover-V1.5/blob/master/quick_start.py).
141
+
142
+ To run paper experiments, you can use the following script to launch a RMaxTS proof search agent:
143
+ ```sh
144
+ python -m prover.launch --config=configs/RMaxTS.py --log_dir=logs/RMaxTS_results
145
+ ```
146
+
147
+ You can use `CUDA_VISIBLE_DEVICES=0,1,···` to specify the GPU devices. The experiment results can be gathered using the following script:
148
+ ```sh
149
+ python -m prover.summarize --config=configs/RMaxTS.py --log_dir=logs/RMaxTS_results
150
+ ```
151
+
152
+ ## 6. Questions and Bugs
153
+
154
+ * For general questions and discussions, please use [GitHub Discussions](https://github.com/deepseek-ai/DeepSeek-Prover-V1.5/discussions).
155
+ * To report a potential bug, please open an issue.
156
+
157
+ ## 7. License
158
+ This code repository is licensed under the MIT License. The use of DeepSeekMath models is subject to the Model License. DeepSeekMath supports commercial use.
159
+
160
+ See the [LICENSE-CODE](LICENSE-CODE) and [LICENSE-MODEL](LICENSE-MODEL) for more details.
161
+
162
+ ## 8. Citation
163
+ ```latex
164
+ @article{xin2024deepseekproverv15harnessingproofassistant,
165
+ title={DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Search},
166
+ author={Huajian Xin and Z. Z. Ren and Junxiao Song and Zhihong Shao and Wanjia Zhao and Haocheng Wang and Bo Liu and Liyue Zhang and Xuan Lu and Qiushi Du and Wenjun Gao and Qihao Zhu and Dejian Yang and Zhibin Gou and Z. F. Wu and Fuli Luo and Chong Ruan},
167
+ year={2024},
168
+ eprint={2408.08152},
169
+ archivePrefix={arXiv},
170
+ primaryClass={cs.CL},
171
+ url={https://arxiv.org/abs/2408.08152},
172
+ }
173
+ ```
174
+
175
+ ## 9. Contact
176
+
177
+ If you have any questions, please raise an issue or contact us at [service@deepseek.com](mailto:service@deepseek.com).