Views
No views yet
Note (reproducibility): Training was run with a 4-bit loading setup (QLoRA-style).
The adapter artifacts recordunsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bitas the base loading path inadapter_config.json, while the canonical base model ID for this run isQwen/Qwen3-4B-Instruct-2507as specified inmeta.json. :contentReference[oaicite:1]{index=1} :contentReference[oaicite:2]{index=2}
SFT_MASK_COT=1) :contentReference[oaicite:4]{index=4}after_marker (loss is applied only to assistant output after output markers) :contentReference[oaicite:5]{index=5}Output:, OUTPUT:, Final:, Answer:, Result:, Response: :contentReference[oaicite:6]{index=6}meta.json): :contentReference[oaicite:7]{index=7}Qwen/Qwen3-4B-Instruct-2507u-10bei/structured_data_with_cot_dataset_512_v2SFT_USE_UPSAMPLING=0)
{"xml_to_yaml": 2.0}adapter_config.json): :contentReference[oaicite:8]{index=8}unsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bit1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5# Canonical base model ID (from meta.json)
6base = "Qwen/Qwen3-4B-Instruct-2507"
7
8# Adapter repo ID
9adapter = "your_id/qwen3-4b-sft-v0-cotv2-lr2e6-ep2-wd001-ga4"
10
11tokenizer = AutoTokenizer.from_pretrained(base)
12model = AutoModelForCausalLM.from_pretrained(
13 base,
14 torch_dtype=torch.bfloat16, # matches USE_BF16=true
15 device_map="auto",
16)
17model = PeftModel.from_pretrained(model, adapter)