A LoRA adapter trained with Dr. GRPO for seven epochs from researchtrails/qwen3-8b-sft, with rewards from an LLM judge of decision similarity. It predicts a research project's next decision from its earlier decisions, and is the trained model of the paper's user-simulation examples.
The adapter applies to Qwen3-8B with the SFT adapter merged into it, so merge that first:
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-8B", revision="b968826d9c46dd6066d109eabc6255188de91218",
dtype=torch.bfloat16,
)
sft = PeftModel.from_pretrained(base, "researchtrails/qwen3-8b-sft").merge_and_unload(safe_merge=True)
model = PeftModel.from_pretrained(sft, "researchtrails/qwen3-8b-grpo")
tokenizer = AutoTokenizer.from_pretrained("researchtrails/qwen3-8b-grpo")
Use the included chat template with thinking disabled. The ResearchTrails code (rl/) trains this adapter with bash rl/run_grpo.sh; this is its epoch-7 checkpoint.
researchtrails/qwen3-8b-sft