Views
No views yet
1fence = chr(96) * 3
2user = f"{fence}python\n{code}\n{fence}\n{student_message}"
3messages = [
4 {"role": "system", "content": "You are a Python state-lifetime tutor."},
5 {"role": "user", "content": user},
6]
7text = tokenizer.apply_chat_template(
8 messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
9)do_sample=False); that is how it was
trained and how every reported number was measured.| Base model | Qwen/Qwen3-0.6B |
| Dataset | machalek29/state-lifetime-tutor-v1, first 250 examples by rank |
| Method | LoRA r=16, alpha=16, all linear projections, loss on the reply only |
| Frozen base precision | bf16 |
| Steps | 96 |
| Final training loss | 0.7950 |
| Wall clock | 529s |
datasets=5.0.1, device=mps, peft=0.20.0, quantized_base=bf16, torch=2.13.0, transformers=5.15.0, trl=1.10.0| Metric | Value |
|---|---|
| Spec adherence (24 clean) | 100% |
| Robustness (12 adversarial) | 100% |
| Mechanical check pass | 100% |