Domestic GPU Completes Trillion-Parameter Multimodal Training Adaptation

    This article examines a recent adaptation of an open-weight native multimodal model with roughly 2.8 trillion parameters on domestic accelerator hardware. It explains why trillion-scale multimodal training is difficult, how FSDP2 and expert parallelism were combined, how the visual branch was verified to receive real gradients, and what the loss curves and memory usage indicate. The focus is a training-pipeline correctness and stability check rather than a full-scale pretraining run.

    1. Background: A Pipeline Validation, Not a Scale Race

    A domestic accelerator vendor recently announced that it had completed training adaptation for an open-weight native multimodal large model. The model has roughly 2.8 trillion parameters, supports a context length of up to 1 million tokens, and uses a hybrid attention mechanism together with a Mixture-of-Experts (MoE) architecture. It also supports visual understanding and tool calling. The adaptation ran on two nodes with 16 flagship training-and-inference cards in total, completing 400 consecutive optimizer updates through a native Fully Sharded Data Parallel (FSDP2) path. No numerical overflow or abnormal interruption occurred, and the visual branch produced real gradient updates.

    The scope needs to be stated clearly first: this was not full-scale pretraining, but a validation of functional correctness and stability across the training pipeline. The test used a randomly initialized, trimmed configuration: a 13-layer language backbone, 16 routed experts (Top-8 routing), the full 27-layer vision tower, and the cross-modal projection module. It ran on an image-text question answering dataset with a global batch size of 16 and a sequence length of 1024. Understanding this is necessary to interpret the loss curves and memory figures correctly.

    2. Why Trillion-Scale Multimodal Models Are Hard to Train: Three Pressures at Once

    1. Memory pressure. Parameters, gradients, and optimizer states (the first- and second-order moments of Adam-style optimizers) are typically several times the parameter count. A trillion-scale model cannot fit on a single card and must be sharded.

    2. Communication pressure. Sharded parallelism introduces frequent parameter prefetching and gradient reduction; MoE expert routing adds all-to-all style token redistribution; multimodal training further adds extra operators for visual encoding and cross-modal projection.

    3. Numerical stability pressure. Dynamic sparse retrieval, uneven expert routing load, and multi-task gradient coupling in joint image-text training all amplify the risk of overflow and divergence.

    3. The Adaptation Main Line: Merging Four Modules into One Computation Graph

    The adaptation work centered on four areas: attention computation, dynamic routing, visual encoding, and cross-modal projection. The key was not making each operator “run” individually, but connecting them into a unified forward, backward, and parameter update flow so that the gradient path forms a closed loop. An abstract view:

    1. # Abstract flow of a unified training step (illustrative)
    2. for batch in loader: # image tensors + text tokens + labels
    3. with autocast(dtype=bf16):
    4. img_feat = vision_tower(batch.image) # visual encoding
    5. fused = projector(img_feat, batch.text) # cross-modal projection
    6. logits = lm_head(fused) # language backbone + routed experts
    7. loss = chunk_loss(logits, batch.label) # chunked loss computation
    8. loss.backward() # backward: the vision tower also receives gradients
    9. optimizer.step(); optimizer.zero_grad()

    4. Parallelism Strategy: FSDP2 Working with Expert Parallelism

    The approach kept the native model definition flow and used FSDP2 to distribute parameters, gradients, and optimizer states across different GPUs, lowering peak per-card memory. Cross-card and cross-node communication was handled by the vendor’s in-house collective communication library. Two additional forms of coordination were required in engineering:

    • Overlapping parameter prefetching with gradient communication scheduling: hiding all-gather and reduce-scatter inside computation windows to reduce bubbles;
    • Layered sharding of FSDP2 and expert parallelism: sharding the dense parts along the data parallel dimension and distributing expert layers along the expert dimension, avoiding repeated movement of the same token.

    5. How to Verify the Visual Branch Is “Really Training”

    The most common false success in multimodal adaptation is a vision tower that only runs the forward pass with all-zero gradients. A reliable check is to inspect gradient norms and parameter increments module by module:

    1. for name, p in model.named_parameters():
    2. if p.grad is not None:
    3. print(name, p.grad.norm().item(), p.detach().abs().mean().item())
    4. # Expected: non-zero values for vision tower image embeddings, first/last layers, and cross-modal projection

    This check confirmed that all of the above modules produced non-zero gradients and parameter updates, showing that visual encoding actually participated in training.

    6. Reading the Results: Curves, Memory, and Stability

    The 16 training processes completed 400 consecutive updates. Training loss fell from a mean of 8.9365 over steps 21–70 to 2.1802 over the final 50 steps; validation loss dropped from 6.5297 at step 100 to 4.6873 at step 400; peak sampled memory was 44.80 GiB. The curve shape matches the expectation that a randomly initialized trimmed model quickly fits a small dataset. The value lies in proving that the pipeline had no overflow, no interruption, and no broken gradient flow.

    7. Four Key Optimizations and Engineering Takeaways

    The test enabled chunked loss computation (Chunk Loss), which computes large-vocabulary logits in chunks to shave memory peaks. Three other items—parameter prefetching with gradient communication scheduling, high-performance hybrid attention operators, and FSDP2 coordination with expert parallelism—have completed adaptation and can support larger configurations. Practical recommendations for teams:

    1. Run a small-scale pipeline smoke test first, then scale up;
    2. Use a gradient norm dashboard to locate modules with broken gradient flow;
    3. Fix random seeds and data order to ensure reproducibility;
    4. Combine platform-side container scheduling, logging services, and monitoring alerts to make training observability a standing capability—for example, running distributed training jobs on general containers and monitoring components on cloud platforms such as Baidu AI Cloud.