openai/gsm8k
Benchmark • Updated • 17.6k • 944k • 1.51k
How to use resonancetech/qwen2.5-math-7b-causal-grpo with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Math-7B-Instruct")
model = PeftModel.from_pretrained(base_model, "resonancetech/qwen2.5-math-7b-causal-grpo")LoRA adapter trained with causal-aware Group Relative Policy Optimization (GRPO) on GSM8K.
| Metric | Causal (this model) | Baseline |
|---|---|---|
| Mean reward | 0.394 | 0.255 |
| Peak reward | 0.560 | 0.400 |
Causal-aware reward augments outcome reward with a lightweight proxy for causal effectiveness, encouraging reasoning chains whose content demonstrably drives correct answers.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Math-7B-Instruct")
model = PeftModel.from_pretrained(base, "resonancetech/qwen2.5-math-7b-causal-grpo")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Math-7B-Instruct")
Paper in preparation for NeurIPS 2026.
Apache 2.0 (following base model license)