qwen2.5-1.5b-structured-output-lora-v4

This repository provides a LoRA adapter fine-tuned from unsloth/Qwen2.5-1.5B-Instruct using QLoRA (4-bit, Unsloth).

This repository contains LoRA adapter weights only. The base model must be loaded separately.

Training Objective

This adapter is trained to improve structured output accuracy (JSON / YAML / XML / TOML / CSV).

Loss is applied only to the final assistant output, while intermediate reasoning (Chain-of-Thought) is masked.

Training Configuration

  • Base model: unsloth/Qwen2.5-1.5B-Instruct
  • Method: QLoRA (4-bit)
  • Max sequence length: 1024
  • Epochs: 2
  • Learning rate: 1e-04
  • LoRA: r=64, alpha=128

Usage

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

base = "unsloth/Qwen2.5-1.5B-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: daichira/structured-3k-mix-sft

Dataset License: Please refer to the specific dataset repository for the exact license terms. Compliance: Users must comply with the dataset's license and the base model's original terms of use.

Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Keisanshi/qwen2.5-1.5b-structeval-lora-v4

Adapter
(510)
this model

Dataset used to train Keisanshi/qwen2.5-1.5b-structeval-lora-v4