arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.03777cs.OScs.AI
收藏

FlexInfer:通过灵活高效的卸载机制打破内存约束以实现端侧LLM推理

FlexInfer: Breaking Memory Constraint via Flexible and Efficient Offloading for On-Device LLM Inference

City University of Hong Kong(香港城市大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Hongchao Du, Shangyu Wu, Arina Kharlamova, Nan Guan, Chun Jason Xue

AI总结:

提出FlexInfer框架,通过异步预取、平衡内存锁定和灵活张量保留技术,解决端侧LLM推理的内存约束问题,在资源受限下实现高达12.5倍性能提升。

摘要:

大型语言模型(LLMs)因高内存需求在端侧推理中面临挑战。传统减少内存使用的方法往往牺牲性能且缺乏适应性。我们提出FlexInfer,一个针对端侧推理优化的卸载框架,通过异步预取、平衡内存锁定和灵活张量保留等技术解决这些问题。这些策略提高了内存效率并缓解I/O瓶颈,确保在用户指定的资源约束内保持高性能。实验表明,FlexInfer在资源受限下显著提升吞吐量,性能比现有方法最高提升12.5倍,促进大模型在资源受限设备上的部署。

英文摘要:

Large Language Models (LLMs) face challenges for on-device inference due to high memory demands. Traditional methods to reduce memory usage often compromise performance and lack adaptability. We propose FlexInfer, an optimized offloading framework for on-device inference, addressing these issues with techniques like asynchronous prefetching, balanced memory locking, and flexible tensor preservation. These strategies enhance memory efficiency and mitigate I/O bottlenecks, ensuring high performance within user-specified resource constraints. Experiments demonstrate that FlexInfer significantly improves throughput under limited resources, achieving up to 12.5 times better performance than existing methods and facilitating the deployment of large models on resource-constrained devices.

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

↑