Run this model with HF Jobs
Run MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k") model = AutoModelForCausalLM.from_pretrained("MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k
- SGLang
How to use MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k with Docker Model Runner:
docker model run hf.co/MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k
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
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-Coder-32B-Instruct |
| Fine-tuning Method | Full-parameter SFT |
| Parameters | ~32.8B |
| Architecture | Qwen2ForCausalLM |
| Hidden Size | 5120 |
| Num Layers | 64 |
| Num Attention Heads | 40 (8 KV heads, GQA) |
| Intermediate Size | 27648 |
| Max Context Length | 64K tokens |
| Precision | bfloat16 |
Training Details
| Property | Value |
|---|---|
| Training Data | 634 resolved SWE-Gym instances |
| Teacher Model | Qwen3-Coder-480B-A35B-Instruct |
| Agent Framework | OpenHands CodeActAgent |
| Epochs | 3 |
| Total Steps | 60 |
| Batch Size | 1 per device ร 8 GPUs ร 4 grad accum = 32 effective |
| Learning Rate | 1e-5 (cosine schedule, 10% warmup) |
| Optimizer | AdamW (ฮฒ1=0.9, ฮฒ2=0.999, ฮต=1e-8) |
| Final Training Loss | 0.269 |
| Training Runtime | ~6.0 hours |
| Framework | LLaMA-Factory + DeepSpeed |
| Transformers | 5.2.0 |
| PyTorch | 2.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
| Step | Epoch | Loss | Learning Rate |
|---|---|---|---|
| 5 | 0.25 | 0.489 | 6.67e-06 |
| 10 | 0.50 | 0.369 | 9.92e-06 |
| 15 | 0.75 | 0.317 | 9.47e-06 |
| 20 | 1.00 | 0.280 | 8.64e-06 |
| 25 | 1.25 | 0.255 | 7.50e-06 |
| 30 | 1.50 | 0.234 | 6.15e-06 |
| 35 | 1.75 | 0.231 | 4.71e-06 |
| 40 | 2.00 | 0.226 | 3.29e-06 |
| 45 | 2.25 | 0.208 | 2.01e-06 |
| 50 | 2.50 | 0.202 | 9.89e-07 |
| 55 | 2.75 | 0.211 | 3.02e-07 |
| 60 | 3.00 | 0.206 | 8.46e-09 |
Usage
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:
@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}
}
- Downloads last month
- 38
Model tree for MMR115/swegym-qwen2.5-coder-32b-instruct-sft-64k
Base model
Qwen/Qwen2.5-32B