Views
No views yet

1# pip install accelerate
2import transformers
3import torch
4
5model_id = "openbmb/RLPR-Llama3.1-8B-Inst"
6
7pipeline = transformers.pipeline(
8 "text-generation",
9 model=model_id,
10 model_kwargs={"torch_dtype": torch.bfloat16},
11 device_map="auto",
12)
13
14messages = [
15 {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
16 {"role": "user", "content": "Who are you?"},
17]
18
19outputs = pipeline(
20 messages,
21 max_new_tokens=256,
22)
23print(outputs[0]["generated_text"][-1])1@misc{yu2025rlprextrapolatingrlvrgeneral,
2 title={RLPR: Extrapolating RLVR to General Domains without Verifiers},
3 author={Tianyu Yu and Bo Ji and Shouli Wang and Shu Yao and Zefan Wang and Ganqu Cui and Lifan Yuan and Ning Ding and Yuan Yao and Zhiyuan Liu and Maosong Sun and Tat-Seng Chua},
4 year={2025},
5 eprint={2506.18254},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG},
8 url={https://arxiv.org/abs/2506.18254},
9}