Blog31K views4,557 votes1 reply1 comment3,215 following
Trading Compute for Memory: Using torch.utils.checkpoint in PyTorch
Stop hitting CUDA out-of-memory errors. Learn how to use torch.utils.checkpoint to trade a bit of compute time for significant GPU memory savings in deep PyTorch models.