Downloads · 30 days
13
3% of all-time downloads
sabia0080/qwen3-4b-sft-v0-cotv2-lr2e6-ep2
qwen3-4b-sft-v0-cotv2-lr2e6-ep2 is a text generation model from sabia0080. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This repository provides a LoRA adapter fine-tuned from Qwen/Qwen3-4B-Instruct-2507.
Downloads · 30 days
13
3% of all-time downloads
All-time downloads
385
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 Qwen/Qwen3-4B-Instruct-2507.
Note (reproducibility): Training was run with a 4-bit loading setup (QLoRA-style).
The adapter artifacts recordunsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bitas the base loading path inadapter_config.json, while the canonical base model ID for this run isQwen/Qwen3-4B-Instruct-2507as specified inmeta.json.
This repository contains LoRA adapter weights only. The base model must be loaded separately.
This adapter is trained via supervised fine-tuning (SFT) to improve structured output accuracy (JSON / YAML / XML / TOML / CSV).
SFT_MASK_COT=1)after_marker (loss is applied only to assistant output after output markers)Output:, OUTPUT:, Final:, Answer:, Result:, Response:Key settings (from meta.json):
Qwen/Qwen3-4B-Instruct-2507u-10bei/structured_data_with_cot_dataset_512_v2SFT_USE_UPSAMPLING=0)
{"xml_to_yaml": 2.0}from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# Canonical base model ID (from meta.json)
base = "Qwen/Qwen3-4B-Instruct-2507"
# Adapter repo ID
adapter = "your_id/qwen3-4b-sft-v0-cotv2-lr2e6-ep2"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(
base,
torch_dtype=torch.bfloat16, # matches USE_BF16=true
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter)
Training data: u-10bei/structured_data_with_cot_dataset_512_v2 Dataset License/Terms: Please refer to the dataset card on Hugging Face and comply with its terms. Base Model Terms: You must comply with the base model’s original license/terms of use.
Repository License: MIT