Downloads · 30 days
21
18% of all-time downloads
deepkick/qwen3-4b-structured-sft-lora
qwen3-4b-structured-sft-lora is a text generation model from deepkick. 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 on structured output tasks using supervised fine-tuning (SFT), aiming to improve the stability and correctness of structured outputs such as JSON, YAML, XML, CSV, and…
Downloads · 30 days
21
18% of all-time downloads
All-time downloads
117
Public
Repo size
3.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors529 MB · 97%
From the Hugging Face model README
This repository provides a LoRA adapter fine-tuned on structured output tasks using supervised fine-tuning (SFT), aiming to improve the stability and correctness of structured outputs such as JSON, YAML, XML, CSV, and TOML.
This repository contains LoRA adapter weights only. The base model must be loaded separately.
No changes were made to the base model architecture.
This model was trained exclusively on datasets provided or introduced by the course organizers.
No external datasets were used. No data generated or modified using LLMs was used during training.
Example usage:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base_model = "Qwen/Qwen3-4B-Instruct-2507"
lora_model = "deepkick/qwen3-4b-structured-sft-lora"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
base_model,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, lora_model)
This adapter is intended for structured output generation tasks where strict adherence to specified output formats is required.
Typical use cases include:
Training data: u-10bei/structured_data_with_cot_dataset_512_v2
Dataset License: MIT License (users must comply with the dataset license terms).
This model card declares Apache-2.0 to match the base model license. Please also comply with the training dataset license (MIT) and the base model terms.