一句话:提出并发检查点机制 PCcheck,使 ML 训练可高频持久化到 SSD/PMEM,吞吐开销仅 3%。
大规模 ML 训练耗时长且易失败,使用 spot VM 等廉价资源更会频繁故障。传统做法周期暂停训练并将参数写入持久存储,但高频 checkpoint 开销大,低频又导致恢复时间长。PCcheck 提出并发 checkpoint 机制,在训练继续时持久化模型参数,支持写入 SSD 和持久内存(PMEM),并适用于单机与分布式场景。它允许每 10 次迭代 checkpoint 一次,实现细粒度监控与快速故障恢复,同时将训练吞吐开销控制在约 3%。
Training large-scale machine learning (ML) models is expensive and time-intensive, consuming many hardware accelerators for days or weeks. As the scale of hardware deployments and training time continue to grow, the probability of failures also increases. The desire to use cheaper cloud resources, such as spot VMs, to lower costs also dramatically increases the frequency of failures. The standard approach to deal with failures is to periodically pause training and checkpoint model parameters to persistent storage. Unfortunately, today's checkpointing mechanisms introduce high overhead when applied at high frequencies, yet frequent checkpointing is necessary to avoid long recovery times. We present a concurrent checkpointing mechanism, PCcheck, that allows frequent checkpointing with minimal overhead. Our framework supports persisting checkpoints to SSD and persistent main memory (PMEM) for both single-machine and distributed settings. PCcheck enables checkpointing as frequently as every 10 iterations for detailed monitoring and fast recovery times in case of failures, while maintaining minimal (3%) overhead on training throughput.