Incident Library

IL-0421 Alibaba Group · 2025-05-23 (published)ai-infra

Errors, mostly GPU faults, crashed Alibaba LLM training jobs as NCCL errors; a job lost 31.19% of its time in June 2023

The paper by Alibaba engineers describes C4, a system deployed in Alibaba's production AI training clusters, whose nodes have 8 NVIDIA H800 GPUs and 8 BlueField-3 NICs with two bonded 200Gbps ports each on a 3-tier Clos fat-tree network, running Megatron-LM and DeepSpeed. Training runs in bulk synchronous mode, so an error in any worker blocks the others and crashes the whole job, which then restarts from its last checkpoint; the paper states that high-end GPUs show high error rates, and that without efficient detection and diagnosis tools about 30% of the team's time went into error detection, diagnosis, isolating defective nodes and restarting, leaving 70% for computing. The measurements come from the crash causes of one 4,096-GPU job over one month and from historical job logs of an internal customer's 2400-GPU job before (June 2023) and after (December 2023) C4's fault detection was deployed.

In June 2023, GPU-related errors (ECC errors, NVLink errors and CUDA errors) caused 12.53% of that job's total downtime, about two thirds of the diagnosis and isolation overhead, in which ECC/NVLink errors took 8.34%, CUDA errors 4.19%, CCL timeouts 3%, ACK timeouts 1.8% and unknown causes 2.29%. Post-checkpoint loss was high because users had set infrequent checkpoints, not expecting high error rates in a large cluster. Alibaba allocates 64 backup GPUs on 8 servers for every 1024 GPUs on 128 servers, and improved cooling with higher fan speeds and better air conditioning. C4D, the detection part of C4, extends Alibaba's collective communication library ACCL to record communicator, operation and transport-layer timings; a central master compares workers at synchronisation points to find hangs and slow communication or computation, tells the job steering service to isolate the faulty nodes and restart from the latest valid checkpoint, and hands the event to offline root cause analysis.

By December 2023 the job's error-induced downtime had fallen to 1.16%: diagnosis and isolation to 0.73%, post-checkpoint loss to 0.23% after users began checkpointing every 10 minutes, detection to 0.05% and re-initialisation to 0.15%. C4D found faults within tens of seconds, though isolating nodes and restarting still took minutes. GPU-related errors became 3.2 times less frequent and the time they cost fell 41.8 times, other errors fell 3.4 times in frequency and 16.5 times in time, and the average error rate fell 3.33 times after the most vulnerable components were identified and enhanced over the six months. C4D has limited ability to detect errors during job initialisation, before collective communication starts.

Severity
–
Scope
LLM training jobs crashed and restarted from checkpoints; one 2400-GPU job lost 31.19% of its time to errors in June 2023, and one 4,096-GPU job crashed 40 times in a month
Users affected
Alibaba's customers training LLMs, including an internal customer
Region
–
Time to detect
–
Time to resolve
–

Symptoms

Large LLM training jobs on Alibaba's AI clusters crashed again and again and had to restart from the last valid checkpoint. One of the largest jobs, on 4,096 GPUs in a newly deployed cluster, crashed 40 times in one month, and most crashes reached users only as "NCCL Errors".

The error users saw rarely named the cause. When a hardware problem in one GPU crashed one worker process, its peers got no acknowledgment for the messages they had sent to it and the communication library raised error code 12, the same code that network disconnections, container evictions after memory overflows or user code errors such as tensor size mismatches also produce. Behind the 40 crashes were ECC/NVLink errors (27.5%), ACK timeouts (27.5%), NCCL timeouts (20%), CUDA errors (12.5%) and other causes shown to users as a network error (12.5%); about 82.5% of the errors were confined to specific nodes or single devices.

The time went into finding the bad node rather than the crash itself. Identifying the cause and locating the defective node by hand took hours or even days in a cluster with thousands of GPUs. Users were also not told right away that a job had stalled: a PyTorch job could hang for up to 30 minutes until the elastic agent killed its processes. In June 2023, a 2400-GPU job training a 175 billion parameter GPT model lost 31.19% of its time to errors: 19.65% to diagnosis and isolation, 7.53% to work done after the last checkpoint, 3.41% to detecting the crash and 0.6% to re-initialisation.

Symptom Training job failureNCCL timeoutGPU unavailable

Root cause

Trigger
–

Detection

Before C4D, users found crashes through NCCL errors and could stay unaware of a stalled job for up to 30 minutes until the PyTorch elastic agent killed it; C4D later detects hangs and slowdowns from collective communication timings within tens of seconds.

Remediation

Action items

Lessons

Most crash causes are confined to specific nodes or devices, so isolating the faulty component quickly and restarting, while leaving root cause analysis for offline work, removes most of the error-induced downtime. Because synchronous training makes many different faults look like the same communication error, diagnosis has to use the regular rhythm of the workers at synchronisation points rather than the error message, and frequent checkpoints matter because error rates in large clusters are high.

Sources

References

Related cases

Check your cluster for this

kubegap audits a Kubernetes cluster for conditions like the ones in this case, GPU hardware and memory, NCCL, PyTorch among them, read-only, from Claude Code or Codex. Its checks cite public reports like this one.

For AI tools and scripts

The API needs no key. The MCP server offers search_incidents, get_incident, list_incidents, get_topic and vocab; both are explained on API and MCP.