Prompt first
Use prompting or few-shot examples when behavior can be expressed clearly and the added context still fits latency and cost constraints.
A framework-neutral checklist for controlled experiments. Hyperparameters and memory needs depend on the exact model, data, objective, and hardware; copy values only from a maintained recipe for that combination, then validate them in a pilot.
Use prompting or few-shot examples when behavior can be expressed clearly and the added context still fits latency and cost constraints.
Use retrieval for changing, private, or attributable knowledge and tools for calculations, actions, and authoritative system state.
Fine-tune a repeated behavior only when you have representative examples, a sealed test set, and a measured baseline to beat.
| Control | Why it matters | Signal to inspect |
|---|---|---|
| Learning rate | Sets update magnitude | Instability, slow learning, validation quality |
| Training duration | Controls exposure to examples | Held-out plateau and regression growth |
| Effective batch | Changes gradient noise and throughput | Steps per second, memory, convergence |
| Sequence length | Strongly affects memory and training distribution | Truncation, padding waste, long-input quality |
| LoRA rank and targets | Sets adapter capacity and placement | Trainable parameters, task quality, overfitting |
| Precision / quantization | Trades memory, compatibility, and numerical behavior | NaNs, speed, memory, exported-model quality |