仅取消不够:过载的大语言模型(LLM)引擎中重试操作留下的问题
Cancellation Is Not Enough: What Retries Leave Behind in an Overloaded LLM Engine
AI总结:
本文针对过载的vLLM引擎,发现仅取消操作无法恢复服务,重试导致大量调用未交付,而请求合并可交付所有调用,为过载控制提供了新评估依据。
摘要:
大语言模型(LLM)引擎前端的客户端和代理会对超时的调用进行重试。在短暂过载后,即使调用量低于引擎容量,这些重试也会阻碍引擎恢复。由于引擎可能仍在为已离开的客户端计算,传播取消操作看似是自然的补救措施。本文在vLLM上对三个开源模型开展过载实验,并使用其中一个模型的调度器轨迹,追踪每个客户端请求到引擎中创建的执行过程。我们发现,启用重试时,取消操作在所有实验中均未恢复服务,过载后到达的调用仅12%-38%被成功交付。轨迹揭示了原因:vLLM运行的重试通常在超时前不到半秒才开始预填充,后续中止的执行占用了vLLM计算的79%-85%的提示令牌,且vLLM的提示令牌计数器遗漏了三分之一到一半的已计算提示令牌。重试预算通过舍弃重试恢复了服务,但仍有大量过载产生的调用未被交付。请求合并则从过载开始交付了所有调用,部分调用虽有延迟,除非取消操作已中止正在运行的执行。因此,过载控制应根据重试添加的执行和客户端收到的调用进行评估。
英文摘要:
Clients and proxies in front of an LLM engine retry calls that time out. After a transient overload, these retries can keep the engine from recovering even when calls arrive below its capacity. Since the engine may keep computing for clients that have left, propagating cancellation looks like the natural remedy. In this paper, we test it on vLLM with overload experiments on three open models, and with scheduler traces of one that follow each client attempt to the execution it creates in the engine. We find that with retries on, cancellation alone did not restore service in any run, and only 12-38% of the calls that arrived after the overload were delivered. The traces suggest why: retries that vLLM ran typically started prefill less than half a second before they timed out. Executions that vLLM later aborted took 79-85% of the prompt tokens it computed, and vLLM's prompt-token counter missed a third to half of all computed prompt tokens. A retry budget restored service by shedding retries but left many of the overload's calls undelivered. Request coalescing delivered every call from the overload onward, some late, unless cancellation had already aborted the running execution. Overload controls should thus be judged by the executions that retries add and the calls that clients receive.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。