Downloads · 30 days
8
15% of all-time downloads
tomoniyukiwo/qwen25_7b_agentbench_lora
qwen25_7b_agentbench_lora is a text generation model from tomoniyukiwo. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository provides a LoRA adapter fine-tuned from Qwen/Qwen2.5-7B-Instruct using LoRA + Unsloth + 3-Phase Training.
Downloads · 30 days
8
15% of all-time downloads
All-time downloads
52
Public
Parameters
7.6B
15.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.9 GB · 100%
From the Hugging Face model README
This repository provides a LoRA adapter fine-tuned from Qwen/Qwen2.5-7B-Instruct using LoRA + Unsloth + 3-Phase Training.
Note: This repository contains LoRA adapter weights only. The base model must be loaded separately.
This adapter is trained to improve multi-turn agent task performance on ALFWorld (household tasks) and DBBench (database operations).
Loss is applied to all assistant turns in the multi-turn trajectory, enabling the model to learn environment observation, action selection, tool use, and recovery from errors.
| Phase | Data | Samples | Epochs | LR | Purpose |
|---|---|---|---|---|---|
| 1 | Original | 3,702 | 3 | 2e-04 | Foundation with high-quality data |
| 2 | Original + Synthetic | 4,824 | 2 | 7e-05 | Generalization via diverse scenarios |
| 3 | All (+ Distillation) | 5,424 | 1 | 1e-06 | Reasoning enhancement via distillation |
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen2.5-7B-Instruct |
| Method | QLoRA (base + FP16 LoRA) |
| LoRA R / Alpha | 64 / 128 |
| RSLoRA | Enabled |
| Max seq length | 8192 |
| Optimizer | adamw_8bit |
| Gradient clip | 1.0 |
| LR scheduler | Cosine with warmup |
| Phase | Final Train Loss | Time |
|---|---|---|
| Phase 1 (Foundation) | 0.3189 | 1.2h |
| Phase 2 (Generalization) | 0.0992 | 1.9h |
| Phase 3 (Reasoning) | 0.0626 | 1.3h |
| Total | 4.4h |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = "Qwen/Qwen2.5-7B-Instruct"
adapter = "tomoniyukiwo/qwen25_7b_agentbench_lora"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(
base,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter)
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="tomoniyukiwo/qwen25_7b_agentbench_lora",
max_seq_length=8192,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)