Training Chain Validation on Domestic GPUs: Adapting a 2.8 Trillion-Parameter Multimodal MoE Model

    This article examines what it takes to get large-scale model training running end to end on domestically produced GPUs, using a public 400-step validation of a 2.8 trillion-parameter multimodal MoE model as the reference case. It defines training chain validation and its four layers of correctness, breaks down the pruned test configuration and result metrics, and analyzes the engineering work required at the operator, parallelism, and communication layers. It then consolidates the findings into a reusable six-stage validation flow with illustrative pseudo-code, and closes by outlining the three hurdles still standing between chain validation and full-scale pretraining.

    1. Introduction: Domestic AI Compute Has Moved Into the Training Chain Validation Stage

    The hard part of training large models has never been peak single-card compute. It is whether compute, interconnect, memory, data, and scheduling can stay coordinated and stable over long periods. For domestic GPUs, “it runs” is no longer the main obstacle on the inference side; the training side is a far harder test. Operators must produce numerically correct results and correct gradients. Distributed strategies must shard cleanly and re-gather correctly. Clusters must not only start up but stay up for a long time.

    The industry is moving quickly. One market research firm forecasts that around 5 million high-end AI chips will ship into the China market in 2026, roughly 83% year over year, with local solutions approaching 90% share (including cloud vendors’ in-house ASICs). As the supply mix localizes rapidly, “adaptation quality” is replacing “amount of compute” as the core variable that sets the ceiling on training efficiency.

    Several vendors have recently published adaptation progress:

    • One domestic GPU vendor disclosed in its 2026 interim report that several large model companies had used its thousand-card cluster to complete multimodal pretraining and reinforcement learning, with precision aligned to mainstream international products.
    • One AI chip vendor said at its 2026 semi-annual results briefing that training-side adaptation keeps extending into thousand-card and ten-thousand-card cluster scenarios.
    • Baidu announced at Create 2026 that its all-domestic cluster, built on its in-house AI chips, completed training of a major version of ERNIE 5.1 with a 97% effective training rate.
    • Another vendor disclosed that its domestic AI accelerator card has been adapted to more than 400 mainstream large models.

    These disclosures mostly answer “how much has been adapted” and “how large has it scaled.” Far less public engineering detail exists on how a given class of model steps through the training chain on domestic cards. A recent validation run — a 2.8 trillion-parameter MoE native multimodal model, 400 consecutive steps on 16 cards across two nodes — offers a usable engineering sample. To be clear: this is a pruned-configuration chain validation, not full-scale pretraining. This article uses it as a main thread to unpack the key engineering problems and to distill a reusable method.

    2. Case Breakdown: What a 400-Step Validation Actually Proves

    2.1 First, Define It: What Is “Training Chain Validation”

    Training chain validation verifies, under small scale and short step counts, that the full loop — forward pass, loss computation, backward pass, gradient reduction, parameter update — actually closes. It splits into four layers:

    1. Functional correctness: operators and communication semantics are implemented correctly.
    2. Numerical correctness: forward and backward results match a reference implementation within tolerance.
    3. Trend sanity: loss decreases as expected and the validation set improves along with it.
    4. Runtime stability: no numerical overflow, no communication timeouts, no abnormal process exits.

    Its role is a gate before sign-off. It is not chasing model quality; it only confirms that the road is built and the vehicle can drive on it.

    2.2 Test Configuration: Trading Coverage for Scope

    The validation used a pruned configuration:

    • Language backbone: 13 layers, 16 routed experts, Top-8 activated.
    • Vision side: the full 27-layer vision tower and the cross-modal projection modules were kept.
    • Training method: random-initialization training on an image-text dataset, with no pretrained weights.

    Trimming layers is standard practice for chain validation. A shorter language backbone keeps per-step compute and communication overhead controllable, so operator problems can be iterated quickly on a limited number of cards. Critically, the key paths still covered include MoE routing, cross-modal fusion, and hybrid attention.

    Keeping the vision tower complete sends a deliberate signal. The goal is not to let the language model learn next-token prediction. It is to verify that cross-modal gradients propagate from the language loss all the way back into the vision encoder. If the vision tower were frozen or excluded from parameter updates, the validation would reduce to language-side problems only, and the most error-prone part of multimodal adaptation would be skipped.

    As for “16 routed experts”: because the total expert count was not disclosed, there is no way to tell whether the language backbone was pruned in the same way. No inference is made here.

    2.3 Result Metrics and What Each Number Means

    Metric Value Notes
    Hardware scale 16 cards across two nodes Covers cross-node communication
    Training steps 400 Continuous run, no abnormal interruptions
    Numerical stability No numerical overflow Key threshold for mixed-precision training
    Training loss 8.9365 → 2.1802 Mean of steps 21–70 → mean of the final 50 steps
    Validation loss 6.5297 → 4.6873 Downward trend in step
    Peak memory 44.80 GiB Per-card peak
    Parameter updates Vision branch participating Cross-modal backward path established

    (1) Training loss fell roughly 76%, consistent with random initialization

    The drop from 8.9365 to 2.1802 is about 76%, corresponding to language modeling perplexity moving from roughly e^8.94 ≈ 7.6K to e^2.18 ≈ 8.9.

    More informative is whether the starting point makes sense. A randomly initialized model’s initial cross-entropy should sit near log(vocabulary size), so its starting perplexity should be roughly the vocabulary size itself. Backing that out from 8.94 gives an equivalent vocabulary on the order of 7.6K. If the tokenizer’s vocabulary is clearly larger than that, it is worth checking whether the embedding weights failed to load, or whether the loss is computed on the wrong output layer. An initial loss in the “uniform guessing” range is exactly what random-initialization training should look like.

    (2) Interval averages, not single points

    Taking the mean over steps 21–70 for the early segment and the mean over the final 50 steps for the late segment is the defensible engineering choice:

    • The first few dozen steps typically include learning rate warmup and routing adjustments, so per-step loss is noisy.
    • Averaging over a neighborhood filters transient jitter and reflects the real trend.
    • The two windows do not overlap, which avoids an inflated impression from overlapping intervals.

    (3) Validation loss fell in step

    Validation loss dropped from 6.5297 to 4.6873, with perplexity moving from roughly 684 to 108, a decline of about 28%. Training and validation losses moving in the same direction indicates that no obvious overfitting has appeared over this short run, and that the model is genuinely learning rather than only memorizing training samples.

    That said, a 400-step span is nowhere near enough to judge generalization. This conclusion holds only at the chain level: the gradient direction is effective, and the loss surface can be optimized normally.

    2.4 Validation Blind Spots Under a Pruned Configuration

    Dimension This validation (pruned) Full-scale pretraining
    Model scale Shortened language backbone, complete vision tower Full depth, all experts
    Parallelism strategy Mainly FSDP-style sharding Tensor / pipeline / expert / sequence parallelism combined
    Memory pressure 44.80 GiB peak per card Memory capacity and communication overlap both bind
    Run duration 400 steps Tens of thousands to hundreds of thousands of steps
    Validation goal Functional and numerical correctness, sane trends Convergence quality, long-run stability, training efficiency
    Primary risk Operator and cross-modal gradient implementation Fault accumulation, long-range drift, cluster efficiency decay

    3. Engineering Breakdown: The Three Layers This Adaptation Focused On

    The vendor framed the work as “systematically opening up the distributed training chain” rather than chasing peak single-card numbers. That work falls into three layers: operators, parallelism, and communication.

    3.1 Operator Layer: Hybrid Attention and MoE Routing, Forward and Backward as Pairs

    Hybrid attention means several attention mechanisms coexist in the same model — sliding-window alternating with global attention, or sparse attention combined with dense attention. On domestic cards, the forward pass is not where the difficulty lies:

    • Different attention window lengths produce different memory access patterns.
    • Masking for variable-length sequences.
    • Normalization after concatenating sparse and dense branch outputs.

    The backward pass matters more. Attention backward involves the softmax Jacobian, mask gradients, and chained derivatives of scaling factors. A deviation in any one of them can amplify into a visible error once layers are stacked.

    MoE routing is classic sparse computation, and the engineering difficulties cluster in three places:

    1. Expert capacity and token dropping: each expert has a capacity limit, and tokens beyond it are dropped along with their gradients. Too small a capacity loses information; too large wastes memory and compute.
    2. Load balancing: routing tends toward winner-take-all, with a few experts selected repeatedly. This requires a load-balancing loss, and some implementations add a router z-loss to suppress logit growth — which directly determines whether softmax overflows under mixed precision.
    3. Discreteness in the backward pass: routing indices come from argmax/topk and are not differentiable with respect to the weights. The real gradient flows back through only two paths: the gating weights and the expert outputs. If a custom operator wrongly folds index computation into the gradient path, single-step loss may look fine, but the parameter update direction will drift. Hundreds of steps later, that surfaces as a stalled or diverging loss.

    So “forward and gradient implementations are all in place” is a necessary condition for chain validation, not a sufficient one. It still has to be cross-checked with precision alignment and trend observation over hundreds of steps.

    3.2 Parallelism Layer: Parameter-Sharded Data Parallelism Plus Cross-Modal Updates

    Training used an FSDP-style fully-sharded data parallel strategy, which shards three kinds of tensors: parameters, gradients, and optimizer states. Each card holds only a portion of the full state. Forward passes all-gather parameters on demand, backward passes reduce-scatter gradients, and after the optimizer step the state is sharded again.

    For mixed-precision training, per-parameter memory roughly breaks down as:

    • Parameters: about 2 bytes per parameter in bf16, plus another 4 bytes if an fp32 copy is kept.
    • Gradients: about 2 bytes per parameter (4 bytes for fp32 gradients).
    • Adam optimizer states: first and second moments at 4 bytes each, 8 bytes per parameter in total; add another 4 bytes if fp32 master weights are maintained.

    Running the numbers:

    • The full 2.8 trillion parameters need at least roughly 44.8 TB of memory to hold parameters, gradients, and optimizer states — before activations and communication buffers. That is why full-scale training requires deeper sharding via tensor, pipeline, and expert parallelism, plus ZeRO-style optimizer state offloading.
    • This run’s 44.80 GiB per-card peak is about 56% of an 80 GB-class GPU. Memory is not the bottleneck here, which confirms that the test’s focus is logical correctness rather than capacity limits.
    • The vision branch participating in updates means the full vision tower’s gradients have to cross node boundaries and be reduced through AllReduce/ReduceScatter. Vision encoders typically use resolution-dependent attention, so their sequence lengths are far longer than the language branch’s. Their activation memory and communication volume are both non-trivial.

    3.3 Communication Layer: The Cross-Node Collective Library Carries Gradient Sync and Parameter Aggregation

    Cross-node communication is handled by a vendor-built collective communication library, playing the role that the general ecosystem’s collective libraries play in domestic software stacks. The training chain touches several primitives:

    • Gradient reduction: AllReduce or ReduceScatter.
    • Parameter aggregation: AllGather, repeated at every FSDP layer.
    • MoE dispatch and combine: All-to-All, the most typical bottleneck in MoE training. Its traffic grows with topk and expert count, and it is sensitive to network tail latency.
    • Tensor parallelism: AllReduce / AllGather.
    • Pipeline parallelism: point-to-point send and receive.
    • Cross-modal sync: when the vision tower and the language backbone sit on different devices, activations and gradients must be passed at both forward and backward.

    The value of a two-node setup is that it exercises both intra-node high-speed interconnect and the inter-node network. If the library has defects in AllGather and ReduceScatter semantics, in multi-stream concurrency, or in mixed-precision reduction, they usually surface within a few hundred steps as timeouts, hangs, or anomalous loss.

    The platform view: running this kind of training also depends on general cloud capabilities — container platform resource orchestration, object storage for data loading, and log service for metric collection plus monitoring and alerting for anomaly localization. Baidu AI Cloud and similar cloud providers can support these general-purpose links.

    4. A Reusable Methodology for Chain Validation

    The case above distills into a six-stage progression:

    Stage Goal Key actions Pass criteria
    0 Environment baseline Consistent software and hardware baseline Pin driver, collective library, and framework versions; establish a reference configuration Environment is reproducible
    1 Precision alignment Numerically correct operators Compare forward/backward outputs layer by layer Max absolute/relative error within threshold
    2 Small-scale convergence Training loop usable Single-card or small-batch overfit test, gradient checks, short training run Loss decreases steadily
    3 Multi-card scaling Correct communication semantics AllReduce/AllGather/All-to-All correctness tests Results match the non-communicating case
    4 Long-run inspection Hundreds of steps without anomalies Monitor loss, gradient norm, loss scale, expert load, memory headroom No overflow, no interruptions
    5 Scaling extrapolation From pruned to full configuration Memory capacity modeling, parallelism strategy selection, effective training rate assessment Extrapolation error stays controlled

    Stage 1: Precision alignment. Feed the same input to a custom operator and its reference implementation, and compare forward and backward outputs layer by layer. On the forward side, track max absolute and relative error. On the backward side, focus on custom gradient paths such as expert routing and cross-modal projection.

    Stage 2: Gradient checks. A full numerical gradient check is expensive, so sample key modules such as projection and gating layers. Framework-agnostic sketch:

    1. # Gradient check (illustrative): analytic vs central-difference numerical gradient (pseudo-code)
    2. eps = 1e-3
    3. for name, param in sampled_params:
    4. # analytic gradient from the backward pass
    5. param.grad = backward(loss)
    6. # central-difference numerical gradient
    7. orig = param.clone()
    8. param.set(orig + eps)
    9. lp = forward_loss()
    10. param.set(orig - eps)
    11. lm = forward_loss()
    12. param.set(orig)
    13. numeric = (lp - lm) / (2 * eps)
    14. analytic = param.grad
    15. rel_err = abs(numeric - analytic) / (abs(numeric) + abs(analytic) + 1e-8)
    16. # empirical threshold: ~1e-3 in float32; relax accordingly in bf16
    17. assert rel_err < 1e-3, name

    A single-batch overfit test is also worth running: fix the same small batch and train on it repeatedly. Loss should fall to near zero within a few dozen steps. If it does not, the problem is most likely in the gradients rather than the data.

    Stage 3: Communication correctness. The classic self-check is to give every card a predictable tensor, run a collective operation, and compare against the theoretical result:

    1. # Collective communication self-check (pseudo-code)
    2. x = arange(local_numel) + rank * local_numel # every rank holds predictable data
    3. all_reduce(x, op=SUM) # result must equal the sum over ranks
    4. all_gather(x, out) # concat order must match rank order
    5. all_to_all(x, out) # dispatch by split index (MoE-critical)
    6. assert allclose(x, expected)

    For MoE, one more check is worth adding: the set of tokens each expert receives after dispatch must exactly match what you compute by hand from the routing indices.

    Stage 4: Stability inspection. Attach lightweight hooks to the training loop and log the following per step against thresholds:

    1. # Training loop stability checks (pseudo-code)
    2. # 1) numerical check on gradients and activations: NaN, Inf
    3. assert all(torch.isfinite(t).all() for t in activations)
    4. assert torch.isfinite(grad_norm)
    5. # 2) gradient norm and clipping
    6. grad_norm = clip_grad_norm_(params, max_norm=1.0)
    7. assert grad_norm < 1e4 # an order-of-magnitude jump often precedes a loss explosion
    8. # 3) mixed-precision loss scaling: alert on consecutive overflows
    9. if overflow_count > threshold:
    10. alert("loss scale collapse")
    11. # 4) MoE expert load: max-to-mean load ratio
    12. load_ratio = tokens_per_expert.max() / tokens_per_expert.mean()
    13. assert load_ratio < capacity_factor

    For MoE models, expert load imbalance is often the earliest symptom in long-running training and deserves to be monitored as closely as the loss curve.

    Stage 5: Scaling extrapolation. Going from a pruned configuration to full scale means confronting at least three things:

    1. Restructuring the parallelism strategy. Memory, communication volume, and compute all vary nonlinearly with how you shard, so nothing should be extrapolated linearly with card count.
    2. Long-run stability. 400 steps only proves the system survives briefly. It will not expose memory fragmentation accumulation, handle leaks, or slow nodes that only appear over long runs.
    3. Effective training rate. The share of end-to-end time spent on productive training is a much better proxy for production readiness than “it runs,” and it has to be assessed alongside checkpoint/resume and fast fault localization.

    At the platform level, general cloud capabilities such as monitoring and alerting, log aggregation, automatic restarts, and checkpoint resume can substantially shorten fault recovery time and therefore raise the effective training rate.

    5. From Chain Validation to Full Pretraining: Three Hurdles Remain

    1. Scale. Two nodes and 16 cards cover the basic communication paths, but full trillion-parameter training typically spans dozens to hundreds of nodes. Ring latency in gradient sync grows with node count, All-to-All traffic stacks up under a rail-optimized topology, and the bubble ratio between tensor and pipeline parallelism shifts. At larger scale, these compound into a communication wall.
    2. Long-run stability. Over months of continuous training, hardware failures, ECC errors, and network jitter are unavoidable. Checkpoint read/write throughput has to keep pace with the fault rate, and state re-sharding after a parallelism change (for example, adjusting pipeline degree) needs its own validation.
    3. Convergence quality. Short training on a pruned configuration only shows that gradient direction is valid. A complete model brings more layers, more experts, and longer sequences. Routing collapse, long-range expert drift, and mismatched learning rate schedules only show up in full training. In the end, results also need to be benchmarked against mature approaches on standard evaluation sets.

    6. Conclusion

    The value of a 400-step validation on a pruned configuration is not how far the loss dropped. It is that it demonstrates, publicly and reproducibly, that the entire chain — hybrid attention, MoE routing, and a cross-modal vision tower; forward and backward implementations; parameter sharding; cross-node communication — can run end to end on domestic GPUs.

    For engineering teams, the more transferable asset is the method itself: align precision first, then run gradient checks, then self-test communication, then inspect for stability, and only then extrapolate to scale. Each stage has explicit pass criteria, which turns “does it run” into “on what basis can we claim it runs correctly.”

    It is equally important to stay clear-eyed. Between a pruned-configuration run and full 2.8-trillion-parameter pretraining sit three hurdles: cluster scale, long-run stability, and convergence quality. Chain validation is a necessary condition for domestic compute to reach large-scale training, not the finish line. As more adaptation cases and engineering details become public, reproducibility and operability on the training side should move from point validations toward validation at scale.