qwen3.5-9b-swe-stage2-dpo
Second-stage preference optimization adapter. Continues training from the SFT adapter with DPO on synthetic preference pairs.
Training
| Item | Value |
|---|---|
| Base model | Qwen/Qwen3.5-9B |
| Base revision | c202236235762e1c871ad0ccb60c8ee5ba337b9a |
| Starting point | qwen3.5-9b-swe-sft adapter |
| Method | DPO |
| beta | 0.1 |
| Preference pairs | 5,878 |
| Epochs / steps | 1 / 600 |
| Max sequence length | 512 |
| Final loss | 0.2088 |
| rewards/chosen | -3.011 |
| rewards/rejected | -9.978 |
| rewards/margin | +6.97 |
| rewards/accuracy | 0.795 |
Preference data is synthetic. Positives are reference patches from the SFT corpus; negatives are controlled mutations of those patches (truncation, failed hunks, broken indentation, renamed identifiers, no-op). This is not execution-verified feedback, so the preference signal is weaker than a true execution-feedback setup. See the project repository for details.
Usage
Load the base model as above, then:
model = PeftModel.from_pretrained(base, "wellkilo/qwen3.5-9b-swe-stage2-dpo")
License
apache-2.0, following the base model license.