Adaptive memory management system for efficient training of large language models
AssigneeUniversity of Massachusetts
InventorsHanmei Yang, Tongping Liu, Jin Zhou, Hui Guan
Life of this patent
Estimating the term…
Loading patent…
AssigneeUniversity of Massachusetts
InventorsHanmei Yang, Tongping Liu, Jin Zhou, Hui Guan
Estimating the term…
Various examples are provided related to adaptive memory management. In one example, a method includes determining a chunk size for organizing parameters, the chunk size determined based on execution order of parameters and selected to reduce memory waste; determining a swapping interval including one activation swapping block followed by an integer number of gradient checkpointing blocks, the swapping interval determined by dividing a time required to swap one transformer block by a computation time of the one transformer block; determining a number of persistent chunks and non-persistent chunks to offload model states from GPUs; determining a number of chunk buffers on the GPUs for prefetching and reusing the model states; determining a number of activation swapping blocks to offload activations from the GPUs; determining a number of transformer blocks to apply gradient checkpointing; and initiating a forward computation pass based upon the configurations. A backward computation pass can be performed.
A method for adaptive memory management, comprising:
A system for adaptive memory management, comprising:
Dependencies are inferred from the claim text.