Lune

ICML2023顶会

Rockmate: an Efficient, Fast, Automatic and Generic Tool for Re-materialization in PyTorch

Xunyi Zhao, Théotime Le Hellard, Lionel Eyraud-Dubois, Julia Gusak, Olivier Beaumont

摘要

We propose Rockmate to control the memory requirements when training PyTorch DNN models. Rockmate is an automatic tool that starts from the model code and generates an equivalent model, using a predefined amount of memory for activations, at the cost of a few re-computations. Rockmate automatically detects the structure of computational and data dependencies and rewrites the initial model as a sequence of complex blocks. We show that such a structure is widespread and can be found in many models in the literature (Transformer based models, ResNet, RegNets,...). This structure allows us to solve the problem in a fast and efficient way, using an adaptation of Checkmate (too slow on the whole model but general) at the level of individual blocks and an adaptation of Rotor (fast but limited to sequential models) at the level of the sequence itself. We show through experiments on many models that Rockmate is as fast as Rotor and as efficient as Checkmate, and that it allows in many cases to obtain a significantly lower memory consumption for activations (by a factor of 2 to 5) for a rather negligible overhead (of the order of 10% to 20%). Rockmate is open source and available at https: //github.com/topal-team/rockmate .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A fast heuristic to optimize time-space tradeoff for large models 引用了 Efficient Combination of Rematerialization and Offloading for Training DNNs
  • POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging 引用了 Dynamic Tensor Rematerialization
  • POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging 引用了 Efficient Combination of Rematerialization and Offloading for Training DNNs
  • Efficient Combination of Rematerialization and Offloading for Training DNNs 引用了 Dynamic Tensor Rematerialization
  • HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural Networks 引用了 Dynamic Tensor Rematerialization
  • HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural Networks 引用了 POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging
  • HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural Networks 引用了 Efficient Combination of Rematerialization and Offloading for Training DNNs
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. SpeedLoader: An I/O efficient scheme for heterogeneous and distributed LLM operationYiqi Zhang, Yang YouNeurIPS 2024 · 6 次引用
  2. A fast heuristic to optimize time-space tradeoff for large modelsAkifumi Imanishi, Zijian Xu, Masayuki Takagi, Sixue Wang 等NeurIPS 2023 · 2 次引用
  3. HiRemate: Hierarchical Approach for Efficient Re-materialization of Neural NetworksJulia Gusak, Xunyi Zhao, Théotime Le Hellard, Zhe Li 等ICML 2025

它引用的 Paper4

  1. Dynamic Tensor RematerializationMarisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan 等ICLR 2021 · 115 次引用
  2. Varuna: scalable, low-cost training of massive deep learning modelsSanjith Athlur, Nitika Saran, Muthian Sivathanu, Ramachandran Ramjee 等EuroSys 2022 · 81 次引用
  3. Efficient Combination of Rematerialization and Offloading for Training DNNsOlivier Beaumont, Lionel Eyraud-Dubois, Alena ShilovaNeurIPS 2021 · 69 次引用
  4. POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and PagingShishir G. Patil, Paras Jain, Prabal Dutta, Ion Stoica 等ICML 2022 · 52 次引用

相关 Paper

  1. Memory Optimization for Deep NetworksAashaka Shah, Chao-Yuan Wu, Jayashree Mohan, Vijay Chidambaram 等ICLR 2021 · 29 次引用
  2. Occamy: Memory-efficient GPU Compiler for DNN InferenceJaeho Lee, Shinnung Jeong, Seungbin Song, Kunwoo Kim 等DAC 2023 · 3 次引用
  3. T-Control: An Efficient Dynamic Tensor Rematerialization System for DNN TrainingZehua Wang, Junmin Xiao, Xiaochuan Deng, Huibing Wang 等ASPLOS 2026 · 2 次引用
  4. EXACT: Scalable Graph Neural Networks Training via Extreme Activation CompressionZirui Liu, Kaixiong Zhou, Fan Yang, Li Li 等ICLR 2022 · 72 次引用
  5. Sparse Weight Activation TrainingMd Aamir Raihan, Tor M. AamodtNeurIPS 2020 · 83 次引用
黄昏的海面,两侧是细线勾勒的悬崖