Skip to content

FastPersist: Making Per-Iteration Deep Learning Checkpointing Nearly Free

October 30, 2026

Show notes

This episode examines FastPersist, a DeepSpeed paper on making deep learning model checkpointing fast enough to save every training iteration. It lays out why checkpoint time has grown to 50–96% of iteration time as data parallelism scaled, and why a checkpoint is so large: mixed-precision Adam state works out to about 14 bytes per parameter, or 173 GB for a 13B model. The discussion traces the slowness to torch.save issuing small, unaligned writes. That leaves NVMe drives well below peak, with the baseline reaching under 20% of the 24.8 GB/s a RAID-0 array can deliver. It also covers the structural opportunity to overlap checkpointing with the next forward and backward passes, and to spread writes across data-parallel replicas that hold identical state. The episode compares the approach with CheckFreq, Check-N-Run and Gemini, and it questions whether checkpointing every iteration is the right target. It also notes what the paper leaves out, such as SSD write-cache behavior and flash wear. Sources: 1. FastPersist: Accelerating Model Checkpointing in Deep Learning — Guanhua Wang, Olatunji Ruwase, Bing Xie, Yuxiong He, 2024 http://arxiv.org/abs/2406.13768 2. CheckFreq: Frequent, Fine-Grained DNN Checkpointing — Jayashree Mohan, Amar Phanishayee, Vijay Chidambaram, 2021 https://scholar.google.com/scholar?q=CheckFreq%3A+Frequent%2C+Fine-Grained+DNN+Checkpointing 3. Gemini: Fast Failure Recovery in Distributed Training with In-Memory Checkpoints — Zhuang Wang, Zhen Jia, Shuai Zheng, Zhen Zhang, Xinwei Fu, T. S. Eugene Ng, Yida Wang, 2023 https://scholar.google.com/scholar?q=Gemini%3A+Fast+Failure+Recovery+in+Distributed+Training+with+In-Memory+Checkpoints 4. Check-N-Run: A Checkpointing System for Training Deep Learning Recommendation Models — Assaf Eisenman, Kiran Kumar Matam, Steven Ingram, Dheevatsa Mudigere, Raghuraman Krishnamoorthi, Krishnakumar Nair, Misha Smelyanskiy, Murali Annavaram, 2022 https://scholar.google.com/scholar?q=Check-N-Run%3A+A+Checkpointing+System+for+Training+Deep+Learning+Recommendation+Models 5. ByteCheckpoint: A Unified Checkpointing System for Large Foundation Model Development — Borui Wan, Mingji Han, Yiyao Sheng, Yanghua Peng, Haibin Lin, Mofan Zhang, Zhichao Lai, Menghan Yu, Junda Zhang, Zuquan Song, Xin Liu, Chuan Wu, 2024 https://scholar.google.com/scholar?q=ByteCheckpoint%3A+A+Unified+Checkpointing+System+for+Large+Foundation+Model+Development 6. ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learning — Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, Yuxiong He, 2021 https://scholar.google.com/scholar?q=ZeRO-Infinity%3A+Breaking+the+GPU+Memory+Wall+for+Extreme+Scale+Deep+Learning 7. Characterizing Deep Learning Training Workloads on Alibaba-PAI / Understanding Data Storage and Ingestion for Large-Scale Deep Recommendation Model Training — Mark Zhao, Niket Agarwal, Aarti Basant, Buğra Gedik, Satadru Pan, Mustafa Ozdal, Rakesh Komuravelli, Jerry Pan, Tianshu Bao, Haowei Lu, Sundaram Narayanan, Jack Langman, Kevin Wilfong, Harsha Rastogi, Carole-Jean Wu, Christos Kozyrakis, Parik Pol, 2022 https://scholar.google.com/scholar?q=Characterizing+Deep+Learning+Training+Workloads+on+Alibaba-PAI+%2F+Understanding+Data+Storage+and+Ingestion+for+Large-Scale+Deep+Recommendation+Model+Training 8. What Modern NVMe Storage Can Do, And How To Exploit It: High-Performance I/O for High-Performance Storage Engines — Gabriel Haas, Viktor Leis, 2023 https://scholar.google.com/scholar?q=What+Modern+NVMe+Storage+Can+Do%2C+And+How+To+Exploit+It%3A+High-Performance+I%2FO+for+High-Performance+Storage+Engines 9. PyTorch Distributed Checkpoint (DCP) and async_save — PyTorch team (Meta), 2023-2024 https://scholar.google.com/scholar?q=PyTorch+Distributed+Checkpoint+%28DCP%29+and+async_save 10. Reducing Activation Recomputation / OPT-175B logbook and Llama 3 herd paper (failure analyses) — Susan Zhang et al.; Llama Team, Meta AI, 2022; 2024 https://scholar.google.com/scholar?q=Reducing+Activation+Recomputation+%2F+OPT-175B+logbook+and+Llama+3+herd+paper+%28failure+analyses%29 11. The Young/Daly optimal checkpoint interval and multi-level checkpointing (e.g., SCR, FTI) — J. Young; J. Daly; Moody et al.; Bautista-Gomez et al., 1974; 2006; 2010-2011 https://scholar.google.com/scholar?q=The+Young%2FDaly+optimal+checkpoint+interval+and+multi-level+checkpointing+%28e.g.%2C+SCR%2C+FTI%29 12. GPUDirect Storage / cuFile and SPIN — NVIDIA; Bergman, Brokhman, Cohen, Silberstein, 2017-2022 https://scholar.google.com/scholar?q=GPUDirect+Storage+%2F+cuFile+and+SPIN 13. ReCycle / Oobleck / Bamboo style resilient training without checkpoint restart — Various, 2023-2024 https://scholar.google.com/scholar?q=ReCycle+%2F+Oobleck+%2F+Bamboo+style+resilient+training+without+checkpoint+restart Interactive Visualization: FastPersist: Making Per-Iteration Deep Learning Checkpointing Nearly Free

All episodes of AI Post Transformers

Settings

Display

Language

Decides which stations you see first on the home page.

History

Recently played stations and episodes and your latest searches are only stored in this browser.

Notifications

A short notice when a podcast you follow has a new episode. Turn off single podcasts with the bell on their page.

Account

Save favorites – in the app and on the website.

Keyboard shortcuts

/
Open search
Space
Play or pause
← →
In the player: back 15 s, forward 30 s (episodes) · in a row: next tile
↑ ↓
In a row: target within the tile
Home / End
In a row: first or last tile
Esc
Close window or menu
?
This overview
Now playing

Go to station page

Play next

    Add episodes with “Play next” – they play after the current episode.