Views
No views yet
<thinking>...</thinking> completely removedyaml, json, xml, toml, ````csv removed1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5base = "Qwen/Qwen3-4B-Instruct-2507"
6adapter = "yuk1chan/qwen3-4b-structeval-clean-lr6e-6"
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)
15
16# Inference
17prompt = "Generate YAML code for..."
18# ... your inference code
19
20Training Results
21
22- Training Loss: ~1.5
23- Validation Loss: ~1.6
24- Training Steps: ~1,172
25- Final Score: TBD (StructEval-T evaluation)
26
27License
28
29Apache 2.0
30
31---
32Trained on Cleaned StructEval dataset (20,000 samples)
33Learning Rate: 6e-6 (conservative setting)