BlendServe: 利用资源感知批处理优化自回归大模型的离线推理
BlendServe: Optimizing Offline Inference for Auto-regressive Large Models with Resource-aware Batching
AI总结:
针对离线批处理中资源重叠与前缀共享的冲突,提出资源感知前缀树来最大化资源利用率,相比vLLM和SGLang吞吐量提升1.44倍。
摘要:
离线批处理利用请求批处理的灵活性实现更高吞吐量和更低成本,在延迟不敏感的应用中越来越受欢迎。同时,模型能力和模态的最新进展使得请求在计算和内存需求上更加多样化,通过资源重叠为吞吐量提升创造了独特机会。然而,最大化资源重叠的请求调度可能与最大化前缀共享(一种广泛使用的性能优化)的调度冲突,导致次优的推理吞吐量。我们提出BlendServe,该系统通过结合资源重叠和前缀共享的优势,使用资源感知前缀树来最大化离线批处理的资源利用率。BlendServe利用离线批处理中宽松的延迟要求,重新排序和重叠具有不同资源需求的请求,同时确保高前缀共享。我们在各种合成多模态工作负载上评估BlendServe,结果表明,与广泛使用的行业标准vLLM和SGLang相比,它提供了高达1.44倍的吞吐量提升。
英文摘要:
Offline batch inference, which leverages the flexibility of request batching to achieve higher throughput and lower costs, is becoming more popular for latency-insensitive applications. Meanwhile, recent progress in model capability and modality makes requests more diverse in compute and memory demands, creating unique opportunities for throughput improvement by resource overlapping. However, a request schedule that maximizes resource overlapping can conflict with the schedule that maximizes prefix sharing, a widely-used performance optimization, causing sub-optimal inference throughput. We present BlendServe, a system that maximizes resource utilization of offline batch inference by combining the benefits of resource overlapping and prefix sharing using a resource-aware prefix tree. BlendServe exploits the relaxed latency requirements in offline batch inference to reorder and overlap requests with varied resource demands while ensuring high prefix sharing. We evaluate BlendServe on a variety of synthetic multi-modal workloads and show that it provides up to $1.44\times$ throughput boost compared to widely-used industry standards, vLLM and SGLang.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。