Downloads · 30 days
5
8% of all-time downloads
asahina460105/your-lora-repo
your-lora-repo is a text generation model from asahina460105. 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.
本リポジトリは、Qwen/Qwen3-4B-Instruct-2507 をベースに QLoRA (4-bit, Unsloth) を用いてファインチューニングされた LoRAアダプター を提供します。
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
59
Public
Repo size
540 MB
Likes
0
Public
Click a slice to open those files.
.safetensors529 MB · 97%
From the Hugging Face model README
本リポジトリは、Qwen/Qwen3-4B-Instruct-2507 をベースに QLoRA (4-bit, Unsloth) を用いてファインチューニングされた LoRAアダプター を提供します。
※このリポジトリには LoRAアダプターの重みのみ が含まれています。推論を行うには、別途ベースモデルを読み込む必要があります。
このアダプターは、構造化出力の精度(JSON / YAML / XML / TOML / CSV)を向上させることを目的に学習されています。
学習時のLoss(損失)はアシスタントの最終的な出力部分にのみ適用され、中間の推論プロセス(Chain-of-Thought; CoT)部分はマスク処理されています。
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = "Qwen/Qwen3-4B-Instruct-2507"
# ご自身のHugging Face IDとリポジトリ名に変更してください
adapter = "your_id/your-repo"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(
base,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter)