arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.23346cs.LG
收藏

分块对角LoRA用于消除张量并行LoRA服务中的通信开销

Block-Diagonal LoRA for Eliminating Communication Overhead in Tensor Parallel LoRA Serving

University of Warwick(沃里克大学);Amazon Web Services(亚马逊网络服务)

Xinyu Wang, Jonas M. Kübler, Kailash Budhathoki, Yida Wang, Matthäus Kleindessner

AI总结:

本文提出分块对角LoRA方法,通过限制LoRA因素为分块对角,减少通信开销,提升端到端服务效率。

摘要:

当同时为单个基础大语言模型(LLM)服务多个不同的LoRA适配器时,适配器不能简单地与基础模型的权重合并,因为适配器切换会带来开销,且使用不同适配器的请求无法批量处理。相反,LoRA计算必须与基础LLM计算分离,并在多设备设置中,适配器可以以与基础模型张量并行执行良好对齐的方式进行分片,如S-LoRA中所提出。然而,S-LoRA的分片策略会遇到一些通信开销,这在理论上可能较小,但在实践中可能较大。在本文中,我们提出将某些LoRA因素限制为分块对角,这允许以一种不需要额外通信的替代方式分片LoRA适配器。我们在广泛的实验中展示了我们的分块对角LoRA方法在参数效率上与标准LoRA相似(即,对于相似数量的参数,实现相似的下游性能),并且在S-LoRA上带来了显著的端到端加速。例如,当在八个A100 GPU上服务时,我们观察到对于Llama-3.1-70B,端到端加速可达1.79倍(1.23倍),使用0.87倍(1.74倍)的适配器参数;对于Llama-3.1-8B,端到端加速可达1.63倍(1.3倍),使用0.86倍(1.73倍)的适配器参数。

英文摘要:

When serving a single base LLM with several different LoRA adapters simultaneously, the adapters cannot simply be merged with the base model's weights as the adapter swapping would create overhead and requests using different adapters could not be batched. Rather, the LoRA computations have to be separated from the base LLM computations, and in a multi-device setup the LoRA adapters can be sharded in a way that is well aligned with the base model's tensor parallel execution, as proposed in S-LoRA. However, the S-LoRA sharding strategy encounters some communication overhead, which may be small in theory, but can be large in practice. In this paper, we propose to constrain certain LoRA factors to be block-diagonal, which allows for an alternative way of sharding LoRA adapters that does not require any additional communication for the LoRA computations. We demonstrate in extensive experiments that our block-diagonal LoRA approach is similarly parameter efficient as standard LoRA (i.e., for a similar number of parameters it achieves similar downstream performance) and that it leads to significant end-to-end speed-up over S-LoRA. For example, when serving on eight A100 GPUs, we observe up to 1.79x (1.23x) end-to-end speed-up with 0.87x (1.74x) the number of adapter parameters for Llama-3.1-70B, and up to 1.63x (1.3x) end-to-end speed-up with 0.86x (1.73x) the number of adapter parameters for Llama-3.1-8B.

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

↑