Menu

How do you prove a smaller checkpoint hasn't lost accuracy? (not just "trust me")
πŸ“°

How do you prove a smaller checkpoint hasn't lost accuracy? (not just "trust me")

DEV Community: pytorchΒ·DurveshΒ·12 days ago
#PO6XxgFc
#devtopytorch#devto#dev#noise#efficio
Long article (439 words) β€” no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.