WANSpec: 利用全球计算能力进行大语言模型推理
WANSpec: Leveraging Global Compute Capacity for LLM Inference
AI总结:
WANSpec通过将LLM生成任务转移到未充分利用的数据中心,利用本地计算资源缓解容量问题并减少高需求数据中心的延迟。
摘要:
能够运行大型语言模型(LLMs)的数据中心分布在全球各地。一些拥有高端GPU用于运行最先进模型(1000亿参数以上),而其他则仅适合较小的模型(100亿参数)。最强大的GPU因LLM应用的快速扩展而备受需求。选择正确的地理位置运行LLM推理工作负载可能会影响请求的延迟,因为这些需求很高。在本工作中,我们探索了将推理的一些方面转移到未充分利用的数据中心的方法。我们首先观察了AWS不同地区服务中影响推理的延迟差异,证明负载并非均匀分布。然后我们引入了WANSpec,将部分LLM生成任务转移到未充分利用的数据中心。通过这样做,WANSpec可以缓解容量问题,同时有效地利用本地计算资源(即在大学)来补充云服务提供商。这是通过投机解码(一种广泛用于加速自回归解码的技术)实现的,通过将草案模型转移到未充分利用的计算资源。我们的实验在模拟和云部署中显示,WANSpec可以合理利用冗余以避免延迟增加,同时在高需求数据中心中减少投机解码草案模型的正向传递次数超过50%。
英文摘要:
Data centers capable of running large language models (LLMs) are spread across the globe. Some have high end GPUs for running the most advanced models (100B+ parameters), and others are only suitable for smaller models (1B parameters). The most capable GPUs are under high demand thanks to the rapidly expanding applications of LLMs. Choosing the right location to run an LLM inference workload can have consequences on the latency of requests due to these high demands. In this work, we explore options to shift some aspects of inference to the under-utilized data centers. We first observe the varying delays affecting inference in AWS services from different regions, demonstrating that load is not spread evenly. We then introduce WANSpec, which offloads part of LLM generation to the under-utilized data centers. In doing so, WANSpec can mitigate capacity issues as well as effectively use on-site compute (ie at universities) to augment cloud providers. This is done with speculative decoding, a widely used technique to speed up auto-regressive decoding, by moving the draft model to the under-utilized compute resources. Our experiments in simulation and cloud deployments show that WANSpec can judiciously employ redundancy to avoid increases in latency while still reducing the forward passes of speculative decoding's draft model in high demand data centers by over 50%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。