跳到正文
arXiv (AI + Vision + Imaging)· Benjamin Novotny, Doug Szeto, Chang Wang, Shicheng Chen, George Zhihua Yuan, Bob Kamma, Michael Ge, John Xin Zhou, Andrea Olgiati·· 6 天前AI 评分34

Cap-and-Track:Meta 如何按动态容量调度 LLM 推理请求

Cap-and-Track: Optimizing LLM Inference Request Dispatch Across Shifting Capacity

AI 导读

Meta 的流量整形器采用 Cap-and-Track 设计,在 provider 容量与内部 GPU 之间异步调度 LLM 推理请求,仅凭后端拒绝信号探测并跟踪准入上限,无需预测输出长度或重调全局速率。

正文 · 原文

arXiv:2611.24891v1 Announce Type: new Abstract: A fixed dispatch rate for LLM inference becomes stale as serving fleets resize and request sizes change. Generative output length is unknown at admission, and shared provider pools can lose capacity. We present Cap-and-Track, a design for asynchronous inference across provider capacity and internal GPUs. Meta's traffic shaper implements Cap-and-Track for post and live-video understanding. Refusals signal the backend's current admission ceiling. Durable priority queues hold excess work outside execution, including refused requests for retry. Cap is a fail-fast admission check at the saturated resource that refuses work before a long wait. Using only those refusals, the Track dispatcher probes upward and backs off. It follows the ceiling without output-length prediction or a fleet-level rate to retune. In a concurrent same-traffic production A/B, the shaper ran per-replica Cap plus Track. It served a classifier on 43% fewer H100s than its queued, fixed-rate precursor, though lower-priority work waited longer at backfill peaks. In steady-capacity real-engine replay, Track ran within 1% of the goodput of a fixed rate tuned above measured capacity, with about a quarter of that rate's refusal share. The shaper carries more than 300 million online requests and hundreds of terabytes of media a day. During a backfill, it handled 1.1 billion requests in its busiest 24 hours. Lessons include keeping queues inside inference engines just long enough to fill batches, steering dispatch by capacity refusals alone, keeping dispatch stateful, and sizing fleets by how long low-priority work can wait.

来源:arXiv (AI + Vision + Imaging) · arxiv.org