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. Without a baseline, you can't tell "acceptable approximation" from "silent bug."
A noise baseline
So I measure the noise floor first: resume training from an exact checkpoint (no compression at all) but inject 1e-6 relative weight noise, basically floating-point-level perturbation that should be harmless. Run it, measure the final loss gap versus a clean run. That gap is pure numerical noise — the best-case variance you'd see from nothing going wrong at all.
Then I test the actual compression modes (light: 8-bit optimizer state; smallest: light + fp16 weights) the same way, and compare their final-loss gap against that noise floor.
The rule
A compression mode passes only if its loss gap is within 3x the noise gap, with a floor (0.05 loss or 3 accuracy points, whichever is more lenient) so a tiny noise baseline doesn't make the bar impossibly strict.
This matters because it's falsifiable. If someone introduces a bug tomorrow, the test catches it, because "quietly worse than noise" fails. "Looks about the same" wouldn't have.
What it looks like in practice (T4 GPU)
| Mode | Size vs. exact | Passed the 3x-noise test |
|---|---|---|
| light | ~2.0x smaller (AdamW transformer) | yes |
| smallest | ~2.9x smaller (AdamW transformer) | yes |
| light | ~1.6x smaller (ResNet-18, SGD) | yes |
| smallest | ~2.6x smaller (ResNet-18, SGD) | yes |
For a LoRA-style run where only trainable weights are saved, a checkpoint went from 44.23 MB to 1.61 MB, same approach: verified against the noise floor, not just eyeballed.
Where this lives
This is part of Efficio, which also handles resuming training across Colab/Kaggle disconnects and saving checkpoints to Hugging Face Hub or Drive instead of a VM disk that disappears with the session.
pip install efficio - PyPI: https://pypi.org/project/efficio/
- GitHub: https://github.com/HuNTer8272/Efficio
- Benchmarks (full methodology + code): https://github.com/HuNTer8272/Efficio/tree/main/benchmarks
Curious if others have used a noise-floor-style baseline for other things, not just checkpoints — I'd guess it generalizes to any "does this optimization silently hurt correctness" question.

