DOI: 10.1145/3845607 ISSN: 1556-4665
Hermes \({}^{+}\) : Adaptive Memory-Efficient Pipeline Inference for Large Models on Edge Devices
Zinuo Cai, Xueyuan Han, Nan Jiang, Baoheng Zhang, Yiming Qiang, Tianqi Wu, Yuan Liu, Ruhui Ma
The application of Transformer-based large models has achieved significant success in recent years. However, the exponential growth in the parameters of large models introduces formidable memory challenges for edge deployment. Prior works to address this challenge mainly focus on optimizing the model structure and adopting memory swapping methods. However, the former reduces the inference accuracy, and the latter raises the inference latency. This paper
PipeLoad
, a novel adaptive memory-efficient pipeline execution mechanism. It reduces memory usage by incorporating dynamic memory management and minimizes inference latency by employing parallel model loading. Based on the
PipeLoad
mechanism, we present
Hermes