CoolFace
Modelpublic

RLHFlow/Llama3.1-8B-ORM-Mistral-Data

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes223downloads
Model Card

This is a outcome-supervised reward (ORM) trained on Mistral-generated data from the project RLHFlow/RLHF-Reward-Modeling

The model is trained from meta-llama/Llama-3.1-8B-Instruct on RLHFlow/Mistral-ORM-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/Online-RLHF/blob/main/math/llama-3.1-prm.yaml .

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 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{xiong2024rlhflowmath,
      author={Wei Xiong and Hanning Zhang and Nan Jiang and Tong Zhang},
  title = {An Implementation of Generative PRM},
  year = {2024},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/RLHFlow/RLHF-Reward-Modeling}}
}