LoRA adapter fine-tuned on
SWE-Gym/OpenHands-SFT-Trajectories for software engineering / agentic code-editing tasks.
Loss decreased from ~0.8 (early steps) to ~0.07–0.22 (final steps), with entropy tracking similarly — indicating the model learned lower-entropy, more confident distributions on SWE trajectory data.
1from peft import PeftModel
2from transformers import AutoTokenizer, AutoModelForCausalLM
3import torch
4
5base = AutoModelForCausalLM.from_pretrained(
6 "Qwen/Qwen3.5-9B",
7 torch_dtype=torch.bfloat16,
8 device_map="auto",
9)
10tokenizer = AutoTokenizer.from_pretrained("Shreyansh327/qwen3.5-9b-swegym-lora-full")
11model = PeftModel.from_pretrained(base, "Shreyansh327/qwen3.5-9b-swegym-lora-full")
12model.eval()
1from unsloth import FastVisionModel
2
3model, tokenizer = FastVisionModel.from_pretrained(
4 "Shreyansh327/qwen3.5-9b-swegym-lora-full",
5 max_seq_length=8192,
6 load_in_16bit=True,
7)
Agentic software engineering — the model is trained to follow OpenHands-style trajectories: reading files, running bash commands, editing code, and submitting patches to resolve GitHub issues. Pair with an agent scaffold (e.g., OpenHands) for best results.