Views
No views yet
examples/train/on_policy_distillation recipe (GRPO trainer with a pass-through advantage and the teacher in the ref-model slot).enable_thinking=false| step | 0 (this base) | 5 | 10 (this model) | 15 |
|---|---|---|---|---|
| pass@8 | 6.7% | 43.3% | 50.0% | 56.7% |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("lecunyin/Qwen3-1.7B-OPD-Math", dtype="bfloat16")
4tokenizer = AutoTokenizer.from_pretrained("lecunyin/Qwen3-1.7B-OPD-Math")
5
6messages = [{"role": "user", "content": "Find the sum of all positive integers n such that n^2 + 12n - 2007 is a perfect square. Put your final answer in \\boxed{}."}]
7inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
8print(tokenizer.decode(model.generate(inputs, max_new_tokens=4096)[0]))