Views
No views yet
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
into the math-solution reviewer of a self-refining coding/math agent loop: it reads a
problem and a candidate solution, then scores and critiques it to drive the next refinement round.sigmoid_norm, β = 2.0) on mined preference pairs. SimPO removed the
length bias of an earlier DPO variant and improved the reviewer's scoring accuracy by
+5.16 pp over the base model, while keeping its free-text reviews coherent and deployable.| Base model | deepseek-ai/DeepSeek-R1-Distill-Qwen-7B |
| Method | SimPO (LoRA, r = 32, α = 64) |
| Role | math-solution reviewer / scorer in a self-refining agent loop |
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = "deepseek-ai/DeepSeek-R1-Distill-Qwen-7B"
5repo = "lorenzocazzador/math-reviewer-simpo-r1-distill-7b"
6
7model = AutoModelForCausalLM.from_pretrained(base, torch_dtype="auto", device_map="auto")
8model = PeftModel.from_pretrained(model, repo)
9tokenizer = AutoTokenizer.from_pretrained(repo)