git clone https://github.com/BiNLP/PRM4LLM.git
cd process-reward-ppo
conda create -n prm4llm python=3.12
conda activate prm4llm
pip install -r requirements.txtpython scripts/train_reward_model.py --config configs/reward_model.json你可以在configs/reward_model.json中配置:
- 使用的模型
- 数据集名称
- 训练参数
- 输出目录等
python scripts/run_ppo_training.py --config configs/ppo_config.json --reward_model_path models/reward_model/final_modelPPO训练配置可在configs/ppo_config.json中修改。
python scripts/evaluate_model.py --model_path models/ppo_finetuned/final-model --config configs/eval_config.json@misc{PRM4LLM,
author = {Zhenbin Chen},
title = {Process Reward Model for Large Language Model},
year = {2025},
publisher = {GitHub},
url = {https://github.com/BiNLP/PRM4LLM.git}
}