CoolFace
Modelpublic

MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes9downloads
Model Card

SWE-Gym Qwen2.5-Coder-32B-Instruct Full SFT (64K Context)

A full-parameter supervised fine-tuned version of Qwen2.5-Coder-32B-Instruct using SWE-agent trajectory data distilled from Qwen3-Coder-480B-A35B-Instruct on the SWE-Gym dataset.

Model Details

PropertyValue
Base ModelQwen/Qwen2.5-Coder-32B-Instruct
Fine-tuning MethodFull-parameter SFT
Parameters~32.8B
ArchitectureQwen2ForCausalLM
Hidden Size5120
Num Layers64
Num Attention Heads40 (8 KV heads, GQA)
Intermediate Size27648
Max Context Length64K tokens
Precisionbfloat16

Training Details

PropertyValue
Training Data634 resolved SWE-Gym instances
Teacher ModelQwen3-Coder-480B-A35B-Instruct
Agent FrameworkOpenHands CodeActAgent
Epochs3
Total Steps60
Batch Size1 per device × 8 GPUs × 4 grad accum = 32 effective
Learning Rate1e-5 (cosine schedule, 10% warmup)
OptimizerAdamW (β1=0.9, β2=0.999, ε=1e-8)
Final Training Loss0.269
Training Runtime~6.0 hours
FrameworkLLaMA-Factory + DeepSpeed
Transformers5.2.0
PyTorch2.6.0

Training Data

The training data consists of 634 resolved instances from the SWE-Gym training set. Trajectories were generated by running Qwen3-Coder-480B-A35B-Instruct (via OpenHands CodeActAgent with maxiter=100) on SWE-Gym tasks, then filtering to only resolved (successful) trajectories. Function-calling messages were converted to non-function-calling format for SFT, and trajectories exceeding 64K tokens were excluded.

Training Curve

StepEpochLossLearning Rate
50.250.4896.67e-06
100.500.3699.92e-06
150.750.3179.47e-06
201.000.2808.64e-06
251.250.2557.50e-06
301.500.2346.15e-06
351.750.2314.71e-06
402.000.2263.29e-06
452.250.2082.01e-06
502.500.2029.89e-07
552.750.2113.02e-07
603.000.2068.46e-09

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
    "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k",
    torch_dtype="auto",
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k")

Citation

If you use this model, please cite SWE-Gym and OpenHands:

bibtex
@article{pan2024swegym,
  title={Training Software Engineering Agents and Verifiers with SWE-Gym},
  author={Pan, Jiayi and Xiao, Xingyao and Wang, Jinda and Graham, Colin and Wang, Xinran and Hu, Hoang and Wang, Rui and Shi, Heng and Liu, Pengfei and Wang, Huan and Qian, Cong},
  journal={ICML},
  year={2025}
}