RLHFlow/Llama3.1-8B-PRM-Deepseek-Data

Model

40

stars

7

commits

8

repos using this model

2

linked in READMEs

May 10, 2025

updated

conversational
endpoints_compatible
llama
safetensors
text-generation
text-generation-inference
transformers

README

This is a process-supervised reward (PRM) from the project RLHFlow/RLHF-Reward-Modeling

The model is trained from meta-llama/Llama-3.1-8B-Instruct on RLHFlow/Deepseek-PRM-Data for 1 epochs. We use a global batch size of 32 and a learning rate of 2e-6, where we pack the samples and split them into chunks of 8192 token. See more training details at https://github.com/RLHFlow/RLHF-Reward-Modeling/tree/main/math-rm.

BoN evaluation result for Mistral generator:

ModelMethodGSM8KMATH
Mistral-7BPass@177.928.4
Mistral-7BMajority Voting@102484.236.8
Mistral-7BMistral-ORM@102490.143.6
Mistral-7BMistral-PRM@102492.446.3

Scaling the inference sampling to N=1024 for Deepseek generator:

ModelMethodGSM8KMATH
Deepseek-7BPass@183.938.4
Deepseek-7BMajority Voting@102489.757.4
Deepseek-7BDeepseek-ORM@102493.452.4
Deepseek-7BDeepseek-PRM@102493.058.1
Deepseek-7BMistral-ORM@1024 (OOD)90.354.9
Deepseek-7BMistral-PRM@1024 (OOD)91.956.9

Visualization

image/png

Usage

See https://github.com/RLHFlow/RLHF-Reward-Modeling/tree/main/math-rm for detailed examples.

Citation

The automatic annotation was proposed in the Math-shepherd paper:

@inproceedings{wang2024math,
  title={Math-shepherd: Verify and reinforce llms step-by-step without human annotations},
  author={Wang, Peiyi and Li, Lei and Shao, Zhihong and Xu, Runxin and Dai, Damai and Li, Yifei and Chen, Deli and Wu, Yu and Sui, Zhifang},
  booktitle={Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={9426--9439},
  year={2024}
}

If you find the training recipe useful, please consider cite it as follows.

@misc{xiong2024implementation,
  title={An implementation of generative prm},
  author={Xiong, Wei and Zhang, Hanning and Jiang, Nan and Zhang, Tong},
  year={2024}
}

Contributors

weqweasdas

4 commits

HanningZhang

3 commits

RLHFlow/Llama3.1-8B-PRM-Deepseek-Data

Model

40

stars

7

commits

8

repos using this model

2

linked in READMEs

May 10, 2025

updated

conversational
endpoints_compatible
llama
safetensors
text-generation
text-generation-inference
transformers

README

This is a process-supervised reward (PRM) from the project RLHFlow/RLHF-Reward-Modeling

The model is trained from meta-llama/Llama-3.1-8B-Instruct on RLHFlow/Deepseek-PRM-Data for 1 epochs. We use a global batch size of 32 and a learning rate of 2e-6, where we pack the samples and split them into chunks of 8192 token. See more training details at https://github.com/RLHFlow/RLHF-Reward-Modeling/tree/main/math-rm.

BoN evaluation result for Mistral generator:

ModelMethodGSM8KMATH
Mistral-7BPass@177.928.4
Mistral-7BMajority Voting@102484.236.8
Mistral-7BMistral-ORM@102490.143.6
Mistral-7BMistral-PRM@102492.446.3

Scaling the inference sampling to N=1024 for Deepseek generator:

ModelMethodGSM8KMATH
Deepseek-7BPass@183.938.4
Deepseek-7BMajority Voting@102489.757.4
Deepseek-7BDeepseek-ORM@102493.452.4
Deepseek-7BDeepseek-PRM@102493.058.1
Deepseek-7BMistral-ORM@1024 (OOD)90.354.9
Deepseek-7BMistral-PRM@1024 (OOD)91.956.9

Visualization

image/png

Usage

See https://github.com/RLHFlow/RLHF-Reward-Modeling/tree/main/math-rm for detailed examples.

Citation

The automatic annotation was proposed in the Math-shepherd paper:

@inproceedings{wang2024math,
  title={Math-shepherd: Verify and reinforce llms step-by-step without human annotations},
  author={Wang, Peiyi and Li, Lei and Shao, Zhihong and Xu, Runxin and Dai, Damai and Li, Yifei and Chen, Deli and Wu, Yu and Sui, Zhifang},
  booktitle={Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={9426--9439},
  year={2024}
}

If you find the training recipe useful, please consider cite it as follows.

@misc{xiong2024implementation,
  title={An implementation of generative prm},
  author={Xiong, Wei and Zhang, Hanning and Jiang, Nan and Zhang, Tong},
  year={2024}
}

Contributors

weqweasdas

4 commits

HanningZhang

3 commits