AnchorTP: Resilient LLM Inference with State-Preserving Elastic Tensor Parallelism
Wendong Xu, Chujie Chen, He Xiao, Kuan Li, Jing Xiong, Chen Zhang, Wenyong Zhou, Chaofan Tao, Yang Bai, Bei Yu, Ngai Wong
TL;DR
AnchorTP tackles the fragility of TP-based LLM inference under GPU failures by decoupling long-lived state from dynamic topology and enabling fast, data-minimizing recovery. It introduces Elastic Tensor Parallelism (ETP) to allow unequal-width shard partitions across any TP degree, and a state-preserving daemon that keeps parameters and KV caches resident in GPU memory. A two-stage recovery pipeline—Continuous Minimal Migration (CMM) for planning and a topology-aware executor for execution—minimizes reloads and overlaps host reloads with P2P transfers, achieving rapid resumption without changing service interfaces. Empirical results show up to $11\times$ reduction in Time to First Success ($TFS$) and up to $59\%$ reduction in Time to Peak ($TTP$) compared with restart-and-reload, demonstrating significant practical impact for resilient LLM serving.
Abstract
Large Language Model (LLM) inference services demand exceptionally high availability and low latency, yet multi-GPU Tensor Parallelism (TP) makes them vulnerable to single-GPU failures. We present AnchorTP, a state-preserving elastic TP framework for fast recovery. It (i) enables Elastic Tensor Parallelism (ETP) with unequal-width partitioning over any number of GPUs and compatibility with Mixture-of-Experts (MoE), and (ii) preserves model parameters and KV caches in GPU memory via a daemon decoupled from the inference process. To minimize downtime, we propose a bandwidth-aware planner based on a Continuous Minimal Migration (CMM) algorithm that minimizes reload bytes under a byte-cost dominance assumption, and an execution scheduler that pipelines P2P transfers with reloads. These components jointly restore service quickly with minimal data movement and without changing service interfaces. In typical failure scenarios, AnchorTP reduces Time to First Success (TFS) by up to 11x and Time to Peak (TTP) by up to 59% versus restart-and-reload.
