Views
No views yet
meta-llama/Meta-Llama-3.1-8B-InstructCAUSAL_LM1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM
3from peft import PeftModel
4
5base = "meta-llama/Meta-Llama-3.1-8B-Instruct"
6tokenizer = AutoTokenizer.from_pretrained(base)
7model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16)
8model = PeftModel.from_pretrained(model, "RAG-Gym/RAG-MedQA-DPO")meta-llama/Meta-Llama-3.1-8B-Instruct on MedQA process-reward data using direct preference optimization (DPO) with the TRL library. Adaptation uses LoRA (rank 256, alpha 512, task type CAUSAL_LM) 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}