CoolFace
Modelpublic

naru0411/LLM-Competition-advanced-004

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

qwen2.5-7b-agent-trajectory-lora

This repository provides a LoRA adapter fine-tuned from Qwen/Qwen2.5-7B-Instruct using LoRA + Unsloth. This adapter is specifically optimized for high-performance autonomous agents that balance spatial efficiency and logical reasoning.

Training Objective

This adapter is trained to improve multi-turn agent task performance across two distinct domains:

  1. 1.ALFWorld (Physical Commonsense): Focuses on efficient household task completion with minimal redundant exploration.
  2. 2.DBBench (Logical Reasoning): Focuses on accurate SQL generation and autonomous error recovery using the ReAct framework.

Training Configuration

  • —Base model: Qwen/Qwen2.5-7B-Instruct
  • —Method: LoRA (Unsloth optimized)
  • —Max sequence length: 4096
  • —Epochs: 2
  • —Learning rate: 2e-06
  • —LoRA Config: r=64, alpha=128, targetmodules=alllinears

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch

base = "Qwen/Qwen2.5-7B-Instruct"
adapter = "your_id/your-repo"

tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(
    base,
    torch_dtype=torch.float16,
    device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter)

Sources & Terms (IMPORTANT)

Training data ALFWorld Data: u-10bei/sftalfworldtrajectorydatasetv5 DBBench Data: u-10bei/dbbenchsftdatasetreactv4

Dataset License: MIT License. This dataset is used and distributed under the terms of the MIT License. Compliance: Users must comply with the MIT license (including copyright notice) and the base model's original terms of use.