Chinese GPU Vendor Completes Training Adaptation for a Nearly 3-Trillion-Parameter Model
A Chinese AI chip vendor reports that it has completed training adaptation for an open-source flagship multimodal model with nearly 3 trillion parameters, running on 16 accelerator cards across two nodes. In testing, 16 training processes completed 400 consecutive optimizer updates with loss and gradient norms staying finite throughout, with no numerical overflow or abnormal interruption. This article explains why stable training—not inference—is the real measure of a "full-function" AI accelerator, clarifies the difference between training enablement and pretraining a model from scratch, and walks through fully-sharded data parallelism (ZeRO-3/FSDP), the complete training pipeline from model loading to gradient synchronization, why cross-node training is a watershed, how to read stability and performance metrics, and a practical reference workflow for adapting large-model training to a new GPU platform. It also outlines what it takes to move from "can train" to "out-of-the-box training."
1. Background: A Key Step Toward Full-Function Domestic Compute
A Chinese AI chip vendor recently announced that, using its flagship train-and-inference accelerator card and its in-house GPU software stack, it had completed training adaptation for an open-source flagship multimodal large model with a parameter count approaching 3 trillion. The test used a dual-node configuration with 16 accelerator cards in total, running 16 training processes that completed 400 consecutive optimizer updates. Throughout the run, both loss and gradient norms stayed finite, with no numerical overflow and no abnormal interruptions.
Technically, the value of this work is not just “one more model that runs,” but a substantive step for domestic compute platforms in the far more demanding scenario of training.
Inference and training place very different demands on hardware:
- Inference is dominated by forward computation such as matrix multiplication. Weights are typically read-only, and a single task can finish in a few minutes.
- Training adds backpropagation on top of the forward pass, maintains gradients and optimizer states, and synchronizes parameters across cards. It must not only “compute fast” but also “compute correctly and compute for a long time.” A single numerical anomaly or communication interruption can waste tens of thousands of card-hours of effort.
For this reason, “the ability to stably support large-model training” is one of the key benchmarks for whether an AI accelerator qualifies as “full-function.”
2. Clarifying the Concepts: Training Adaptation ≠ “Domestic Chips Training a Model”
When discussing training large models on domestic compute, the first thing to clarify is three concepts that are often conflated.
1. Training adaptation (enablement)
Making a model fully capable of training on specific hardware and a software stack. This typically covers:
- Operator coverage and numerical correctness;
- Mixed-precision strategy;
- Distributed parallelism strategy;
- Cross-node communication;
- Optimizer updates;
- Checkpoint and resume.
2. Small-scale continuous training validation
On top of adaptation, running a short number of steps to observe the convergence curve and numerical health. What this proves is that “this hardware/software combination can stably support the training process for this model,” not that “this model has been fully trained.”
3. Pretraining from scratch
Starting from randomly initialized weights and using massive corpora and tens of thousands to hundreds of thousands of updates to produce the final model. This is what is usually meant by “a model was trained on a certain type of chip.”
These three are not equivalent. Successful adaptation and enablement show that the platform has the conditions for training, but they do not mean the model was pretrained on that chip. To judge “where the pretraining compute for a base model came from,” you need to look at whether the official technical report provides complete information such as compute scale, training duration, and cluster configuration. The “multi-platform side-by-side validation” often seen in technical reports is usually validation of inference operators or specific parallelism schemes, and cannot be taken directly as the source of pretraining compute.
From this perspective, 400 consecutive updates sit at the “small-scale continuous validation” level of the training pipeline. They are a necessary prerequisite on the path to full pretraining, but there is still a long way to go.
3. Next-Generation Fully-Sharded Data Parallel: The Must-Answer Question for Trillion-Parameter Models
3.1 The memory wall: why sharding is required
Taking a mainstream mixed-precision training configuration as an example, with the commonly used AdamW optimizer, each parameter requires roughly:
- BF16/FP16 weights: 2 bytes
- BF16/FP16 gradients: 2 bytes
- FP32 master weights: 4 bytes
- FP32 first moment: 4 bytes
- FP32 second moment: 4 bytes
That totals about 16 bytes. By this estimate, 1 trillion parameters require about 16 TB of memory for model states alone, and nearly 3 trillion parameters require nearly 50 TB—far beyond the capacity of any single card. Activations consume additional memory as well. Sharding is therefore the starting point for all trillion-scale models.
3.2 From DDP to full sharding
The evolution of data parallelism can be understood as “progressively partitioning model state”:
| Parallelism | What is partitioned | Per-card model state | Typical use case |
|---|---|---|---|
| DDP (Distributed Data Parallel) | Nothing; each card keeps a full replica | Proportional to total parameters | Small/medium models, simplicity |
| Partition optimizer states | Optimizer states | Reduced by more than half | Parameters fit on one card, memory tight |
| Further partition gradients | Optimizer states and gradients | Reduced further | Full parameters do not fit on one card |
| Full sharding (ZeRO-3 / FSDP) | Parameters, gradients, optimizer states | Roughly total divided by number of cards | Large models whose parameters exceed a single card |
The basic flow of full sharding is as follows:
- Forward phase: Gather (all-gather) full parameters layer by layer on demand for computation, releasing them immediately after use.
- Backward phase: Gather parameters again, compute gradients, then immediately reduce-scatter them.
- Optimizer phase: Each card updates only the parameter shards it is responsible for.
Model parallelism—represented by tensor parallelism (TP), pipeline parallelism (PP), expert parallelism (EP), and sequence parallelism (SP)—partitions along the dimensions of the model structure and is often combined with data parallelism.
3.3 Differences between old and new generations of full-sharding implementations
Early full-sharding implementations used a “flat parameter” approach: a group of parameters was packed into a contiguous one-dimensional buffer and then sharded as a whole. The benefits are fewer communication operations and centralized implementation, but this approach constrains combining with model parallelism, setting per-parameter precision, and saving memory.
The new generation of implementations (commonly called FSDP2 in the industry) shifts to “per-parameter sharding”:
- Each parameter is sharded independently across devices, with its sharding described by distributed tensors;
- Module structure and parameter ownership stay clear, making it easier to combine with tensor parallelism and low-precision training;
- It reduces the memory overhead and layout constraints from packing and unpacking;
- Parameters more easily retain their original layout before and after sharding, which helps with shard-level checkpointing and parameter-level precision management.
For ultra-large-scale, multimodal, mixed-precision models, this composability is key to smooth enablement.
3.4 Extra challenges of enabling multimodal models
Text models already have a mature paradigm for full sharding; multimodal models add several layers of complexity:
- Heterogeneous subnetworks: The visual encoder, cross-modal projection layers, and language backbone differ markedly in parameter count, compute-to-memory-access ratio, and numerical sensitivity. Wrapping granularity, precision strategy, and recomputation scope all need to be tuned separately.
- Variable-length sequences: Image and video resolution and duration vary, so the number of resulting visual tokens differs greatly. If training samples further mix interleaved image-text documents, the distribution of sequence lengths within a batch becomes very dispersed, causing large amounts of padding waste or memory spikes. Common countermeasures are sample packing and document-level masking to prevent different samples from attending across boundaries.
- Modality ratios and load balancing: The sampling ratio of each modality’s data affects convergence speed and per-step time. With a mixture-of-experts (MoE) architecture, expert load distribution and routing stability also need attention.
Stability in multimodal training is often the joint result of “data flow—model structure—parallelism strategy,” and single-point optimization rarely works.
4. Connecting the Pipeline: From Model Loading to Gradient Synchronization
The vendor noted that this adaptation built a “native” full-sharding multimodal training path, connecting model loading, shard scheduling, and gradient synchronization into a complete pipeline. “Native” generally means the paradigm runs on the general mechanisms of the framework and the accelerator’s own software stack, rather than relying on temporary patches customized for a single model. This is critical for reproducibility and generalizability. The complete pipeline can be broken into five stages.
4.1 Model loading
A trillion-parameter model cannot be fully instantiated on a single card, so loading must accomplish three things:
- Use sharded loading or a “meta device plus layer-by-layer materialization” approach to distribute weights across cards according to the target parallel topology;
- Preserve the original weight layout as much as memory allows to reduce conversion overhead;
- Register custom structures (such as multimodal projection layers and gating networks) into a unified module registration system so they are also managed by sharding and the optimizer.
4.2 Shard scheduling
Shard scheduling determines “what each card is responsible for and when it gathers what,” and focuses on three points:
- DeviceMesh: Organize physical devices into several communication dimensions and define members for the full-sharding group, tensor-parallel group, and so on.
- Wrapping granularity: Fine-grained (per-layer) wrapping lets communication start earlier and overlap better, at the cost of higher scheduling overhead.
- Topology affinity: Try to place communication-intensive shard groups within the high-speed interconnect domain of a single node.
4.3 Forward and backward computation
Multimodal forward passes usually proceed in the order “visual encoding → cross-modal alignment → language backbone.” Backpropagation runs in reverse order along the compute graph, with each step computing gradients for the corresponding operators and gathering parameters when needed. Any missing operator or incorrect gradient implementation surfaces here. Common consequences include numerical overflow, all-zero gradients, or a loss that fails to decrease.
4.4 Gradient synchronization
- Each card first computes a local norm of its own gradients, then reduces (sums) and takes the square root across all training processes to obtain the global gradient norm, used for clipping or monitoring.
- Before the reduction, each card’s loss and gradients are checked for NaN/Inf in a unified way. Any shard anomaly aborts the current update, preventing “sick parameters” from propagating further.
- Communication overlaps with backward computation to hide synchronization overhead.
4.5 Optimizer update and checkpointing
Each card reads its local parameter shard, the corresponding FP32 master weights, and momentum, and performs the AdamW update. Details here include:
- Parameters must be re-sharded after the update for the next forward gather;
- Learning rate scheduling and weight decay must stay consistent with the reference implementation;
- Checkpoints are saved per shard, and restoration must preserve tensor shard layout and parallel topology.
The full-sharding training main loop can be summarized in the following pseudocode (illustrative; actual APIs depend on the framework in use):
for step, batch in enumerate(train_loader, start=1):# 1. Forward: gather each layer's parameters on demand, release after useloss = model(**batch)# 2. Backward: compute gradients and reduce-scatter to the matching shardsloss.backward()# 3. Numerical health check: abort this update globally if any process hits NaN/Infif not is_finite(loss):handle_non_finite(step, loss)continue# 4. Global gradient clipping (internally reduces sum of squares across processes)grad_norm = clip_grad_norm_(model.parameters(), max_norm=1.0)# 5. Local parameter-shard updateoptimizer.step()optimizer.zero_grad(set_to_none=True)# 6. Periodically save the sharded checkpointif step % ckpt_interval == 0:save_checkpoint(model, optimizer, step)
5. Dual-Node, 16 Cards: Why Cross-Node Training Is a Watershed
Single-node multi-card training mainly tests inter-card interconnect and the basic correctness of the software stack. Cross-node training simultaneously amplifies network communication, topology awareness, and failure probability, which is why it is often seen as a watershed for distributed training.
1. Network layer
Nodes typically rely on an RDMA network, with the collective communication library handling topology discovery and path selection. Cross-node bandwidth is roughly an order of magnitude lower than intra-node interconnect, and latency is more than an order of magnitude higher, so communication more easily becomes a bottleneck. Network jitter, congestion, or link problems that stay hidden at small scale are multiplied when crossing nodes.
2. Topology affinity
A sound approach places intra-shard-group, high-frequency communication inside a single node. For example, constrain the tensor-parallel group to the 8 cards of one machine and scale the data-parallel dimension across nodes. The exact partitioning should be weighed against model structure and cluster topology.
3. Communication optimization
Common techniques include:
- Overlapping communication with computation;
- Prefetching the next layer’s parameters;
- Tuning communication bucket size to balance latency and bandwidth utilization.
4. Failure probability
The more nodes, the higher the probability of single-machine failure and network jitter. Long-running stable training without robust fault tolerance will eventually be interrupted by random failures.
6. The Key to Stable Operation: Why 400 Steps Matter
“Loss and gradient norms finite throughout, no numerical overflow, no abnormal interruption”—behind these 24 characters lie several layers of engineering meaning.
6.1 Numerical health: loss and gradient norms
Training can be observed from three perspectives:
| Perspective | What it cares about | Main metrics |
|---|---|---|
| Local (single card) | Whether this card’s shard computation is correct | Per-card loss, shard gradient norm, memory and temperature |
| Global (cluster) | Whether the whole is synchronized and consistent, and can sustain | Global loss, global gradient norm, throughput, dropped-card and restart counts |
| Longitudinal (time) | Whether convergence is stable | Loss curve, learning rate curve, frequency of spikes |
Loss reflects how well the model fits, and gradient norm reflects whether the magnitude of parameter updates is under control. Both staying finite at least shows that the forward, backward, reduce, and update pipeline is numerically closed.
6.2 Mixed precision and numerical overflow
- FP16: Has fewer exponent bits, with a maximum representable value of about 65504. Once activations or gradients exceed this limit they overflow, so protective measures such as loss scaling are needed.
- BF16: Has the same number of exponent bits as FP32 and a much larger dynamic range, so it almost never needs loss scaling and has become the mainstream choice for large-model training.
But a large dynamic range does not mean absolute safety:
- At sensitive spots such as softmax and normalization layers, if accumulation precision is insufficient, small values get “swallowed” when added to large ones;
- Conversely, if accumulated error grows too large, the output drifts.
The internal accumulation precision of operators and the framework-side precision strategy therefore determine whether long-running jobs will “slowly drift off course.”
6.3 Sources of gradient norm anomalies
A sudden spike in gradient norm or the appearance of NaN/Inf commonly comes from:
- Abnormal data: Overly long samples, special symbols, and abnormal token distributions caused by garbled text mixed into web content.
- Learning rate too high: The update magnitude exceeds what the loss surface can tolerate, causing divergence.
- Framework-side anomalies: Mask errors, division by zero, exponential overflow; incorrect optimizer state updates; inconsistency between master weights and low-precision weights during checkpoint restoration.
- Model structure factors: Gradient accumulation from deep stacking, MoE routing collapse, and differences in LayerNorm implementations.
A single card can expose some of these problems, but global consistency issues can only be found by cross-card comparison.
6.4 Distributed consistency checks
You can think of each training process as an “accountant”:
- For the same batch of data after splitting, the sum of each process’s local loss should match the global loss;
- The global gradient norm should be reduced over the union of all shards, not just local shards;
- Any single card’s anomaly should be globally detected and cause an update abort within the same round.
This “globally consistent, locally traceable” verification approach is the foundation of observability in large-scale training.
6.5 Beyond 400 steps: Long-run stability is harder than a short run
400 steps are enough to show:
- The pipeline is closed and numerically stable;
- Cross-node communication has not introduced systemic errors.
But they still cannot cover the typical problems of pretraining:
- Memory fragmentation accumulates with steps;
- The data loader develops handle leaks over long runs;
- Node temperature drift triggers throttling;
- Occasional hardware failures occur.
So after small-scale validation, further work is still needed: extra-long stability tests measured in days, regular fault-injection drills, and alignment of the convergence curve against a reference implementation at real data scale.
7. How to Read Performance: Don’t Just Look at “It Runs”
Getting a job to run is only the passing line; a training platform must also answer “how fast is it, and does it scale.”
1. Scaling efficiency
Scaling efficiency measures whether throughput improves linearly as cards are added:
Scaling efficiency (N cards) = (Total throughput on N cards / Throughput on 1 card) / N
Single-card throughput can be approximated as the inverse of per-step time (measured by step duration). In cross-node scenarios, both strong and weak scaling efficiency drop noticeably, with the extent depending on communication ratio and topology design.
2. Compute utilization (MFU)
MFU is the ratio of the model’s effective floating-point operations to the hardware’s peak compute. In multimodal training, data preprocessing, variable-length sequence padding, and the memory-access-heavy visual encoder all lower MFU. You therefore cannot simply apply a text-model MFU standard to multimodal training.
3. Tuning checklist
- Communication: bucket size, overlap strategy, prefetch depth;
- Compute: operator fusion, recomputation scope (trading compute for memory);
- Data: preprocessing pipeline, sample packing, caching strategy;
- Parallelism: matching parallel dimensions to node topology.
8. From “Can Train” to “Out-of-the-Box Training”
The vendor states a goal of moving frontier large models on full-function domestic GPUs from “can train” to “out-of-the-box training.” An engineering system should span at least five layers:
- Operator adaptation: Build an operator coverage list, automatically fall back to a generic implementation for missing operators, and run precision-alignment tests for key operators.
- Environment consistency: Use container images to unify driver, runtime, communication library, framework, and dependency versions, achieving “build once, run anywhere.”
- Automated testing: Incorporate unit tests, precision regression, multi-card/multi-machine integration tests, long-run stress tests, and performance baselines to catch problems before release.
- Observability: Collect logs, metrics, and trace data for training jobs in a unified way, and combine them with monitoring and alerting to detect and localize anomalies early.
- Fault tolerance and self-healing: Heartbeat detection, automatic isolation of failed nodes, and automatic resume from the latest checkpoint to reduce manual intervention.
Domestic cloud providers such as Baidu AI Cloud are also moving from resource provisioning toward “full-stack engineering.” For example, general cloud capabilities such as heterogeneous compute, high-performance storage, container scheduling, image registries, and monitoring and alerting can be combined to help users complete environment setup, job scheduling, runtime monitoring, and failure recovery across different compute environments. For developers, this means less environment-adaptation time, shorter failure-recovery times, and more predictable training costs.
9. Practice: A Reference Workflow for Domestic GPU Training Adaptation
Stage 1: Single-card operator and precision alignment
- Map the model’s compute graph, compile an operator coverage list, and fill in or fall back on missing operators;
- Fix the random seed, run a few steps of small-sample training on a single card, and compare loss against the reference hardware;
- Under the same data and hyperparameters, the loss for the first several steps should be highly close; if the gap widens, prioritize checking sensitive operators such as normalization and softmax.
Stage 2: Single-node multi-card scaling
- Progress from DDP to full sharding, verifying the correctness of parameter gathering, gradient reduction, and optimizer updates;
- The gradient norm should be in the same order of magnitude as the single-card result.
Stage 3: Multi-node long-run stability
- Extend continuous runtime in steps of hundreds, thousands, and tens of thousands of steps;
- Fault injection: kill processes, break links, simulate node outages;
- Monitored metrics: loss curve, gradient norm, throughput fluctuations, memory and temperature.
Stage 4: Performance tuning and productization
- Establish MFU and scaling-efficiency baselines and tune item by item;
- Align convergence with the reference implementation;
- Solidify images and automated tests into an “out-of-the-box training” template.
10. Conclusion
A Chinese GPU vendor completed 400 consecutive stable updates on 16 cards across two nodes, marking another step forward for domestic compute in “stable full-pipeline training”:
- From single-card operators to cross-node coordination;
- From short-run validation to long-run exploration.
But to truly achieve “domestic chips training a model,” continued investment is still needed in:
- Longer-term stability;
- Parallelism validation at larger scale;
- Convergence behavior consistent with the reference implementation;
- An out-of-the-box engineering experience.
For developers and enterprises evaluating whether a domestic compute platform can “train at scale and train stably,” five dimensions are worth focusing on: operator coverage and numerical consistency, full-sharding and mixed-precision support, cross-node communication and topology optimization, long-run and fault-tolerance capability, and automated tooling. These are what underpin the sustained training of trillion-parameter models.
