arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09242cs.LG
收藏

FluidML:快速且内存高效的推理优化

FluidML: Fast and Memory Efficient Inference Optimization

Jinjie Liu, Hang Qiu

AI总结:

针对边缘设备计算资源难以支撑日益增长的模型参数问题,提出通用运行时内存管理和优化框架FluidML,通过灵活转换模型执行蓝图实现更快更高效的内存推理,显著降低端到端延迟和峰值内存使用量。

摘要:

部署在边缘设备上的机器学习模型催生了众多令人兴奋的新应用,例如人形机器人、AR眼镜和自动驾驶汽车。然而,这些边缘设备上可用的计算资源无法跟上这些模型中不断增长的参数数量。随着模型变得越来越大且越来越复杂,新颖而复杂的结构给推理运行时优化带来了挑战。我们提出了FluidML,这是一个通用的运行时内存管理和优化框架,能够灵活转换模型执行蓝图,以实现更快、更高效的内存推理。跨不同平台的评估表明,与最先进的方法相比,FluidML能够将流行语言模型的端到端推理延迟持续降低高达25.38%,并将峰值内存使用量降低高达41.47%。FluidML包含约3万行代码,专为通用目的而构建,并将作为开源推理运行时优化框架向社区发布。

英文摘要:

Machine learning models deployed on edge devices have enabled numerous exciting new applications, such as humanoid robots, AR glasses, and autonomous vehicles. However, the computing resources available on these edge devices are not catching up with the ever-growing number of parameters in these models. As the models become bigger and more complicated, the novel yet sophisticated structure challenges the inference runtime optimization. We present FluidML, a generic runtime memory management and optimization framework that can flexibly transform the model execution blueprint to achieve faster and more memory-efficient inference. Evaluations across different platforms show that FluidML can consistently reduce the end-to-end inference latency by up to 25.38% for popular language models and reduce peak memory usage by up to 41.47%, compared to state-of-the-art approaches. FluidML is of ~30K line of codes, built for general-purpose usage, and will be released as an open-source inference runtime optimization framework to the community.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑