Views
No views yet
MATH_12k.parquet).1model_name = "RLVR-SvS/SvS-Qwen-3B"
2device = "cuda" # the device to load the model onto
3
4model = AutoModelForCausalLM.from_pretrained(
5 model_name,
6 torch_dtype="auto",
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained(model_name)
10
11prompt = "Find the value of $x$ that satisfies the equation $4x+5 = 6x+7$."
12
13messages = [
14 {"role": "system", "content": "Please reason step by step, and put your final answer within \\boxed{}."},
15 {"role": "user", "content": prompt}
16]
17
18text = tokenizer.apply_chat_template(
19 messages,
20 tokenize=False,
21 add_generation_prompt=True
22)
23model_inputs = tokenizer([text], return_tensors="pt").to(device)
24
25generated_ids = model.generate(
26 **model_inputs,
27 max_new_tokens=8192
28)
29generated_ids = [
30 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
31]
32
33response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]@misc{liang2025pass1selfplayvariationalproblem,
title={Beyond Pass@1: Self-Play with Variational Problem Synthesis Sustains RLVR},
author={Xiao Liang and Zhongzhi Li and Yeyun Gong and Yelong Shen and Ying Nian Wu and Zhijiang Guo and Weizhu Chen},
year={2025},
eprint={2508.14029},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2508.14029},
}