Views
No views yet
Note (reproducibility): The training artifacts also record a 4-bit loading base pathunsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bitinadapter_config.json.
The canonical base model ID for this run isQwen/Qwen3-4B-Instruct-2507as specified inmeta.json.
SFT_MASK_COT=1)after_marker (loss is applied only to the assistant output after output markers)Output:, OUTPUT:, Final:, Answer:, Result:, Response:meta.json):Qwen/Qwen3-4B-Instruct-2507u-10bei/structured_data_with_cot_dataset_512_v21from 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-lr1e6-ep2"
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)