Setting the file. One moment.
Subchapter 31.32
workflows/iterative-training.mdMarkdown3 KBView on GitHub
Systematically improve a fine-tuned model through successive experiments.
1. Train with current config
2. Analyze training curves
3. Evaluate on held-out set
4. Diagnose what to change
5. Plan next experiment
→ Better than baseline? → Good enough? → Ship it (or loop back to 4)Rule: Change ONE variable per experiment.
| Run | Base model | Dataset | Epochs | LR | Batch | Best val_loss | Combined eval |
|---|---|---|---|---|---|---|---|
| R1 | gpt-4.1-mini | v1 (335 ex) | 2 | 1.0 | default | 0.320 | 8.05 |
| R2 | gpt-4.1-mini | v1 (335 ex) | 2 | 0.5 | default | 0.310 | 9.15 |
| … | … | … | … | … | … | … | … |
See references/hyperparameters.md for full guide.
Quick sweep strategy:
| Model | Best for |
|---|---|
| gpt-4.1-mini | Best quality-per-dollar, most tasks |
| gpt-4.1-nano | Fastest inference, simple tasks |
| gpt-oss-20b | Large datasets, lowest absolute loss |
| Ministral-3B | Lightweight, fast inference |
| Qwen-3-32B, Llama-3.3-70B | Multilingual or specialized tasks |
references/training-types.md before switchingTraining curves healthy (no overfitting)?
├─ Yes
│ ├─ Eval improved? → Refine further
│ └─ Eval same/worse? → Data quality issue — filter or augment
└─ No (overfitting)
├─ Earlier checkpoint evals well? → Deploy that checkpoint
├─ Not severe → Reduce epochs or lower LR
└─ Severe (ratio > 2.0)
├─ Dataset too small → Add more data
└─ Dataset large → Lower LR dramatically (0.1-0.3)Run the same dataset through 2-3 base models: