How a Domestic GPU Validated the Training Pipeline of a MoE Multimodal Model

    A recent lab validation ran a cropped version of a 2.8-trillion-parameter MoE native multimodal model on domestic GPUs, reporting training loss, validation loss, and memory figures over 400 steps. This article explains how to read such results, provides a working FSDP2 training skeleton, and outlines verification approaches for MoE operators, All-to-All communication, and memory behavior.

    1. First, Understand What Was Actually Validated

    As large model parameter counts grow rapidly, whether training frameworks and underlying compute can keep up has become a key factor in iteration speed. MoE (Mixture of Experts) native multimodal models combine dynamic sparse attention with expert routing, placing higher demands on multi-GPU communication and memory management. Recently, a domestic GPU vendor completed training pipeline adaptation and validation for a MoE native multimodal model with a nominal 2.8 trillion parameters in a lab environment.

    When reading reports like this, it’s important to distinguish two things. The 2.8 trillion figure is the full model’s parameter count; what was actually run was a cropped version. The cropped version retains 13 layers of the language backbone, configures 16 routed experts with Top-8 expert activation per token, and fully preserves the 27-layer vision tower and cross-modal projection module. The original materials do not disclose the cropped model’s total parameter count, so its proportion of the full model cannot be estimated.

    The purpose of this validation was to check whether the training pipeline runs, whether loss decreases, and whether memory stays under control. It does not prove that the full 2.8-trillion-parameter model can be fully pretrained, nor that the model has converged to a production-ready level.

    2. Reading the Training Configuration and Metrics

    The original materials disclose several numbers but omit many measurement conditions. The table below lists what is known and what is not.

    Item Disclosed Not disclosed
    Cluster size Two nodes, 16 GPUs GPUs per node, GPU model, interconnect topology
    Training steps 400 consecutive steps Batch size, sequence length
    Training loss Mean of 8.9365 over steps 21–70, mean of 2.1802 over the last 50 steps Numeric precision, learning rate schedule
    Validation loss Decreased from 6.5297 to 4.6873 Validation set size, evaluation frequency
    Memory Peak within 44.80 GiB Whether this is per-GPU or across all GPUs, whether activation checkpointing was enabled

    Two points deserve attention. First, the initial loss of 8.9365 is the mean over steps 21–70, not the value at step 1. Comparing it directly with the final-segment mean only shows an overall downward trend, not a precise measure of convergence speed. Second, the memory figure does not specify its measurement scope. If it is a single-GPU peak, it may differ across GPUs, and it’s unclear whether techniques like activation checkpointing were in effect.

    A 400-step training curve is enough to show that the system did not crash immediately and that loss declined overall. It cannot demonstrate stability over longer training runs, nor represent downstream task performance.

    3. The Correct Way to Write FSDP2 Sharding

    FSDP2’s API differs from earlier FSDP1. FSDP2 wraps modules one by one via fully_shard, does not use the ShardingStrategy parameter, and no longer uses the FullyShardedDataParallel class. Code written in the FSDP1 style will not run directly. Below is a skeleton of a runnable setup, where the model-building and dataset-building functions must be implemented by the user.

    1. import os
    2. import torch
    3. import torch.distributed as dist
    4. from torch.distributed.device_mesh import init_device_mesh
    5. from torch.distributed.fsdp import fully_shard, MixedPrecisionPolicy
    6. from torch.utils.data import DataLoader, DistributedSampler
    7. # Launch example: torchrun --nnodes=2 --nproc_per_node=8 train.py
    8. # The original materials do not specify GPUs per node; 8 per node is assumed here
    9. dist.init_process_group(backend="nccl")
    10. local_rank = int(os.environ["LOCAL_RANK"])
    11. world_size = dist.get_world_size()
    12. torch.cuda.set_device(local_rank)
    13. mesh = init_device_mesh("cuda", (world_size,))
    14. # User-implemented: returns the cropped MoE multimodal model,
    15. # which must expose a language_blocks attribute
    16. model = build_cropped_moe_model()
    17. # Compute in bf16, reduce gradients in fp32
    18. mp_policy = MixedPrecisionPolicy(
    19. param_dtype=torch.bfloat16,
    20. reduce_dtype=torch.float32,
    21. )
    22. # Shard block by block first, then the root module, so each block
    23. # gathers parameters on demand during the forward pass
    24. for block in model.language_blocks:
    25. fully_shard(block, mesh=mesh, mp_policy=mp_policy)
    26. fully_shard(model, mesh=mesh, mp_policy=mp_policy)
    27. optimizer = torch.optim.AdamW(model.parameters(), lr=1e-4)
    28. # User-implemented: returns a dataset with images, text, and labels
    29. dataset = build_dataset()
    30. sampler = DistributedSampler(dataset, shuffle=True)
    31. loader = DataLoader(dataset, batch_size=8, sampler=sampler)
    32. step = 0
    33. epoch = 0
    34. while step < 400:
    35. sampler.set_epoch(epoch)
    36. for image, text, label in loader:
    37. outputs = model(image, text)
    38. loss = compute_loss(outputs, label) # user-implemented
    39. optimizer.zero_grad()
    40. loss.backward()
    41. torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
    42. optimizer.step()
    43. if dist.get_rank() == 0 and step % 10 == 0:
    44. print(f"step={step} loss={loss.item():.4f}")
    45. step += 1
    46. if step >= 400:
    47. break
    48. epoch += 1

    A few notes on this code. It does not handle dedicated parallelism for MoE expert parameters. In real MoE training, experts are typically placed in expert-parallel (EP) communication groups, separate from the ordinary data-parallel group. The batch_size=8 in the example is arbitrary; the actual value should be determined based on memory and throughput. clip_grad_norm_ is a common stability measure, but the original materials do not say whether it was used. Options such as activation checkpointing, CPU offloading, and communication bucketing also need to be added depending on memory conditions; the example does not cover them.

    4. Verifying MoE Operators and Gradient Alignment

    In a MoE structure, gradients must propagate from the routing gateway back to the parameters of the selected experts. Top-K selection itself is not differentiable; gradients flow only through the weighting coefficients of the gating values. If the operator implementation has a defect, the loss may still decrease, but parameter updates for some experts will deviate from the correct values.

    The common approach to validating such implementations is comparison against a reference implementation:

    1. Run forward and backward passes in float64 with very small inputs, for example a few tokens and two experts.
    2. Compute outputs and gradients for the same inputs using a reference implementation, such as a naive pure-PyTorch loop version.
    3. Use torch.autograd.gradcheck to check the custom operator’s gradients, or directly compare the gradients from both implementations.
    4. Confirm that every expert receives non-zero gradients and that the number of tokens routed to each expert matches expectations.

    The indexing and memory access patterns of dynamic sparse attention should be checked the same way. A smooth loss curve, as in the original materials, only indicates the absence of obvious numerical errors; it cannot replace per-operator correctness testing.

    5. Observing All-to-All Communication and Memory

    In MoE training, the most underestimated cost is All-to-All communication. Tokens are dispatched to the GPUs hosting different experts and then collected back, happening once or more per layer per step. For a rough estimate, the per-layer dispatch volume can be judged with this formula:

    Per-layer, per-dispatch communication volume ≈ token count × Top-K × hidden dimension × bytes per element × (number of GPUs − 1) / number of GPUs.

    By this formula, increasing Top-K from 2 to 8 increases communication volume roughly fourfold. So the choice of expert count and activated experts directly affects communication pressure.

    Cross-node communication is far slower than intra-node communication. If bandwidth between the two machines is insufficient, communication time will dominate. If you want to reproduce a similar validation, it is recommended to record the following metrics:

    • Time per step, and the share of communication time in total step time;
    • The actual allocation peak from torch.cuda.max_memory_allocated versus the reserved peak from max_memory_reserved — the gap between them reflects fragmentation;
    • The step numbers at which OOM or NaN occurred, along with the expert load distribution at those points.

    These metrics help determine whether the bottleneck is compute, communication, or memory, and are more useful than looking at the loss curve alone.

    6. A Note on Industry Figures

    The original materials mention that several large model companies are using domestic thousand-GPU clusters for multimodal pretraining and reinforcement learning, and that some chips have been adapted to multiple mainstream open-source models. The materials also cite a statement from a leading tech company claiming a 97% effective training rate on its fully domestic AI chip cluster, and a claim that one vendor’s compute units have been adapted to hundreds of mainstream large models.

    These figures come without sources, statistical periods, or measurement definitions. For example, how “effective training rate” is defined, and whether failure-and-restart time is excluded, cannot be determined from the materials. This article does not accept these specific figures and treats them only as background clues. To judge the real capability of domestic compute, look for publicly available training logs, reproducible configurations, and third-party benchmarks.

    7. Conclusions and Recommendations

    The value of this validation lies in the engineering details it disclosed: training loss, memory usage, and the code path. Compared with announcements that only publish cluster sizes, such information is easier to verify. However, what it validated was the training pipeline of a cropped model over 400 steps — not the pretraining of the full 2.8-trillion-parameter model.

    If you are evaluating a similar platform, proceed in this order: first confirm distributed training and operator numerical correctness on a small model, then scale up to a cropped MoE version, and finally record complete configurations, metrics, and failure cases. Only when all of these conditions are clearly documented can training results be reproduced and compared by others.