Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5base = "unsloth/Qwen3-4B-Instruct-2507"
6adapter = "Orifusa/qwen3-4b-structured-output-lora-pre-study.2ya"
7
8tokenizer = AutoTokenizer.from_pretrained(base)
9model = AutoModelForCausalLM.from_pretrained(
10 base,
11 torch_dtype=torch.float16,
12 device_map="auto",
13)
14model = PeftModel.from_pretrained(model, adapter)1## Sources & License (IMPORTANT)
2Training Data: u-10bei/structured_data_with_cot_dataset_512_v2
3Dataset License: Creative Commons Attribution (CC-BY-4.0). This dataset is used and can be redistributed under the terms of the CC-BY-4.0 license.
4Compliance: Users must comply with both the dataset's attribution requirements and the base model's original terms of use.