Adapting Large-Scale Multimodal Model Training on Domestic Compute Platforms: A Practical Analysis

    This article examines the engineering challenges and practices behind adapting large-scale multimodal model training to domestic compute platforms (NPU/GPU). It covers operator coverage and numerical precision alignment, deep integration with FSDP2-based distributed training frameworks, and long-duration stability validation. Using a real-world case of hundreds of stable training steps on a dual-node, 16-card setup, it breaks down the full training pipeline—from sharded model loading to gradient synchronization—and outlines the engineering system (automated adaptation, observability, fault tolerance) needed to move from "inference-ready" to "training-ready" infrastructure.

    Adapting Large-Scale Multimodal Model Training on Domestic Compute Platforms: A Practical Analysis

    1. Background: The Growing Need for a Diversified Compute Ecosystem

    In recent years, as large language models and multimodal models continue to scale, diversifying the supply of training compute has become an industry consensus. Relying on a single hardware route carries risks in terms of cost, supply stability, and ecosystem independence. As a result, more and more model development teams are adopting a “dual-track validation” strategy: at the technical design stage, they validate both the mainstream GPU route and domestic NPU alternatives in parallel, ensuring that core operators and parallelism strategies can be migrated and reproduced across hardware platforms.

    Judging from publicly available information, some frontier model teams have validated domestic NPUs alongside general-purpose GPUs in their technical reports, including inference-level validation around fine-grained expert parallelism (EP). These practices send a clear signal: the ability to adapt to heterogeneous compute is becoming a core competency of large-model infrastructure. Even more demanding than inference adaptation is full-pipeline training adaptation, which requires the compute platform to run stably for weeks or even months—a serious test of hardware reliability, software stack maturity, and engineering discipline.

    Recently, a domestic GPU vendor announced that it had completed adaptation validation for training a frontier multimodal large model, achieving hundreds of consecutive stable training steps in a dual-node, 16-card environment. While this is only a milestone within a much longer training run, the engineering path behind it is worth examining in detail.

    2. Core Challenges of Training Adaptation

    Running large-model training on a hardware platform that is not natively supported typically requires solving several categories of problems:

    2.1 Operator Coverage and Precision Alignment

    Large-model training depends on a large number of fused and custom operators, such as FlashAttention-style efficient attention implementations, MoE routing operators, and low-precision matrix multiplications. Adaptation work must first ensure that these operators have efficient implementations on the target hardware, and then verify through numerical precision testing that deviations from reference implementations stay within acceptable bounds.

    2.2 Deep Integration with Distributed Training Frameworks

    Mainstream approaches today generally follow the Fully Sharded Data Parallel (FSDP) paradigm, sharding model parameters, gradients, and optimizer states across multiple devices to break through single-device memory limits. Training adaptation is not just about “getting it to run”—the sharding logic must be deeply integrated with the underlying communication libraries and memory management mechanisms, so that frequent parameter all-gathering does not cause communication overhead to spiral out of control.

    2.3 Long-Duration Stability Validation

    Once a training job starts, it often runs for weeks. Any single point of failure—memory leaks, communication timeouts, numerical overflow—can cause enormous losses. Therefore, short-period continuous stability validation (such as hundreds of loss-free steps) is a necessary gate before entering formal training.

    3. Key Elements of Building a Full-Pipeline Training Path

    Taking this adaptation effort as an example, the team built a native FSDP2 multimodal training path, connecting the complete chain from model loading and sharding scheduling to gradient synchronization. This chain can be broken down into three critical stages:

    3.1 Model Loading and Initialization

    The system must efficiently load ultra-large models from standard weight formats and complete device mapping and metadata preparation during initialization. The key is supporting “sharded loading”—splitting weights according to the target device’s sharding strategy at load time, avoiding intermediate states that would occupy double the memory. A schematic flow looks like this:

    1. # Pseudocode: core idea of sharded initialization
    2. with device_mesh("gpu"): # Device mesh abstraction, hiding hardware differences
    3. model = LargeMultimodalModel.from_pretrained(
    4. checkpoint_path,
    5. strategy="fsdp2", # Sharding strategy
    6. shard_on_load=True, # Shard at load time
    7. )

    3.2 Sharding Scheduling and Compute Execution

    The essence of FSDP2 is gathering parameters on demand before the forward pass and releasing them immediately after the backward pass, so that only the parameters of the current layer briefly occupy full memory. This requires fine-grained runtime control over operator scheduling and pipeline orchestration, while communication and computation must overlap as much as possible to hide collective communication latency.

    3.3 Gradient Synchronization and Optimizer Updates

    After backpropagation completes, gradients are synchronized via All-Reduce or Reduce-Scatter, followed by parameter updates. In multi-node scenarios, inter-node bandwidth is usually the bottleneck, so the maturity of optimizations such as gradient compression and bucketed communication directly determines training throughput.

    4. The Significance of Dual-Node, 16-Card Validation

    A dual-node, 16-card setup is the smallest complete form of cross-node training: it includes both high-speed intra-node interconnects and inter-node network communication, making it capable of fully exposing problems in the distributed software stack. Running hundreds of consecutive stable steps under this configuration means:

    • Functional correctness at both the operator layer and framework layer has been largely validated;
    • The communication pipeline shows no deadlocks or timeout anomalies in cross-node scenarios;
    • Memory management remains stable under long-sequence scenarios with multimodal data (mixed image-text inputs).

    This is a critical step from “inference-ready” to “training-ready.”

    5. The Engineering System: Capabilities Beyond a Single Validation

    A single successful adaptation is only the starting point. The real moat is a mature engineering system, which includes:

    1. Automated adaptation pipelines: automated testing for operator validation, precision alignment, and performance regression, shortening the onboarding cycle for new models;
    2. Observability: leveraging general-purpose infrastructure such as monitoring, alerting, and log services to track key metrics in real time—training loss curves, gradient norms, communication latency, and more;
    3. Fault tolerance and checkpoint-based recovery: saving checkpoints regularly and combining them with the elastic scheduling capabilities of container platforms to enable rapid recovery after failures;
    4. A closed loop from inference to training: first validating model correctness through rapid inference deployment, then advancing to full-pipeline stable training, forming a progressive adaptation cadence.

    6. Conclusion

    Completing training adaptation of a frontier large model on a domestic compute platform marks the transition of the heterogeneous compute ecosystem from “usable” to “genuinely practical.” For teams planning to build self-controlled training infrastructure, three areas deserve particular attention: the completeness of the operator ecosystem, the depth of integration with distributed frameworks, and the engineering safeguards for long-duration training. As more training-side validations land, the path toward diversified compute supporting large-model development will become increasingly clear.