Adapting Alternative AI Chips for Ultra-Large Multimodal Model Training: A Dual-Node, 16-GPU 400-Step Practice Analysis

    As large models scale toward trillions of parameters, training infrastructure faces unprecedented pressure. This article examines a case study where an alternative (non-CUDA) AI chip ecosystem successfully adapted to a 2.8 trillion-parameter multimodal model. We analyze the technical challenges of MoE architectures, mixed attention mechanisms, and visual encoding, alongside the adaptation strategies, verification methodologies, and performance optimizations required to achieve 400 continuous steps of training across 16 GPUs without interruption.

    Background: Why Ultra-Large Model Training is a Benchmark for Emerging Compute

    As large model parameter scales move from hundreds of billions to trillions, training infrastructure is facing unprecedented pressure. Recently, an alternative AI chip vendor announced that its flagship training and inference card, along with its proprietary software stack, successfully completed training adaptation for an open-weight native multimodal large model (with approximately 2.8 trillion parameters and support for up to 1 million tokens of context). In a joint test on a dual-node, 16-GPU setup, the system completed 400 continuous training steps without numerical overflow or abnormal interruption, and the visual branch achieved actual gradient updates.

    The technical significance of this event deserves in-depth analysis. Rather than focusing on a specific product, this article uses this case to deconstruct the methodology of adapting ultra-large Mixture-of-Experts (MoE) multimodal models on heterogeneous computing platforms.

    1. Training Challenges of the Target Model

    The model utilizes several cutting-edge architectural designs currently used in the industry, each imposing stringent requirements on the training system:

    1. MoE Architecture and Dynamic Routing
    The model uses 16 routed experts (Top-8 routing). Dynamic sparse activation means that the routing of tokens to specific experts is uncertain at each training step, introducing two engineering challenges:

    • Load imbalance: Certain experts may be assigned too many tokens, making some devices a bottleneck.
    • Complex communication patterns: When experts are distributed across different cards, All-to-All communication is required for token distribution and retrieval.

    2. Mixed Attention Mechanism
    The model employs KDA and Gated DSA mixed attention, involving dynamic sparse retrieval. These attention variants cannot directly reuse standard FlashAttention implementations. They require custom operator development, including sparse index construction, block attention computation, and gated fusion.

    3. Multimodal Joint Training and Visual Encoding
    The model retains a complete 27-layer vision tower and a cross-modal projection module. The training system must ensure that the visual branch truly participates in gradient backpropagation, rather than merely acting as a frozen feature extractor.

    2. Overall Technical Adaptation Path

    This adaptation revolved around four core modules: attention computation, dynamic routing, visual encoding, and cross-modal projection. These modules were integrated into a unified forward, backward, and parameter update process. The architectural key points include:

    (1) Retaining the Native Training Framework Flow
    The training solution retains the native flow of the AutoModel class, meaning model definition, data loading, and the training loop underwent no major refactoring. This significantly reduced adaptation costs—the adaptation work focused on the underlying operators and communication layers rather than rewriting the training code.

    (2) FSDP2 Full-Shard Data Parallel
    Through FSDP2, model parameters, gradients, and optimizer states are distributed across different GPUs, significantly reducing per-card memory pressure. Compared to traditional DP, which replicates all parameters, FSDP shards at a finer granularity and supports parameter prefetching. This allows aggregation communication for a specific layer to be completed ahead of the forward computation, hiding communication overhead.

    (3) Proprietary Collective Communication Library for Cross-Card Communication
    Cross-card and cross-node communication is handled by the vendor’s proprietary communication library, which must implement NCCL-compatible collective communication semantics (AllReduce, AllGather, ReduceScatter, All-to-All). This is a critical foundational infrastructure for determining whether non-CUDA ecosystems can successfully execute distributed training.

    3. Test Design: Scientifically Verifying Training Correctness

    This verification utilized a trimmed configuration rather than full-scale pretraining, aiming to validate the functional correctness and stability of the training pipeline. The test configuration was as follows:

    Configuration Value
    Hardware Scale Two servers, 16 accelerator cards
    Language Backbone 13 layers
    Routed Experts 16 (Top-8 routing)
    Vision Tower Complete 27 layers + cross-modal projection
    Dataset Image-text VQA medical dataset
    Global Batch Size 16, Sequence length 1024

    Loss convergence curve is the most direct verification metric:

    • Training Loss: Average 8.9365 for steps 21-70 → Average 2.1802 for the last 50 steps;
    • Validation Set Loss: 6.5297 at step 100 → 4.6873 at step 400;
    • Sampled Device Peak Memory: 44.80GiB.

    This magnitude of decline indicates that the entire pipeline (forward, backward, optimizer update, data pipeline) is numerically correct and stable. If there were operator precision errors or gradient vanishing/exploding issues, the Loss would typically exhibit abnormal oscillation or stagnation.

    Visual branch participation verification is a professional checkpoint that is easily overlooked. The technical team confirmed that the visual encoding part was “actually participating in training, not just serving as data input” by checking whether the vision tower image embeddings, the first and last layers, and the cross-modal projection module generated non-zero gradients and parameter updates. This verification approach is highly valuable—in multimodal training, if the visual branch gradient is zero (due to detach errors or learning rate misconfiguration), the model silently degrades into pure language training without the user noticing.

    4. Key Optimizations for Performance and Scaling

    In addition to basic adaptation, this work completed four optimizations aimed at larger-scale training:

    1. FSDP2 and Expert Parallelism Coordination
    Combining parameter sharding in the data parallel dimension with expert parallelism in the MoE dimension requires coordinated sharding strategies: expert weights are partitioned by the expert parallel group, while non-expert weights are partitioned by the FSDP group, avoiding communication conflicts.

    2. Parameter Prefetching and Gradient Communication Scheduling
    Through the prefetching mechanism, parameter aggregation communication overlaps with forward computation. Simultaneously, gradient bucketing and ReduceScatter are scheduled to maximize the parallelism between computation and communication.

    3. High-Performance KDA Operator
    A native high-performance operator was developed for the dynamic sparse mechanism in mixed attention, avoiding the performance losses associated with using generic implementations.

    4. Chunk Loss Block Calculation
    For ultra-large vocabularies, cross-entropy Loss requires saving the complete intermediate logits, resulting in massive memory overhead. Block calculation divides the logits and Loss computation into multiple chunks processed sequentially, significantly reducing peak memory. This optimization was actively enabled during the 400-step test, while the other three optimizations have also completed adaptation.

    5. Industry Implications

    This practice demonstrates that the maturity of alternative AI chips in the large model training stack is rapidly improving. From an industry-wide perspective, for a non-CUDA ecosystem to support trillion-parameter model training, it must simultaneously possess:

    1. A complete and compatible operator ecosystem: Covering core operators such as attention variants, MoE routing, Norm, and optimizers.
    2. A high-throughput, low-latency collective communication library: To support multi-node, multi-card scaling.
    3. A compatibility layer with mainstream training frameworks: To reduce user migration costs.
    4. A systematic numerical correctness verification methodology: Including Loss curves, gradient checks, memory profiling, etc.

    It should be noted that this verification remains a functional correctness test under a trimmed configuration, and there is still a gap before achieving efficiency and stability verification for full-scale pretraining. However, the result of “400 continuous steps without interruption on a dual-node 16-GPU setup, stable Loss convergence, and active gradient updates in the visual branch” already provides a valuable engineering reference for running ultra-large multimodal model training on heterogeneous compute. For enterprises planning to build an independent compute foundation, focusing on operator completeness, communication performance, and verification methodologies is far more practically significant than simply comparing peak compute metrics.