LoRazor:用于高效多LoRA服务的适配器执行修剪
LoRazor: Trimming Adapter Execution for Efficient Multi-LoRA Serving
AI总结:
LoRazor是结合提前适配器释放与主动行感知GPU内核的多LoRA服务框架,可修剪空闲GPU块,在准确率仅小幅下降的情况下,大幅提升多LoRA服务的请求与输出令牌吞吐量。
摘要:
LoRA提供了一种参数高效的适配策略,通过在共享主干模型上使用定制适配器支持多用户工作负载。然而,使用不同适配器服务并发请求会带来大量计算和内存管理开销。我们提出研究问题:所有请求在整个生成过程中都需要其适配器吗?我们的动机研究表明,在每个解码步骤都使用LoRA适配器是不必要的,提前释放适配器对准确率的影响有限,同时能显著加速生成。尽管提前跳过适配器在理论上可减少工作负载,但要将这些计算节省转化为实际吞吐量提升,需要定制的GPU内核。我们提出LoRazor,这是一种多LoRA服务框架,结合了提前适配器释放与主动行感知GPU内核。LoRazor会确定何时永久释放请求的适配器,仅用主干模型继续解码;随着适配器被释放,通过动态调整LoRA内核启动的大小,LoRazor可修剪空闲的GPU块。在两个主干模型和四个任务上,LoRazor相比vLLM多LoRA实现了最高3.02倍的请求吞吐量和2.53倍的输出令牌吞吐量,平均相对任务准确率下降为2.89%。
英文摘要:
LoRA offers a parameter-efficient adaptation strategy, supporting multi-user workloads via customized adapters on a shared backbone. However, serving concurrent requests with different adapters introduces substantial computation and memory-management overhead. We ask the research question: Do all requests need their adapters throughout the whole generation process? Our motivational study reveals that employing LoRA adapters at every decoding step is unnecessary, releasing them early has limited impact on accuracy while substantially accelerating generation. Although skipping adapters early offers theoretical workload reduction, translating these computational savings into concrete throughput gains requires tailored GPU kernels. We present LoRazor, a multi-LoRA serving framework that combines early adapter release with active-row aware GPU kernels. LoRazor determines when to permanently release a request's adapter and continue decoding with the backbone alone. By dynamically resizing LoRA kernel launches as adapters are released, LoRazor trims idle GPU blocks. Across two backbones and four tasks, LoRazor achieves up to 3.02x request throughput and 2.53x output-token throughput over vLLM multi-LoRA, with a mean relative task-accuracy decrease of 2.89%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。