CoolFace
Modelpublic

tomoniyukiwo/qwen25_7b_agentbench_lora

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes5downloads
Model Card

qwen257bagentbench_lora

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.

Training Objective

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.

3-Phase Training Strategy

PhaseDataSamplesEpochsLRPurpose
1Original3,70232e-04Foundation with high-quality data
2Original + Synthetic4,82427e-05Generalization via diverse scenarios
3All (+ Distillation)5,42411e-06Reasoning enhancement via distillation

Training Configuration

ParameterValue
Base modelQwen/Qwen2.5-7B-Instruct
MethodQLoRA (base + FP16 LoRA)
LoRA R / Alpha64 / 128
RSLoRAEnabled
Max seq length8192
Optimizeradamw_8bit
Gradient clip1.0
LR schedulerCosine with warmup

Training Results

PhaseFinal Train LossTime
Phase 1 (Foundation)0.31891.2h
Phase 2 (Generalization)0.09921.9h
Phase 3 (Reasoning)0.06261.3h
Total4.4h

Usage

python
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)

With Unsloth (faster)

python
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)

Sources & Terms