Practical Path to Adapting a Domestic GPU for Training a Near-Trillion-Parameter Large Model
This article examines how a domestic full-function GPU vendor adapted its flagship training-and-inference accelerator and self-developed software stack to a large open-source model with nearly 3 trillion parameters, completing 400 consecutive optimizer updates across 16 cards in two nodes with finite loss and gradient norms throughout. It clarifies that training adaptation is not the same as native pretraining, explains what a native FSDP2 training path enables, outlines a reusable validation method, provides a troubleshooting checklist for common failures, and describes the engineering system needed to move from a one-off run to a repeatable, out-of-the-box training workflow.
1. Background: A Training Adaptation, Not a Pretraining Reproduction
A domestic full-function GPU vendor recently announced that, using its flagship training-and-inference accelerator card and its self-developed software stack, it had quickly completed the training adaptation of a flagship open-source large model with nearly 3 trillion parameters. Under a two-node, 16-card configuration, the setup completed 400 consecutive optimizer updates, with loss and gradient norms remaining finite throughout and no numerical overflow or abnormal interruption.
One easily confused distinction must be settled first: training adaptation is not the same as pretraining the model on that chip.
The industry’s common “Day 0 adaptation” usually means completing operator integration and deployment verification on the inference side on the day a new open-source model is released. The training adaptation discussed here requires a more complete pipeline: backward propagation, optimizer state management, cross-node communication, and more. The two are not on the same level of difficulty. A technical report from a leading model previously validated inference operator implementations for two different accelerator architectures side by side, but did not publicly state where the original pretraining compute for the base model came from. This illustrates that “adaptation/integration succeeded” and “native pretraining” are two separate things.
To judge the real value of a training adaptation, look at three indicators: whether the full training pipeline is working end to end, whether it can sustain stable updates over many consecutive steps, and whether it comes with a reusable engineering system.
2. Technical Core: What the Native FSDP2 Training Path Delivers
The key to this adaptation was building a native FSDP2 (Fully Sharded Data Parallel, second generation) multimodal training path. To understand its value, start with the memory ledger of large model training.
Take mixed-precision training as an example. Beyond the weights themselves, each parameter also requires gradients and the optimizer’s first- and second-order momentum, so memory usage is typically several times the parameter count. Pure data parallelism requires every card to hold a full model replica, which quickly hits the memory ceiling. Tensor parallelism and pipeline parallelism can split the model, but they add communication and scheduling complexity. FSDP shards parameters, gradients, and optimizer states across cards, all-gathers parameters on demand during forward and backward computation, releases them immediately after use, and aggregates gradients with reduce-scatter. FSDP2 further simplifies sharding and state-management semantics, making it easier to combine with complex structures such as multimodal and variable-length inputs.
A simplified training loop looks like this:
for step, batch in enumerate(loader):with shard_context(model): # On-demand aggregation of sharded parametersloss = model(batch).loss # Forward: all-gather parametersloss.backward() # Backward: reduce-scatter gradientsgrad_norm = clip_grad_norm_(model, 1.0)if not torch.isfinite(grad_norm): # Numerical sentinelskip_step(); continueoptimizer.step() # Sharded optimizer state updateoptimizer.zero_grad(set_to_none=True)
The full pipeline breaks down into four stages: model loading (weight sharding and metadata initialization) → shard scheduling (per-rank parameter shard mapping and communication group setup) → forward and backward computation (parameter aggregation, gradient aggregation, and release timing) → gradient synchronization and optimizer update (cross-node gradient reduction and sharded state updates). A misalignment at any stage shows up as “it runs, but it does not train.”
3. Validation Method: What 400 Consecutive Stable Steps Mean
A single successful step only proves the pipeline is connected; stability over many consecutive steps is what shows the numerics and communication are truly reliable. This experiment used cross-node joint training on 16 cards across two nodes, with 16 training processes completing 400 consecutive optimizer updates and finite loss and gradient norms throughout.
This validation method is worth reusing and should cover at least four types of observation:
- Numerical finiteness: check every step whether loss and gradient norm are finite, and locate the cause immediately on inf/NaN rather than continuing;
- Trend plausibility: loss should generally decrease or stay flat, and gradient norm should not keep monotonically exploding;
- Communication consistency: gradient norms across ranks should be highly consistent, and a large deviation indicates a reduction problem;
- Long-run stability: only hundreds of steps without interruption can expose chronic issues such as memory fragmentation and handle leaks.
4. Common Failures and a Troubleshooting Checklist
| Symptom | Frequent causes | Where to look |
|---|---|---|
| NaN on the first step | Improper mixed-precision scaling, abnormal initialization | Adjust loss scaling, check weight loading |
| Gradual loss drift | Learning rate too high, missing gradient clipping | Add warmup, enable clipping |
| Loss diverging across cards | Duplicated or missing data shards, inconsistent random seeds | Verify sampling and seeding strategy |
| Mid-run interruption | Memory fragmentation, communication timeout | Enable defragmentation, increase the timeout threshold |
5. Engineering System: From “It Trains” to “Ready to Train Out of the Box”
What is genuinely scarce is not a single successful run but a reusable system: operator adaptation (backward implementations covering custom structures), multi-card coordination (automatic matching of communication topology and parallel strategy), and an automated toolchain (configuration validation, checkpoint resume, self-healing from exceptions). For cloud deployment, this usually also needs a container platform to host training images, object storage for checkpoints and datasets, monitoring and alerting to track loss and hardware metrics, and a logging service to aggregate multi-process output.
Existing practice shows that domestic compute has already supported full-stack native training ranging from training a 200-billion-class base model from scratch, to multimodal world models, to end-to-end training of embodied models, and is now moving toward trillion-parameter scale. The path is clear: first get the pipeline working end to end, then make stability solid, and finally make the toolchain the default option.
