Downloads · 30 days
5
9% of all-time downloads
kevineen/Qwen3-4B-instruct-2507-exp01-dpo
Qwen3-4B-instruct-2507-exp01-dpo is a machine learning model from kevineen. Use it for the machine learning task on the model card, and read the license before you ship it in a product. 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
9% of all-time downloads
All-time downloads
58
Public
Repo size
58.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors47.2 MB · 75%
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)はマスクされています。
Qwen/Qwen3-4B-Instruct-2507| Parameter | Value |
|---|---|
| Dataset ID | N/A |
| Max Sequence Length | N/A |
| Validation Ratio | N/A |
| Holdout Ratio | N/A |
| CoT Masking | true (アシスタント出力のみ適用) |
| Upsampling | N/A |
| Parameter | Value |
|---|---|
| Rank (r) | 16 |
| Alpha | 32 |
| Dropout | 0.05 |
| Parameter | Value |
|---|---|
| Epochs | N/A |
| Batch Size | N/A |
| Gradient Accumulation | N/A |
| Learning Rate | N/A |
| Warmup Ratio | N/A |
| Weight Decay | N/A |
| Seed | N/A |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-4B-Instruct-2507",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "kevineen/Qwen3-4B-instruct-2507-exp01-dpo")
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="kevineen/Qwen3-4B-instruct-2507-exp01-dpo",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
uv run matsuo-train --config configs/experiments/exp01_dpo.yaml
This adapter is released under the Apache 2.0 License.
本データセットは、CC-BY-4.0 ライセンスの条項に基づき、使用および再配布が可能です。
利用者は、以下の両方を遵守する必要があります:
ベースモデル: Qwen/Qwen3-4B-Instruct-2507 は、その元の利用規約に従う必要があります。
If you use this model, please cite:
@misc{exp01_dpo},
title={StructEval-T: exp01_dpo},
author={kevineen},
year={2026},
note={Fine-tuned for structured output generation}
}
Generated by matsuo-lastexam submission tools