paper-with-me

홈 › Papers

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

2023-07-03 · Xunyi Zhao, Théotime Le Hellard, Lionel Eyraud, 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.

📄 PDF Abstract BibTeX arXiv:2307.01236

Code (1)

topal-team/rockmate 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…
Average Pooling 설명 없음
Batch Normalization 설명 없음
Residual Block Residual Blocks are skip-connection blocks that learn residual functions with reference to the layer inputs, instead of learning unreferenced functions. They were introduced…
Max Pooling Max Pooling is a pooling operation that calculates the maximum value for patches of a feature map, and uses it to create a downsampled (pooled) feature map. It is usually…
Residual Connection 설명 없음
Global Average Pooling Global Average Pooling is a pooling operation designed to replace fully connected layers in classical CNNs. The idea is to generate one feature map for each corresponding…
Kaiming Initialization 설명 없음

Similar Papers 제목 키워드 기반

Morph-KGC: Scalable knowledge graph materialization with mapping partitions

2022-08-25 · Semantic Web 2022 8 · Julián Arenas-Guerrero, David Chaves-Fraga, Jhon Toledo, María S. Pérez 외

Knowledge graphs are often constructed from heterogeneous data sources, using declarative rules that map them to a target ontology and materializing them into RDF. When these data sources are large, the materialization o…

Data IntegrationKnowledge GraphsKnowledge Graphs Data Curation

A Simple extension of Dematerialization Theory: Incorporation of Technical Progress and the Rebound Effect

2016-01-30

Dematerialization is the reduction in the quantity of materials needed to produce something useful over time. Dematerialization fundamentally derives from ongoing increases in technical performance but it can be countera…

Moccasin: Efficient Tensor Rematerialization for Neural Networks

2023-04-27 · Burak Bartan, Haoming Li, Harris Teague, Christopher Lott 외

The deployment and training of neural networks on edge computing devices pose many challenges. The low memory nature of edge devices is often one of the biggest limiting factors encountered in the deployment of large neu…

Edge-computing

Foundry: Template-Based CUDA Graph Context Materialization for Fast LLM Serving Cold Start

2026-04-08 · Xueshen Liu, Yongji Wu, Yuncheng Yao, Danyang Zhuo 외 arxiv

Modern LLM service providers increasingly rely on autoscaling and parallelism reconfiguration to respond to rapidly changing workloads, but cold-start latency remains a major bottleneck. While recent systems have reduced…

Coop: Memory is not a Commodity

2023-11-01 · NeurIPS 2023 11

Tensor rematerialization allows the training of deep neural networks (DNNs) under limited memory budgets by checkpointing the models and recomputing the evicted tensors as needed. However, the existing tensor remateriali…