A Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation

    This article explains how a domestic AI training-and-inference accelerator and its software stack completed training adaptation for an open-weight, native multimodal model of roughly 2.8 trillion parameters. It covers why a 400-step link validation on 16 GPUs across two nodes is itself an engineering milestone, the four core difficulties of training sparse multimodal models, and the solution built on native training flow, FSDP2 sharding, and a unified communication library. Readers will find the measured setup and results, four key engineering optimizations, gradient-level auditing methods to confirm training is genuinely happening, and a reusable checklist for scaling similar workloads.

    1. Background: Why “Running 400 Steps” Is an Engineering Achievement

    A domestic AI training-and-inference accelerator and its companion software stack have announced completed training adaptation for an open-weight, native multimodal large model. The model has roughly 2.8 trillion parameters in total, supports a context length of up to 1 million tokens, and combines a hybrid attention mechanism with a Mixture-of-Experts (MoE) architecture, along with visual understanding and tool-calling capabilities. In a joint test across two nodes with 16 GPUs, the system completed 400 consecutive optimizer updates with no numerical overflow and no abnormal interruptions, and the vision branch produced real gradient updates.

    This was not a full-scale pretraining run. It was a link validation using a randomly initialized, trimmed configuration: a 13-layer language backbone, 16 routed experts, Top-8 routing, and the complete vision tower plus the cross-modal projection modules. That distinction matters for reading every metric that follows: what was proven is that the training path is correct and stable, not that the model meets any quality bar.

    For developers, the value of this kind of validation is that it moves risk earlier. Trillion-scale multimodal failures usually do not happen at step 100,000; they happen at step 1 — an unsupported operator, a communication timeout, a NaN loss, or a vision branch whose gradient is always zero. Surfacing these issues at small scale and short step counts is what saves tens of thousands of GPU-hours.

    2. Why Sparse Multimodal Models Are Harder to Train

    Training a native multimodal model is far more complex than stitching together a language model and a vision encoder. The difficulty concentrates in four areas:

    1. Dynamic sparse retrieval and expert routing: The token-to-expert mapping shifts during training, and load imbalance directly causes some devices to idle while others overflow.
    2. Joint image-text training: The image and language branches differ greatly in loss magnitude and gradient scale, so one side can converge while the other is drowned out.
    3. Memory pressure: Full copies of parameters, gradients, and optimizer states do not fit on a single GPU and must be sharded.
    4. Cross-GPU and cross-node communication: AllGather of parameters, ReduceScatter of gradients, and routing All-to-All stack on top of each other, making communication the primary bottleneck.

    3. Solution Overview: Native Training Flow + FSDP2 Sharding + a Unified Communication Library

    The adaptation principle is to change the execution backend without changing training semantics. The training side keeps the native automatic-parallelism flow common in the industry, while FSDP2 (the second generation of Fully Sharded Data Parallel) distributes model parameters, gradients, and optimizer states across different GPUs so each device holds only a shard. Collective communication across GPUs and nodes is handled by a unified GPU communication library.

    The key improvement of FSDP2 over the previous generation is replacing monolithic AllGather with “parameter sharding plus composed communication primitives,” combined with overlapped scheduling of memory and computation, which substantially lowers peak memory. A schematic configuration follows (pseudocode, expressing semantics only):

    1. for layer in model.layers:
    2. fully_shard(layer, mesh=mesh_2d) # Shard layer by layer on a 2D device mesh
    3. model = fully_shard(model)
    4. for batch in loader: # Global batch size 16, sequence length 1024
    5. with torch.no_grad():
    6. pass
    7. loss = model(**batch) # Forward pass triggers parameter prefetch
    8. loss.backward() # Backward pass triggers gradient ReduceScatter
    9. opt.step(); opt.zero_grad()

    In testing, all 16 training processes completed 400 consecutive updates, with a sampled peak device memory of 44.80 GiB, showing that this sharding strategy leaves reasonable headroom under single-GPU capacity limits.

    4. Four Key Engineering Optimizations

    • FSDP2 working with expert parallelism: The data-sharding dimension and the expert-parallel dimension form a 2D device mesh, preventing routing All-to-All and parameter communication from blocking each other.
    • Parameter prefetch and gradient communication scheduling: The next layer’s parameter AllGather is issued ahead of time in reverse layer order, hiding communication inside computation.
    • High-performance hybrid attention operator: A fused implementation for gated sparse attention reduces intermediate tensor materialization and memory round trips.
    • Chunked loss computation: Cross-entropy over the large vocabulary is computed in chunks to avoid materializing oversized logits all at once. This item was actually enabled in the 400-step test; the other three were adapted to support larger-scale configurations.

    5. Reading the Results: How to Tell Training Is Really Happening

    Judging whether multimodal training is genuinely occurring cannot rely on a falling loss alone; it requires gradient-level auditing:

    • Language backbone loss: averaged 8.9365 over steps 21–70, down to 2.1802 over the last 50 steps;
    • Validation loss: 6.5297 at step 100, down to 4.6873 at step 400;
    • Vision-side audit: the image embedding layer, the first and last layers of the vision tower, and the cross-modal projection modules all showed non-zero gradients and parameter updates.

    The third item is the most critical. If the projection layer’s gradient is always zero, the image-text alignment path is broken and the model is only doing pure text training — no matter how good the metrics look, they are an illusion. In practice, assertion-based monitoring is recommended:

    1. for name, p in model.named_parameters():
    2. if "vision" in name or "projector" in name:
    3. assert p.grad is not None and p.grad.abs().sum() > 0, name

    6. A Reusable Practice Checklist

    1. Start with a trimmed configuration (shallow backbone, few experts, complete vision tower) and run 50–100 steps before scaling up.
    2. Fix the random seed and data order so loss curves are reproducible and comparable.
    3. Monitor three things: peak memory, communication share, and gradient norm; when a spike appears, localize it to the layer immediately.
    4. Prioritize numerical stability: enable loss scaling and overflow detection under mixed precision, and roll back to a checkpoint on Inf/NaN.
    5. Send training data, logs, and metrics to object storage and to general-purpose logging/monitoring and alerting services respectively, so long-running jobs can be reviewed and stopped in time.

    Overall, the significance of this adaptation is not a benchmark score but a transferable methodology: sharded parallelism for memory, a unified communication library for cross-node communication, chunked loss for large vocabularies, and gradient auditing against “fake training.” With diverse compute supply and rapidly evolving model architectures, this workflow is worth more than any single hardware specification.