Key Features of FlashOptim
mainFlashOptim provides several optimizations for memory-efficient training:
- Memory Savings: Reduces per-parameter memory (e.g., 57% for Adam) and peak training memory by splitting weight representation and quantizing optimizer states.
- Fused Triton Kernels: Compression operations are fused into the update kernel to avoid practical overhead.
- Gradient Release: Optionally updates parameters as soon as gradients are computed to further reduce peak memory.
- Compressed Checkpoints: Supports storing quantized optimizer states to achieve >50% space savings in checkpoints.
- PyTorch API: All optimizers follow the standard
torch.optim.Optimizerinterface.