Trillion-Parameter MoE Training Adaptation on a Domestic GPU Stack: What 400 Stable Steps Prove and What They Don't
A China-based GPU vendor recently reported completing training adaptation for Kimi K3.1 Pro, a roughly 3-trillion-parameter open-source model, on 16 accelerators across two nodes. Over 400 consecutive optimizer updates, loss and gradient norm stayed finite with no numerical overflow or interruption, using a native FSDP2 path for multimodal training. This article explains what such a result actually validates: it distinguishes training adaptation from base-model pretraining, breaks down the core stages of adaptation (sharding, forward/backward, gradient synchronization, optimizer updates), explains why trillion-scale MoE models are especially hard to port, and provides a practical acceptance checklist — reference-implementation loss comparison, layer-wise precision checks, long-run stability, throughput and MFU, fault recovery, and scaling tests — so readers can judge the trainability of domestic compute hardware with clear expectations.
1. What Happened: 16 Accelerators, 400 Steps, No Divergence
A China-based GPU vendor recently announced that it has completed training adaptation for the open-source flagship model Kimi K3.1 Pro, at a scale of nearly 3 trillion parameters. According to the vendor, the work was done on its flagship training-and-inference AI accelerator together with its in-house GPU software stack, and the test ran jointly across two nodes with 16 accelerators in total. Sixteen training processes completed 400 consecutive optimizer updates, with loss and gradient norm staying finite throughout, and without numerical overflow or abnormal interruption.
The vendor also shared technical details:
- The adaptation built a native FSDP2 multimodal training path covering the full training chain: model loading, shard scheduling, and gradient synchronization.
- At the company level, an engineering-grade training system has been assembled, producing a set of results described as domestic chips training domestic models:
- Complete from-scratch training of a roughly 236-billion-parameter scientific foundation model, “021”.
- Full-stack native training support for “Peking University EvoPhys-World”, described as the world’s first 5D world model.
- Full-pipeline training of the embodied brain model RoboBrain 2.5, in collaboration with BAAI.
- The company says it is moving on to training trillion-scale models.
Let us put the conclusion up front:
- Core metric. Judging whether a training adaptation succeeded starts with numerical stability — whether loss and gradient norm remain finite at all times, and whether training runs without interruption.
- Necessary, not sufficient. 400 stable steps are the necessary entry ticket. They are not enough to prove that domestic accelerators can already handle large-scale pretraining of a trillion-parameter model.
- Ceiling of the claim. An adaptation exercise verifies whether domestic hardware plus a software stack can train at all. It does not verify how fast it trains, or whether it can hold steady over long runs at thousand-accelerator scale.
2. Concept Check: Training Adaptation Is Not Base Pretraining
2.1 Three notions that are often conflated
| Concept | What it validates | Core metrics | Hardware role |
|---|---|---|---|
| Inference deployment adaptation (often called “Day 0” adaptation) | Whether model weights load and forward operators execute correctly | Output consistency, time to first token, throughput | Serves inference traffic |
| Training / fine-tuning adaptation | Whether forward, backward, and optimizer updates run end to end | Finite loss and gradient norm, no interruption, reproducibility | Can support fine-tuning, continued pretraining, and even pretraining |
| Base pretraining | Training base weights from random initialization on massive data | Scaling efficiency, long-run stability, convergence quality, cost per token | Carried by the compute infrastructure of the base stage |
2.2 Two dimensions: when, and which step
To work out what role a piece of hardware plays in a model’s training chain, ask three questions: when does it enter, which step does it cover, and to what depth has it been validated.
- Day 0 inference adaptation. Deployment lands on the day the model is released; it is a first contact.
- When: at model release.
- Scope: the inference path only, typically with no backpropagation or optimizer state.
- Role: serves inference traffic.
- Training / fine-tuning adaptation. Supervised fine-tuning or continued pretraining using open weights; ongoing engineering work.
- When: after model release.
- Scope: the complete training chain.
- Role: can become a compute source for fine-tuning and even pretraining.
- Base pretraining. Base weights produced from scratch; foundational work.
- When: before model release.
- Scope: the entire training pipeline.
- Role: determines the model’s “lineage”.
This yields one rule of thumb: capability demonstrated in an adaptation or validation stage cannot be used to infer the actual contribution made during pretraining.
2.3 How far is training adaptation from base pretraining?
In this case, the adaptation used the weights of an already-trained open-source model. The goal was not to train from scratch but to verify whether the hardware and software stack can carry a complete training chain. Four questions had to be answered:
- Can nearly 3 trillion parameters be sharded correctly within limited memory?
- Can forward, backward, and optimizer updates be coordinated across heterogeneous nodes?
- Can low-precision training run for a long time without overflow?
- Can the engineering toolchain be used smoothly by engineers?
The gap between this adaptation and base pretraining shows up in three areas:
- Scale. Pretraining usually needs large clusters running for weeks or longer.
- Data. It involves cleaning and mixing massive corpora.
- Engineering. It requires fault recovery and mid-training evaluation.
3. Why Is Training Adaptation for Trillion-Scale MoE Models So Hard?
Kimi K3.1 Pro uses a sparse expert structure, commonly described as a trillion-scale MoE model. Adapting such a model to new hardware is considerably harder than adapting a dense model, and the difficulty concentrates in six places.
3.1 The memory wall: model state alone approaches 50 TB
Take mixed precision with an Adam-family optimizer. Per parameter, the memory cost works out roughly as follows:
- bf16 weights: 2 bytes
- bf16 gradients: 2 bytes
- fp32 master copy of parameters: 4 bytes
- fp32 first moment: 4 bytes
- fp32 second moment: 4 bytes
That is about 16 bytes per parameter. At 3 trillion parameters, model state alone requires roughly 48 TB of accelerator memory, before counting activations, temporary buffers, communication buffers, and fragmentation. No single accelerator can hold this no matter how large it is, so multi-dimensional parallelism is mandatory.
3.2 Combinatorially complex parallelism
Training such a model usually requires several forms of parallelism at once:
- Tensor parallelism (TP): splits the weight matrices within a layer.
- Pipeline parallelism (PP): splits by layer across groups of devices.
- Expert parallelism (EP): distributes different experts across different devices.
- Sequence / context parallelism (SP/CP): splits very long sequences.
- Fully sharded data parallelism (FSDP): shards parameters, gradients, and optimizer state as a whole.
The combinations explode, and so does the optimization space. Pick the wrong split and communication volume can multiply; split the pipeline poorly and large bubbles appear. A domestic GPU vendor has to validate operator implementations layer by layer and tune communication and memory footprint for every parallel combination — an enormous amount of work.
3.3 Numerical stability under low-precision training
bf16 has the same exponent bits as fp32 and therefore a wide dynamic range, but only 7 mantissa bits and limited precision. That is why it is the common precision for large-model training. Limited precision, however, does not equal stability: loss spikes, sudden jumps in gradient norm, and expert-routing collapse can all occur.
Numerical problems are rarely a single point of failure. They typically emerge from algorithm implementations, operator precision, and communication ordering acting together. Different chips differ in arithmetic units, reduction order, and mixed-precision policy, so bit-for-bit results may diverge. What matters is that training stays statistically equivalent: consistent loss-curve trends, comparable gradient norm magnitudes, and no overflow.
3.4 New architectures demand a fast software-stack response
Model architectures iterate quickly — sparse attention variants such as MLA, MoE routing, and various normalization and positional-encoding schemes. Once an open model is released, vendors often need to complete the following in a short window:
- Operator mapping and implementation for the new structure.
- Layer-by-layer precision alignment against the reference implementation.
- Performance tuning.
This tests the coverage and iteration speed of the software stack.
3.5 Heterogeneous interconnect and communication scheduling
GPU clusters usually have two levels of interconnect: high-bandwidth on-package and intra-node links inside a server, and an RDMA network between servers. The mapping of parallel strategies has to be topology-aware:
- The most communication-intensive TP and EP groups belong inside a node.
- Cross-node traffic should carry FSDP or DP groups.
Otherwise the inter-node links become the bottleneck.
3.6 Long-run stability and recoverability
Real pretraining runs for weeks, during which nodes fail, networks jitter, and even data-center-level incidents occur. Checkpoint resume, fault isolation, and automatic rescheduling are all mandatory — and none of these capabilities can be demonstrated in a few hundred steps.
4. Core Mechanics: How Native FSDP2 Covers the Full Training Chain
4.1 From flat parameter groups to per-parameter sharding
First-generation fully sharded data parallelism sharded at the granularity of a parameter group: one FSDP unit corresponded to one group of parameters. That is inflexible in scenarios such as expert parallelism that need fine-grained control over how parameters are distributed.
Native FSDP2 pushes the sharding granularity down to the individual parameter:
- Each parameter is split into multiple shards held by different ranks, with the logical layout described uniformly through a device mesh and a shard spec.
- Combined with TP and PP, it allows precise control over how each parameter is split and which device mesh it belongs to.
- This fine-grained design makes it naturally compatible with 2D/3D parallelism and a suitable foundation for trillion-scale MoE training.
4.2 The five stages of the full training chain
| Stage | Main work | Key considerations |
|---|---|---|
| ① Model loading | Build the model from configuration, initialize the structure on a meta device, then load sharded weights | Avoid loading full weights on every rank, which causes memory overflow and IO amplification |
| ② Shard scheduling | Apply the FSDP wrapper to each submodule (vision encoder, projector, language backbone, expert layers), producing a sharding plan and communication buckets | Wrapping granularity drives communication volume: too fine means many small messages, too coarse means high memory peaks |
| ③ Forward pass | All-gather parameter shards layer by layer during forward compute, release them immediately after use, and pipeline layer by layer | Overlap communication with computation to hide latency |
| ④ Backward and gradient synchronization | Compute the backward pass layer by layer and reduce-scatter gradient shards; gradients accumulate in sharded form | Control synchronization timing during gradient accumulation, for example with a no_sync window |
| ⑤ Parameter update | The optimizer updates only the local shard on each rank (including fp32 master parameters and momentum), then all-gathers full weights once per training configuration | Precision of master parameters and momentum, plus optimizer hyperparameters, must align with the reference implementation |
4.3 Illustrative code
The code below is illustrative pseudocode. It shows the calling logic of FSDP2 and is not a directly runnable implementation.
# Illustrative: native FSDP2 training loop based on a device mesh# Example: 8 accelerators per node, 16 total; the two mesh dimensions carry TP and DP/FSDPmesh = init_device_mesh(mesh_shape=(2, 8), mesh_dim_names=("dp", "tp"))# fully_shard(...) wraps submodules with per-parameter sharding; actual naming depends on the framework# 1. Build the model; construct the structure on a meta device first to avoid full weights on every rankmodel = build_multimodal_model(config)model.vision_encoder = fully_shard(model.vision_encoder, mesh=mesh["tp"])model.projector = fully_shard(model.projector, mesh=mesh)model.llm_backbone = fully_shard(model.llm_backbone, mesh=mesh)optimizer = AdamW(model.parameters(), lr=3e-4, weight_decay=0.1)for step, batch in enumerate(dataloader):# 2. Disable gradient synchronization on the DP dimension during accumulation to cut wasted communicationwith grad_sync_enabled(mesh["dp"], enabled=(step + 1) % accum_steps == 0):loss = model(batch) # 3. Forward: all-gather parameters layer by layer(loss / accum_steps).backward() # 4. Backward: reduce-scatter gradients layer by layerif (step + 1) % accum_steps == 0:gnorm = clip_grad_norm_(model.parameters(), max_norm=1.0)if isfinite(loss) and isfinite(gnorm): # Numerical guard: skip the step on anomaliesoptimizer.step() # 5. Each rank updates its local shardoptimizer.zero_grad(set_to_none=True)log_metrics(step=step, loss=loss.item(), grad_norm=gnorm,mem_peak=device.max_memory_allocated())
4.4 What makes multimodal training special
Kimi K3.1 Pro has multimodal understanding, so its training chain handles two kinds of heterogeneous input at once.
Inputs
- Text tokens.
- Visual tokens produced by a vision encoder from images or video.
Technical challenges
- The modules have different structures — vision encoders are mostly Transformer or convolutional, while the language backbone is MoE — so each module needs its own parallelism and precision strategy.
- Varying image resolutions and frame counts cause large fluctuations in sequence length, which affects the computation graph and peak memory.
- Loss weights, gradient clipping, and learning-rate schedules across modalities need to be coordinated.
Why it matters. The native FSDP2 approach naturally supports wrapping and composing modules one by one. Compared with packing heterogeneous modules into a single coarse-grained sharding unit, this makes it easier to balance memory and communication.
5. The Communication View: 16 Accelerators Across Two Nodes
Assume 8 accelerators per node; the 16-accelerator test therefore spans two servers over an inter-node link. A sensible parallel mapping looks like this:
- TP groups stay inside a node. After splitting a layer, every layer needs an all-reduce, making this the most frequent communication. Placing it inside the high-bandwidth domain prevents inter-node bandwidth from becoming the bottleneck.
- EP groups stay in-node or across adjacent nodes where possible. Expert routing introduces all-to-all, and its communication volume is highly sensitive to topology. MoE training usually combines a capacity factor with load-balancing loss to control peaks.
- FSDP/DP groups span nodes. When parameter shards cross nodes, the per-step inter-node volume of parameters and gradients is roughly the full parameter count multiplied by bytes per parameter. At 3 trillion parameters and 2 bytes each, cross-node traffic alone reaches the multi-terabyte range, which requires high-bandwidth inter-node networking and communication/computation overlap.
Communication primitives and parallel strategies:
| Parallelism | Main communication primitive | Characteristics |
|---|---|---|
| Tensor parallelism (TP) | all-reduce | Multiple times per layer, very frequent; suited to in-node links |
| Pipeline parallelism (PP) | point-to-point (P2P) | Point-to-point send/receive between adjacent stages; can overlap with compute |
| Expert parallelism (EP) | all-to-all | Strongly tied to routing decisions; risk of imbalance |
| FSDP / data parallelism | all-gather / reduce-scatter | Pipelines layer by layer; can be hidden behind computation |
Optimization techniques:
- Batch small messages into communication buckets.
- Overlap communication with the backward pass.
- Bucket and fuse gradients.
- Use topology-aware scheduling so parallel groups land in the right interconnect domain.
This is the second meaning of “400 steps without interruption”: the run also validates the stability of both intra-node and inter-node communication paths, along with the reliability of the collective communication library and network environment such as RDMA.
6. Engineering View: From “It Can Train” to “Train Out of the Box”
The “train out of the box” claim is essentially about lowering migration cost for users. Five indicators are useful here:
- Migration change rate.
- Number of environment setup steps.
- Degree of precision alignment.
- Fault recovery time.
- Self-service tuning.
| Capability | “It can train” stage | “Train out of the box” stage |
|---|---|---|
| Environment setup | Manual dependency builds; driver and framework versions require repeated matching | Container images work out of the box, with locked versions |
| Parallel configuration | Trial and error across each dimension | Configuration files recommend parallel strategies automatically |
| Precision checks | Manual inspection of loss curves | Layer-by-layer comparison tools against the reference implementation, with threshold alerts |
| Fault tolerance | Manual recovery from the latest checkpoint after a crash | Automatic faulty-node detection, automatic rescheduling, asynchronous checkpointing |
| Observability | Reliance on terminal logs | Unified metrics collection, anomaly detection, and visualization dashboards |
| Tuning | Dependence on vendor specialists | Profilers and performance-diagnosis recommendations provided |
Train out of the box = environment ready + smart configuration + verifiable precision+ self-healing fault tolerance + self-service tuning
7. How to Assess a Training Adaptation Properly: An Acceptance Checklist
7.1 What 400 stable steps demonstrate
- Complete training chain. Model loading, shard scheduling, forward, backward, gradient synchronization, and parameter updates all run.
- Usable base operators. The operators covered behave correctly at training precision.
- Reliable in-node and inter-node communication. Collectives complete stably in a real multi-node environment.
- Numerics under control. Loss and gradient norm staying finite indicates that the mixed-precision policy and gradient clipping work.
7.2 What 400 stable steps do not demonstrate
- Not long-run stability. Cumulative memory leaks, stragglers, and intermittent communication jitter are hard to expose.
- Not convergence quality. No long-range loss comparison against the reference implementation.
- Not performance level. No efficiency metrics such as tokens/s or MFU.
- Not thousand-scale scalability. Communication bottlenecks and failure probability rise non-linearly with scale.
7.3 Recommended acceptance tests
- Align with the reference implementation. Using the same code and hyperparameters, compare loss curves on a small model against results from mainstream GPUs.
- Layer-wise precision comparison. Numerically compare outputs of key layers — attention, MoE routing, normalization — against relative-error thresholds.
- Long-run stability test. Train for thousands of steps or more and watch for continuous growth in accelerator and host memory.
- Throughput test. Measure per-step time, tokens/s, and the split between gradient computation and communication to judge whether the parallel strategy is sensible.
- Fault-tolerance test. Inject node failures and network jitter to verify that checkpoint resume completes automatically.
- Scaling test. Scale from a single node to multiple nodes and multiple accelerators, and observe the near-linear region.
8. Industry Progress: From Isolated Wins to Systematization
Progress over the past two years shows that domestic chips training domestic models has moved from isolated breakthroughs toward a systematic effort:
- A roughly 236-billion-parameter scientific foundation model trained from zero.
- Full-stack native training for a 5D world model.
- Full-pipeline training for an embodied brain model.
The common thread is that training tasks are no longer confined to language models but extend to scientific computing, world models, and embodied intelligence. This suggests the software stack for domestic GPUs is progressing from “individual operators work” to “complex models are trainable”.
More significantly, this trillion-scale adaptation moves the capability validation of domestic hardware from “small-model fine-tuning” to the “full chain of ultra-large-scale MoE”. The signal it sends is that general-purpose domestic GPUs are closing the training-capability gap.
9. Practical Advice for Developers
- Verify numerical stability first. On any new hardware platform, run a small-scale convergence test before scaling up, so you avoid spending large amounts of compute on a bad baseline.
- Build layer-wise precision regression. Put numerical comparisons of key layers into the CI pipeline to catch precision regressions introduced by driver or framework upgrades.
- Match parallel strategy to topology. FSDP is a safe default at small scale; for large-scale training, evaluate combinations of TP/PP/EP with FSDP and apply topology-aware placement.
- Make observability part of the training script. Loss, gradient norm, peak memory, and communication time should be reported in real time, with anomalies skipping the step automatically and raising an alert.
- Plan for fault tolerance early. Save checkpoints asynchronously on a schedule, and verify that recovery from a checkpoint is consistent.
- Read adaptation claims rationally. Distinguish “training adaptation”, “inference adaptation”, and “base pretraining”, and look for publicly reproducible technical reports and third-party reproduction results.
- Choose cloud resources on demand. When using GPU compute in the cloud, look at general capabilities such as instance specifications, RDMA network support, storage throughput, and monitoring alerts, and choose according to budget and compliance requirements.
10. Summary
“16 accelerators across two nodes, 400 stable steps” is a valuable engineering validation. It shows that domestic GPUs have taken a key step on the training chain for trillion-scale MoE models. But training adaptation is not the finish line:
- Going from “it can train” to “it trains well” requires continued work on convergence quality, scaling efficiency, and long-run stability.
- Going from “it can train” to “train out of the box” requires an engineering system spanning environment, configuration, precision, fault tolerance, and tuning.
For developers, reading adaptation claims rationally and building a sound evaluation methodology is what makes technical selection on domestic compute reliable.
