Downloads · 30 days
11
22% of all-time downloads
daichira/test-lora-repo
test-lora-repo is a text generation model from daichira. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
This repository provides a LoRA adapter fine-tuned from unsloth/Qwen3-4B-Instruct-2507 using Unsloth (QLoRA, 4-bit base).
Downloads · 30 days
11
22% of all-time downloads
All-time downloads
51
Public
Repo size
540 MB
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 from unsloth/Qwen3-4B-Instruct-2507 using Unsloth (QLoRA, 4-bit base).
This adapter was trained for structured output quality (format conversion / structured serialization) while avoiding learning verbose chain-of-thought.
Loss design
OUTPUT_LEARN_MODE="after_marker"Output:, OUTPUT:, Final:, Answer:, Result:, Response:MASK_COT=True this typically means learning the content after Output: (suppressing CoT-style "Approach:" text).This setup is intended to improve final answer correctness and formatting without encouraging the model to emit chain-of-thought.
2026-01-18_062458Zunsloth/Qwen3-4B-Instruct-2507u-10bei/structured_data_with_cot_dataset_512_v2512340720.00010.10.0528 (effective batch ≈ 16)641280.0q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projThe training dataset uses chat messages and often includes a short reasoning header followed by a final structured output. With the default masking setup, the adapter is optimized primarily for the final structured segment.
Typical assistant response shape:
Approach: (may be present, but often masked from loss)Output: (structured data begins here; primary training target)You can encourage concise responses by explicitly requesting: "Return ONLY the final structured output."
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base_id = "unsloth/Qwen3-4B-Instruct-2507"
adapter_id = "daichira/lora_structeval_t_qwen3_4b_0118"
tokenizer = AutoTokenizer.from_pretrained(base_id, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(
base_id,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()
# Example: run generation with your preferred chat template usage.
This is a LoRA adapter, not a standalone model. You must load unsloth/Qwen3-4B-Instruct-2507 separately.
Format correctness depends on your decoding settings and prompt discipline. For strict tasks, consider:
temperature=0 (or low), top_p=1.0The adapter is specialized for structured serialization/format conversion; it may not improve general chat ability.
u-10bei/structured_data_with_cot_dataset_512_v2 (referenced on Hugging Face Hub)unsloth/Qwen3-4B-Instruct-2507 (these apply to derivatives/adapters as well).other (model card metadata)unsloth/Qwen3-4B-Instruct-2507 apply. Dataset terms for u-10bei/structured_data_with_cot_dataset_512_v2 apply.