Downloads · 30 days
9
12% of all-time downloads
karaage0703/matsuo-llm-2025-qwen3-4b-sft-v6a-merged
matsuo-llm-2025-qwen3-4b-sft-v6a-merged is a text generation model from karaage0703. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides a merged (16-bit) fine-tuned model based on Qwen/Qwen3-4B-Instruct-2507, trained using QLoRA (4-bit, Unsloth).
Downloads · 30 days
9
12% of all-time downloads
All-time downloads
75
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This repository provides a merged (16-bit) fine-tuned model based on Qwen/Qwen3-4B-Instruct-2507, trained using QLoRA (4-bit, Unsloth).
This is a fully merged model. No separate base model loading is required.
This model 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.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "karaage0703/matsuo-llm-2025-qwen3-4b-sft-v6a-merged"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
This model was trained 2x faster with Unsloth and Huggingface's TRL library.