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

Loquetier:用于统一LLM微调与服务的虚拟化多LoRA框架

Loquetier: A Virtualized Multi-LoRA Framework for Unified LLM Fine-tuning and Serving

State Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术全国重点实验室)

Yuchen Zhang, Hanyue Du, Chun Cao, Jingwei Xu

AI总结:

提出虚拟化多LoRA框架Loquetier,通过虚拟化模块与优化的计算流程,在单一运行时内无缝集成LLM微调与服务,实现高效批处理并显著提升吞吐量与SLO达成率。

摘要:

低秩适应(LoRA)已成为一种广泛采用的参数高效微调(PEFT)技术,用于将大型语言模型(LLM)适配到下游任务。尽管先前的工作已经探索了整合LLM训练与服务的策略,但在统一基于LoRA的模型的微调和推理方面仍存在空白。我们提出了Loquetier,这是一个虚拟化的多LoRA框架,可在单个运行时内无缝集成LoRA微调与服务。Loquetier引入了两个关键组件:(1)虚拟化模块,它隔离了基于PEFT的修改,并在共享的基础模型上支持多个适配器;(2)优化的计算流程与内核设计,在前向传播中合并了微调与推理路径,实现了高效的批处理并最小化了内核调用开销。在三种任务设置上的大量实验表明,Loquetier在性能和灵活性上均始终优于现有基线,在纯推理任务上实现了高达 $3.0\ imes$ 的最先进协同服务系统吞吐量,在统一微调与推理任务上实现了比PEFT高 $46.4\ imes$ 的SLO达成率。Loquetier的实现已在 https://github.com/NJUDeepEngine/Loquetier 公开。

英文摘要:

Low-Rank Adaptation (LoRA) has become a widely adopted parameter-efficient fine-tuning (PEFT) technique for adapting large language models (LLMs) to downstream tasks. While prior work has explored strategies for integrating LLM training and serving, there still remains a gap in unifying fine-tuning and inference for LoRA-based models. We present Loquetier, a virtualized multi-LoRA framework that seamlessly integrates LoRA fine-tuning and serving within a single runtime. Loquetier introduces two key components: (1) a Virtualized Module that isolates PEFT-based modifications and supports multiple adapters on a shared base model, and (2) an optimized computation flow with a kernel design that merges fine-tuning and inference paths in forward propagation, enabling efficient batching and minimizing kernel invocation overhead. Extensive experiments across three task settings show that Loquetier consistently outperforms existing baselines in both performance and flexibility, achieving up to $3.0\times$ the throughput of the state-of-the-art co-serving system on inference-only tasks and $46.4\times$ higher SLO attainment than PEFT on unified fine-tuning and inference tasks. The implementation of Loquetier is publicly available at https://github.com/NJUDeepEngine/Loquetier.

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

↑