Scute:超越LoRA的PEFT适配器的精确批量服务
Scute: Exact Batched Serving for PEFT Adapters Beyond LoRA
AI总结:
Scute是基于vLLM构建的系统,可在单个批次中精确高效地服务LoRA及DoRA、(IA)等其他PEFT适配器,请求速率优于LoRA转换方案。
摘要:
现有的大语言模型服务系统会在单个GPU上对来自多个不同LoRA适配器的请求进行批量处理。然而,这些系统会拒绝来自其他参数高效微调(PEFT)方法的适配器,例如DoRA、(IA)、VeRA和OFT。一种解决方案是将这些适配器转换为LoRA,但这会带来显著的内存和精度成本。相反,我们证明,在进行一些修改后,批量LoRA内核可以精确且高效地为所有这些方法提供服务。我们通过将每种方法编写为一种标准形式来实现这一点,即LoRA计算为适配器自身的向量和矩阵提供六个插槽。部分插槽可在加载时合并为适配器的权重,其余插槽保持活跃并产生一定成本。我们提供了高效支付该成本的方法,并通过零参数字节模型预测该成本。我们将该系统打包为Scute,并基于vLLM构建。Scute可在一个批次中服务来自Hugging Face PEFT库的所有五种方法的检查点,且与该库的平均误差不超过每个适配器效果的1.5%。在RTX A6000上的突发请求下,混合这些方法的解码时间比相同数量的LoRA适配器多5-17%。此外,使用Scute,同一GPU可服务64至1024个(IA)和VeRA适配器,请求速率是其LoRA转换的1.5倍至至少2.5倍。
英文摘要:
Existing serving systems for large language models batch requests for many different LoRA adapters on one GPU. However, these systems reject adapters from other parameter-efficient fine-tuning (PEFT) methods such as DoRA, (IA), VeRA and OFT. One solution to this is to convert these adapters to LoRA, but this induces a significant memory and accuracy cost. Instead, we show that, under some modifications, a batched LoRA kernel can serve all of these methods exactly and efficiently. We achieve this by writing each method in one normal form, a LoRA computation with six slots for an adapter's own vectors and matrices. Some slots can merge into an adapter's weights at load time; the others remain live and induce a cost. We give ways to efficiently pay this cost and predict it from a zero-parameter byte model. We package this system, Scute, and build it on top of vLLM. Scute serves all five methods, coming as checkpoints from the Hugging Face PEFT library, in one batch, and it matches that library with a mean error of at most 1.5% of each adapter's effect. Under a burst of requests on an RTX A6000, a mix of these methods takes 5-17% more decode time than the same number of LoRA adapters. Furthermore, using Scute, the same GPU can serve 64 to 1024 (IA) and VeRA adapters at 1.5x to at least 2.5x the request rate of their LoRA conversions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。