arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00326cs.DCcs.AIcs.NI
收藏

Teola:面向基于大语言模型应用的端到端优化

Teola: Towards End-to-End Optimization of LLM-based Applications

The Chinese University of Hong Kong(香港中文大学)

Xin Tan, Yimin Jiang, Yitao Yang, Hong Xu

AI总结:

Teola通过细粒度端到端编排方法优化基于大语言模型的应用,实现显著的速度提升。

摘要:

基于大语言模型(LLM)的应用包括LLM和非LLM组件,每个组件都对端到端延迟做出贡献。尽管在优化LLM推理方面做出了巨大努力,但端到端工作流优化却被忽视了。现有的框架采用粗粒度的编排方式,通过任务模块进行任务编排,这将优化限制在每个模块内部,导致调度决策不理想。我们提出了细粒度的端到端编排方法,利用任务原语作为基本单位,将每个查询的工作流表示为原语级别的数据流图。这显式地暴露了更大的设计空间,使可以在不同模块的原语之间进行并行化和流水线化优化,从而提升调度效率,提高应用层面的性能。我们构建了Teola,一个针对基于LLM的应用的新编排框架,实现了这一方案。全面的实验表明,Teola在各种流行的LLM应用中,可以达到比现有系统快2.09倍的速度提升。代码可在https://github.com/NetX-lab/Ayo获取。

英文摘要:

Large language model (LLM)-based applications consist of both LLM and non-LLM components, each contributing to the end-to-end latency. Despite great efforts to optimize LLM inference, end-to-end workflow optimization has been overlooked. Existing frameworks employ coarse-grained orchestration with task modules, which confines optimizations to within each module and yields suboptimal scheduling decisions. We propose fine-grained end-to-end orchestration, which utilizes task primitives as the basic units and represents each query's workflow as a primitive-level dataflow graph. This explicitly exposes a much larger design space, enables optimizations in parallelization and pipelining across primitives of different modules, and enhances scheduling to improve application-level performance. We build Teola, a novel orchestration framework for LLM-based applications that implements this scheme. Comprehensive experiments show that Teola can achieve up to 2.09x speedup over existing systems across various popular LLM applications. The code is available at https://github.com/NetX-lab/Ayo.

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

↑