Optimal checkpointing frequency
ProofIntermediate⏱ 30 minFine-Tuninggradient checkpointingoptimisation
Problem
- Prove that storing every -th layer gives peak activation storage and that minimises it.
- Compute the saving for and .
- Suppose recomputation costs a fraction of a full training step. Write total cost as a function of under a memory constraint and say when checkpointing is not worth it.
Write a complete argument. Every inequality you use should be one you could state precisely.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| When activations dominate | Fine-Tuning | Numerical | 30 min | ||
| Will this fine-tune fit? | Fine-Tuning | Numerical | 30 min | ||
| Choosing the draft length | LLM Ops | Numerical | 30 min | ||
| Implement gradient descent and verify all four rates run | Optimization | Coding | 3 hours | ||
| Optimal clipping for a Laplace-distributed tensor | Quantization | Proof | 1 hour |