Downloads · 30 days
5
8% of all-time downloads
NobutaMN/qwen3-4b-structeval-lora-v2change-sft7000-run7
qwen3-4b-structeval-lora-v2change-sft7000-run7 is a text generation model from NobutaMN. 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 NobutaMN/qwen3-4b-structeval-merged-v2change using QLoRA (4-bit, Unsloth).
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
61
Public
Repo size
529 MB
Likes
0
Public
Click a slice to open those files.
.safetensors529 MB · 100%
From the Hugging Face model README
This repository provides a LoRA adapter fine-tuned from
NobutaMN/qwen3-4b-structeval-merged-v2change using QLoRA (4-bit, Unsloth).
This repository contains LoRA adapter weights only.
The base model must be loaded separately.
This adapter is trained to improve structured output accuracy, focusing on format adherence and structural correctness.
It aims to reduce format breakage in model outputs across common structured formats: JSON / YAML / XML / TOML / CSV.
Loss application
Chain-of-Thought handling
Output:, OUTPUT:, Final:, Answer:, Result:, Response:)Device
Precision
bfloat16 (bf16) is recommended when supportedfloat16 (fp16) when bf16 is not availablefrom transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = "NobutaMN/qwen3-4b-structeval-merged-v2change"
adapter = "your_id/qwen3-4b-structeval-lora-v2change-sft7000-run7"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(
base,
torch_dtype=torch.bfloat16
if torch.cuda.is_available() and torch.cuda.is_bf16_supported()
else torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter)