Downloads · 30 days
6
10% of all-time downloads
March07/Qwen2.5-Coder-32B-terminal-agent-sft-mix2040
Qwen2.5-Coder-32B-terminal-agent-sft-mix2040 is a text generation model from March07. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Full-parameter SFT of Qwen/Qwen2.5-Coder-32B-Instruct on 2,040 multi-turn terminal-agent trajectories.
Downloads · 30 days
6
10% of all-time downloads
All-time downloads
62
Public
Parameters
1.1M
65.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors65.5 GB · 100%
From the Hugging Face model README
Full-parameter SFT of Qwen/Qwen2.5-Coder-32B-Instruct on 2,040 multi-turn terminal-agent trajectories.
This is Arm B of a size-matched ablation studying whether the gain from lowering the trajectory-inclusion threshold comes from data quality or data quantity. Arm B holds the sample count fixed at 2,040 (equal to the all-pass baseline, Arm A) but draws uniformly from the full trajectory pool, so only composition varies:
| trajectories | composition | |
|---|---|---|
| Arm A (baseline) | 2,040 | 100% fully-passing |
| Arm B (this model) | 2,040 | 1,255 fully-passing + 785 imperfect (38%) |
Trajectories are multi-turn bash-agent rollouts. Tool calls are emitted as
plain text inside the assistant turn using a <tool_call>{"name": "bash", ...}</tool_call>
protocol defined in the system prompt (not native function calling), and tool
output returns in a tool role. Loss is computed on assistant turns only.
Full-parameter SFT via LLaMA-Factory, DeepSpeed ZeRO-3, BF16, on 8x B200.
| hyperparameter | value |
|---|---|
| learning rate | 5e-6 |
| lr scheduler | cosine, warmup ratio 0.1 |
| weight decay | 0.0 |
| optimizer | AdamW |
| epochs | 5 |
| per-device batch size | 1 |
| gradient accumulation | 8 |
| effective batch size | 64 |
| max sequence length | 20,000 |
| precision | bf16 |
| attention | sdpa |
Final train loss 0.2652 (from 0.9019 at step 5); mean train loss 0.3865 over 160 steps / 5 epochs. Runtime 8,812s.
Note: 5.3% of samples exceed the 20,000-token cutoff and are truncated.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "March07/Qwen2.5-Coder-32B-terminal-agent-sft-mix2040"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
messages = [
{"role": "system", "content": "You are an expert technical assistant with access to bash tools."},
{"role": "user", "content": "List the files in /workspace."},
]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=512)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))