Training Stability › Stability in Practice: A Reference Checklist
Michael BrenndoerferJanuary 28, 20262 min read
Language AI HandbookAll chapters Part 32 of 67Training Optimization
Training Stability › Stability in Practice: A Reference ChecklistOne section · Sections in this chapter12 / 15 ↓
Sections in this chapter15
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Bringing together the techniques from this chapter, here is a practical reference for building a stable training configuration:
Architecture choices:
- Use pre-norm (LayerNorm before sub-layers) rather than post-norm for transformers with more than 12 layers
- Scale down output projections by at initialization to prevent residual stream variance growth
- Consider QK normalization for models with very large heads or trained on very long sequences
Optimizer choices:
- Use AdamW with , or
- Set for float32 training; increase to for mixed-precision
- Apply gradient clipping at as a starting point; tune based on observed clip frequency
- Use non-zero weight decay (typically 0.01-0.1) to prevent unbounded parameter growth
Scheduling choices:
- Warm up the learning rate linearly for 1000-4000 steps depending on model size
- Use cosine decay after warmup for smooth long-term stability
- Avoid sudden learning rate changes after warmup (no step functions)
Monitoring choices:
- Log gradient norm at every step
- Log per-layer gradient norms every 100 steps for architectural debugging
- Log parameter norms every 200 steps to detect weight decay failure
- Set up automated spike detection with rolling window statistics
- Checkpoint every 500-1000 steps with full optimizer state
Data choices:
- Filter documents with extreme token repetition, very high loss, or encoding artifacts
- Consider curriculum learning (easier examples first) to avoid outlier batches in early training
- Log the data indices of batches that precede loss spikes for post-hoc analysis