BlockLLM:大型语言模型的多租户细粒度服务
BlockLLM: Multi-tenant Finer-grained Serving for Large Language Models
AI总结:
BlockLLM针对多租户LLM部署的高资源消耗问题,将模型划分为细粒度块以实现组件复用与独立配置,通过自适应组装、逐块批处理及推测执行等机制,显著降低内存占用并提升计算效率。
摘要:
各应用对大型语言模型(LLM)日益增长的需求,促使深度学习服务系统的设计发生重大转变。部署LLM,尤其是在多租户环境中,由于其高计算和内存需求而面临巨大挑战。我们介绍了BlockLLM,这是一种利用微调LLM模型间的组件共享,为LLM工作负载提供高效灵活解决方案的服务系统。BlockLLM将模型划分为更细粒度的块,实现模型组件复用和独立配置以提高计算效率。BlockLLM包含用于存储块的离线block zoo和通过块链路服务请求的在线系统。它提供多重灵活性:(1)通过在block zoo中的块间进行等价性评估,即时自适应组装块;(2)在单个块级别进行逐块批大小配置和尽力而为的KV缓存协调;(3)推测执行和感知局部性的块放置,以减少动态块资源分配带来的通信成本。评估表明,BlockLLM减少了内存和存储占用并提高了计算效率,在95%ile延迟和GPU利用率上分别优于现有服务方法33.5%和20.1%,且对精度影响极小。
英文摘要:
The increasing demand for Large Language Models (LLMs) across various applications has led to a significant shift in the design of deep learning serving systems. Deploying LLMs, particularly in multi-tenant environments, poses substantial challenges due to their high computational and memory demands. We introduce BlockLLM, a serving system that leverages component sharing among fine-tuned LLM models to provide an efficient and flexible solution for LLM workloads. BlockLLM partitions models into finer-grained blocks, enabling the reuse of model components and independent provisioning to improve computation efficiency. BlockLLM comprises an offline block zoo for storing blocks and an online system to serve requests through chains of blocks. It offers multi-fold flexibilities: (1) Adaptive assembly of blocks on-the-fly through equivalence evaluation among blocks in the zoo; (2) Per-block batch size configuration and best-effort KV cache coordination at the individual block level; (3) Speculative execution and locality-aware block placement to reduce communication costs from dynamic block resource allocation. Our evaluation shows that BlockLLM reduces memory and storage footprints and improves computational efficiency, outperforming existing serving approach in 95%ile latency and GPU utilization by 33.5% and 20.1%, respectively, with minimal impact on accuracy
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。