Training a 2.8T-Parameter MoE LLM on Homegrown AI Chips: Technical Notes

    This article describes a training adaptation effort for a 2.8-trillion-parameter sparse MoE LLM on homegrown AI chips. It covers sharded loading, FSDP2 sharding and scheduling, communication-compute overlap, and asynchronous sharded checkpoints. Because public information does not provide vendor names, software versions, cluster scale, training duration, or throughput figures, the article explains the technical approach only and does not establish production readiness. Readers get a framework for evaluating memory, communication, and stability bottlenecks and for measuring the approach in their own environments.

    Conclusion First

    This article describes a training adaptation effort for a 2.8-trillion-parameter sparse MoE large language model on homegrown AI chips. The approach includes sharded loading, FSDP2 sharding and scheduling, communication-compute overlap, and asynchronous sharded checkpoints. Public information does not give vendor names, software versions, cluster scale, training duration, or throughput data, so this article can only explain the technical approach; it cannot prove production readiness. To determine whether this route suits your business, measure each item in your own environment using the checklist at the end.

    1. Three Bottleneck Categories: Memory, Communication, and Stability

    Memory Wall: The Weights Alone Exceed Single-Device Capacity

    Considering weights only, 2.8 trillion parameters occupy about 2.8 TB in FP8 and about 5.6 TB in BF16. Single-device memory is usually 64 GB to 192 GB, so FP8 weights are roughly 15 to 44 times single-device memory, and BF16 weights are roughly 29 to 88 times. The full model cannot fit on one device and must be sharded.

    Training pressure is greater than inference pressure. With a common mixed-precision Adam configuration, each parameter also needs about 12 bytes of optimizer state (an FP32 master weight plus two FP32 momentum values). For 2.8 trillion parameters, the optimizer state alone is about 33.6 TB. Parameters, gradients, and optimizer states all need sharding; otherwise initialization will fail.

    Communication Wall: Uneven Token Dispatch in MoE

    The routing mechanism in an MoE model sends different tokens to different experts. Traffic between experts is therefore uneven and can change abruptly with input content. Expert parallelism typically relies on All-to-All communication to dispatch and return tokens. When cross-node traffic is large, network bandwidth and latency become throughput bottlenecks. For dense models, the main communication is gradient reduction; MoE adds an expert-routing data-exchange layer, so the communication graphs of both must be measured separately.

    Stability Wall: Failures Are Inevitable in Long Training Runs

    Training cycles last for weeks, during which hardware failures, network jitter, and software exceptions can all occur. The key metrics are recovery time after a failure and the training progress lost because of the failure. Recovery time depends on checkpoint save frequency, write speed, and load speed; these three factors must be evaluated together.

    The table below lists the three bottleneck categories, the strategies used in this approach, and the metrics that should be verified.

    Bottleneck Strategy used in this approach Metrics to verify
    Memory wall Sharded loading, parameter sharding, on-demand All-Gather Peak memory per device, initialization time, number of OOM events
    Communication wall Communication-compute overlap, All-to-All kernel scheduling Communication share, per-step time, All-to-All latency distribution
    Stability wall Asynchronous sharded checkpoints, slow-node isolation, rollback on loss divergence Checkpoint write time, failure recovery time, number of rollbacks

    2. How to Configure FSDP2

    FSDP2 shards parameters. When computing a layer in the forward pass, it first uses All-Gather to collect the full parameters for that layer, then releases non-local shards after computation. The backward pass also needs to collect parameters, while gradients are reduced to each device’s shard through Reduce-Scatter. Therefore, the main communication primitive for gradient synchronization is Reduce-Scatter, and All-Gather handles parameter collection. All-Reduce appears only between replica groups in structures such as hybrid sharding (HSDP).

    Model Loading

    This approach partitions weight files along the expert and layer dimensions. Each node reads only the shard it is responsible for and writes it directly to the corresponding accelerators. This avoids loading the full model in a single process and then broadcasting it. Public material claims that loading time drops from hours to minutes, but it does not give the node count, device count, filesystem type, or measurement method, so this figure can only be treated as a reference. In your own environment, record the time and peak memory of each load and compare them with single-process loading.

    Sharding Scheduling

    The key to sharding scheduling is controlling when All-Gather happens. You can adjust reshard_after_forward to decide whether parameters are released immediately after the forward pass. The earlier they are released, the lower the memory footprint, but the more communication is needed during the backward pass; the two must be balanced against actual memory headroom.

    In this approach, shared experts are fully sharded, while routed experts use a different placement layout. This heterogeneous layout makes sense only when routing statistics are stable enough. Before implementation, count the number of tokens received by each expert over a period of time, confirm the degree of load skew, and then decide the capacity factor and placement policy. If the statistics show that load is basically uniform, a uniform layout is usually simpler and easier to troubleshoot.

    Gradient Synchronization

    Gradient synchronization can overlap with backward computation. During the backward pass for a layer, the communication task for the adjacent layer is initiated in advance.