Views
No views yet
meta-llama/Meta-Llama-3.1-8B-InstructSEQ_CLS1import torch
2from transformers import AutoTokenizer, AutoModelForSequenceClassification
3from peft import PeftModel
4
5base = "meta-llama/Meta-Llama-3.1-8B-Instruct"
6tokenizer = AutoTokenizer.from_pretrained(base)
7model = AutoModelForSequenceClassification.from_pretrained(base, num_labels=1, torch_dtype=torch.bfloat16)
8model = PeftModel.from_pretrained(model, "RAG-Gym/ReAct-HotpotQA-PRM")meta-llama/Meta-Llama-3.1-8B-Instruct on HotpotQA process-reward data using process reward modeling (PRM) with the TRL library. Adaptation uses LoRA (rank 256, alpha 512, task type SEQ_CLS) in bf16. The training code and full configuration are available in the RAG-Gym repository.1@article{xiong2025raggym,
2 title={RAG-Gym: Optimizing Reasoning and Search Agents with Process Supervision},
3 author={Guangzhi Xiong and Qiao Jin and Xiao Wang and Yin Fang and Haolin Liu and Yifan Yang and Fangyuan Chen and Zhixing Song and Dengyu Wang and Minjia Zhang and Zhiyong Lu and Aidong Zhang},
4 journal={arXiv preprint arXiv:2502.13957},
5 year={2025}
6}