Checkpoint compression sounds simple: store less, use less disk, upload faster. The hard part is proving it didn't quietly break your model. "The file is smaller" is not evidence. I needed something that would actually catch a bug if I introduced one.
Here's the method I ended up with, built into Efficio, an open-source PyTorch training library.
The problem with "looks fine to me"
If you shrink a checkpoint (say, storing optimizer state in 8-bit instead of fp32), the obvious test is: resume training, check the final loss, see if it's close to the un-shrunk version. But "close" compared to what? Loss is noisy between runs even with no compression at all, just from floating-point nondeterminism and scheduling.β¦