Views
No views yet
| パラメータ | 値 |
|---|---|
| ベースモデル | unsloth/Qwen3-4B-Instruct-2507 |
| 手法 | QLoRA (4-bit) |
| 最大シーケンス長 | 1024 |
| エポック数 | 1 |
| 学習率 | 3e-6 |
| LoRA パラメータ | r=64, α=128 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model = AutoModelForCausalLM.from_pretrained(
5 "Qwen/Qwen3-4B-Instruct-2507",
6 torch_dtype="auto",
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
10
11model = PeftModel.from_pretrained(base_model, "tmiyamoto/qwen3-4b-20260207_0652-exp09-LR3e-6")