Checkmate:用最佳张量再物质化打破记忆墙
Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerialization
摘要:
我们将DNN训练时间和内存需求的权衡问题形式化为张量重新物化优化问题,这是先验检查点策略的推广。我们介绍了Checkmate,一个系统,解决了最佳的rematerialization时间表在合理的时间(一个小时以下)使用现成的MILP求解器或接近最佳的时间表与近似算法,然后使用这些时间表,以加速数百万的训练迭代。我们的方法可扩展到复杂的,现实的架构,并通过使用加速器特定的,基于配置文件的成本模型是硬件感知的。除了降低训练成本外,Checkmate还可以使用高达5.1倍的输入大小来训练真实世界的网络。Checkmate是一个开源项目,可以在https://github.com/parasj/checkmate上找到。
英文摘要:
We formalize the problem of trading-off DNN training time and memory requirements as the tensor rematerialization optimization problem, a generalization of prior checkpointing strategies. We introduce Checkmate, a system that solves for optimal rematerialization schedules in reasonable times (under an hour) using off-the-shelf MILP solvers or near-optimal schedules with an approximation algorithm, then uses these schedules to accelerate millions of training iterations. Our method scales to complex, realistic architectures and is hardware-aware through the use of accelerator-specific, profile-based cost models. In addition to reducing training cost, Checkmate enables real-world networks to be trained with up to 5.1x larger input sizes. Checkmate is an open-source project, available at https://github.com/parasj/checkmate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。