Domestic AI Training and Inference Chip Completes Multimodal LLM Training Adaptation

    This article examines a recent engineering milestone in which a domestic flagship AI training-and-inference accelerator and its software stack completed training adaptation for a multimodal large language model, running 400 consecutive steps on 16 cards across two nodes with a native FSDP2 training path. It explains what a training adaptation actually validates, the hardware and software stack challenges involved, key design considerations for native FSDP2 multimodal training, and a practical checklist for stable multi-node training. The article closes with guidance on reproducing similar workloads in the cloud and recommendations for reducing future model migration costs.

    1. What a Training Adaptation Actually Validates

    A recent technical development is worth attention in the industry: a domestic flagship AI training-and-inference compute card, together with its accompanying software stack, completed training adaptation for a multimodal large language model. It ran 400 consecutive training steps at a scale of 16 cards across two nodes and established a native FSDP2 multimodal training path.

    For developers, the value of this kind of news lies not in “getting it to run” itself, but in the fact that it validates a complete engineering chain: whether new accelerator hardware can carry the training workload of a real business model. Abstracted from the specifics, a qualified training adaptation must answer at least four questions:

    1. Operator coverage: Whether every operator in the model’s compute graph has a high-performance implementation, and whether missing ones can fall back to generic implementations without crashing;
    2. Parallel strategy feasibility: Whether data parallelism, tensor parallelism, pipeline parallelism, and parameter sharding can be combined efficiently on the hardware’s communication topology;
    3. Numerical consistency: Whether the loss curve under mixed precision is on the same order of magnitude as the reference implementation, and whether overflow or silent precision collapse occurs;
    4. Long-run stability: Running for hundreds of steps or more without interruption is the combined result of memory management, communication stability, and fault-tolerance mechanisms.

    400 steps is not a “performance record” but an engineering signal: it means memory allocation did not develop progressive fragmentation, communication did not accumulate timeouts, and optimizer states did not drift abnormally. The industry generally regards continuous training beyond a hundred steps as a preliminary stability threshold.

    2. Hardware and Software Stack Coordination: The Real Difficulty of Adaptation

    What makes multimodal models special is the heterogeneity of their compute graph: the vision encoder is dominated by convolution and windowed attention, while the language backbone is dominated by dense attention. The two differ significantly in operator density, peak memory usage, and communication volume. The difficulty of adaptation usually concentrates in three areas.

    Operators and graph compilation. The software stack needs to provide an operator library covering attention variants, normalization, activation functions, and multimodal fusion modules, and to complete operator fusion and memory reuse through a graph compilation layer. Missing high-frequency operators directly cause a performance cliff.

    Communication library and topology awareness. 16 cards across two nodes means a two-level topology of high-bandwidth intra-node interconnect and inter-node networking. If collective communication implementations are not topology-aware, AllReduce/ReduceScatter will repeatedly detour across nodes, and bandwidth utilization drops significantly.

    Native framework support. The key word “native” means not relying on external patches, but supporting sharding, recomputation, and mixed precision in the framework’s main path, thereby reducing the maintenance cost caused by version upgrades.

    Illustrative parallel and sharding configuration (pseudocode, expressing semantics only):

    1. # Illustrative only: parameter sharding + activation recomputation + mixed precision
    2. model = FSDP2(
    3. model,
    4. shard_mode="full_shard", # fully shard parameters/gradients/optimizer states
    5. activation_checkpoint=True, # trade compute for memory
    6. mixed_precision="bf16", # bf16 backbone, keep sensitive operators in fp32
    7. )
    8. train(model, dataloader, steps=400, log_every=10)

    3. Key Design of the Native FSDP2 Multimodal Training Path

    The core idea of FSDP2-style solutions is a shard-allgather model: parameters are temporarily all-gathered on demand during forward and backward passes and released immediately after use, reducing the memory footprint of parameters, gradients, and optimizer states to what a single card can hold. In multimodal scenarios, additional attention is needed on:

    • Differentiated sharding granularity for heterogeneous modules: The vision tower and the language backbone differ in parameter scale; a uniform granularity causes frequent all-gathers and increases communication count;
    • Balancing recomputation and peak memory: Recomputation lowers the peak but adds roughly 30% forward overhead, and should prioritize memory-sensitive segments;
    • Data-side load balancing: Image-text sample lengths follow a long-tail distribution, so bucketing should be by token count rather than sample count to avoid individual cards becoming stragglers;
    • Numerical stability: Loss scaling and normalization statistics must be correctly reduced across shards, otherwise hard-to-locate precision issues appear.

    4. Engineering Checklist for 400-Step Training on 16 Cards Across Two Nodes

    • Observability first: Treat throughput (tokens/s), peak memory, communication time, and per-step P99 latency as first-class metrics, and establish a baseline with logging services and monitoring alerts;
    • Checkpoint and resume: Save to disk at fixed step intervals, storing model shards, optimizer states, and the data loader position to avoid duplicated or skipped data after restart;
    • Fault self-healing: When a single card fails, isolate it first and then recover; training job orchestration can rely on a container platform for automatic rescheduling;
    • Data pipeline: For large-scale image-text data, use object storage as the foundation, combined with preprocessing caches and sharded reads to reduce I/O jitter;
    • Configuration as code: Put parallelism degree, batch size, and recomputation strategy under version control to ensure experiment reproducibility.

    5. Reproducing Similar Training in the Cloud

    Enterprises that want to validate a similar scale in the cloud can adopt a combination of general product categories: a container platform to host distributed training orchestration, object storage for datasets and checkpoints, logging services and monitoring alerts for observability, and a message queue to decouple data preprocessing tasks. Baidu AI Cloud provides exactly these general capability categories in such scenarios, enabling adaptation validation and business training to proceed under the same engineering standards.

    6. Recommendations for Implementation

    1. First run a small-scale “operator checkup”, getting forward and backward passes working on a single card before scaling to multiple cards;
    2. Use stability tests measured in hundreds of steps as a precondition for scaling up;
    3. Establish a loss-curve comparison against a reference implementation, and when any deviation appears, investigate numerics first rather than performance;
    4. Distill adaptation results into configuration templates and checklists to reduce the migration cost of subsequent models.

    Overall, the lesson from this adaptation is that the maturity of the domestic compute ecosystem depends on the coordinated refinement of hardware, the software stack, and the training framework, and what engineering teams truly need to master is a hardware-agnostic, transferable, and reproducible methodology for distributed training.