Abstract
Large Language Model (LLM) serving typically relies on Tensor Parallelism (TP), which is highly sensitive to hardware failures or preemptions. A single GPU failure in a tightly coupled cluster can halt execution, leading to significant downtime and performance degradation during recovery. We present FailSafe, a high-performance serving system designed for resilience. FailSafe utilizes cyclic memory placement, a hybrid attention mechanism, and proactive state backups to maintain efficiency in irregular hardware configurations. Our evaluation shows that FailSafe achieves up to 1.71x higher throughput and reduces recovery times from tens of seconds to just 120 milliseconds.
Introduction
Modern LLMs are often served using Tensor Parallelism (TP) across multiple GPUs. While effective for scaling, TP creates a "tightly coupled" dependency: if one GPU fails, the entire group stalls. Existing fault-tolerant systems often resort to slow re-sharding of model weights and full recomputation of the KV cache. Furthermore, running on an irregular number of GPUs (e.g., 7 instead of 8) introduces severe load imbalances because discrete attention heads cannot be divided evenly, creating "stragglers" that bottleneck the entire system.
Methodology
FailSafe addresses these challenges through four key innovations:
1. Hybrid Attention and Compute Balancing
To solve the "straggler" problem in irregular configurations, FailSafe introduces Hybrid Attention. When attention heads cannot be divided evenly across GPUs, the system uses TP for the balanced portion and Data Parallelism (DP) for the remainder. These "extra" heads are replicated across all GPUs, allowing the workload to be distributed dynamically.
2. Cyclic KVCache Placement
Instead of static assignment, FailSafe rotates attention head placement across layers. This Cyclic Placement ensures that memory consumption is balanced across the cluster over the long term, preventing any single GPU from exceeding its memory capacity during irregular execution.
3. Load-Aware Routing
FailSafe employs a fine-grained, greedy scheduler that monitors real-time token loads. By routing new requests to the least-loaded DP rank, the system ensures high utilization and prevents idle time even when hardware resources are asymmetrical.
4. Lightning Recovery
FailSafe minimizes downtime through proactive state management:
- Proactive Backup: The KV cache is asynchronously backed up to host CPU RAM.
- On-Demand Weight Recovery: By exploiting the commutativity of Feed-Forward Networks (FFNs), surviving GPUs load only the specific missing weight subsets rather than performing a full global re-sharding.
Evaluation
We evaluated FailSafe on an 8×H100 DGX system using LLaMA-3.1-70B and Mixtral-8x22B. Workloads included the OpenThoughts-114k dataset for throughput and Mooncake conversation traces for latency. Real-world GPU failure patterns from Google Cloud Platform (GCP) were used to simulate realistic availability.
Results
FailSafe demonstrates significant improvements in both performance and resilience. It delivers 1.28x to 1.71x higher average throughput than standard fault-tolerant baselines under frequent failure scenarios.
The system also achieves near-instant recovery. While traditional methods take approximately 22 seconds to recompute the KV cache, FailSafe reduces this to 120 milliseconds—a 183x improvement. Even with 3 out of 8 GPUs failed, FailSafe maintains high utilization and balanced memory, whereas standard systems often fail to fit the model in memory or suffer catastrophic performance drops.
Conclusion
FailSafe provides a robust framework for high-performance LLM serving in the face of hardware instability. By blending TP and DP at the layer level and implementing proactive state recovery, it ensures that large-scale inference remains efficient and reliable, even in dynamic cloud environments.
Summary updated