Three Technical Breakthroughs in Multi-Chip Inference Adaptation for Ultra-Large MoE Models

    This article examines multi-chip inference adaptation for a high-efficiency MoE model with 284 billion total parameters and 13 billion activated parameters, alongside ongoing migration work for a 1.86-trillion-parameter flagship model. It explains three engineering breakthroughs: a unified cross-platform operator library, independent tensor parallelism for expert groups, and an offline precision conversion path from native FP4+FP8 weights to FP8/BF16. The article covers the challenges created by hybrid attention, mixed precision, and heterogeneous memory and interconnect capabilities, and shows how these techniques broaden deployable hardware coverage and reduce multi-chip adaptation cost.

    As large language models move toward trillion-parameter scale, the central challenge in inference deployment is no longer whether model capabilities are sufficient, but whether the model can actually run on available hardware. A research team recently released a new flagship model series: a flagship version with 1.86 trillion total parameters, and a high-efficiency version with 284 billion total parameters and only 13 billion activated parameters. With its mixture-of-experts (MoE) architecture, million-token context capability, and highly competitive inference cost, the high-efficiency version has become the primary target for multi-chip adaptation. This article uses the cross-chip inference adaptation practice for that efficient model as a blueprint, systematically reviewing three key technical breakthroughs and providing developers with a reusable methodology for inference adaptation on heterogeneous hardware.

    1. Adaptation Challenges Posed by Model Characteristics

    Before discussing technical details, it is necessary to understand the new requirements that this generation of MoE models places on the system software stack.

    First, architectural innovation. The model introduces a hybrid attention mechanism that combines compressed sparse attention with highly compressed attention, greatly improving compute and memory efficiency in long-context scenarios. It also adopts manifold-constrained hyper-connections to enhance the stability of cross-layer signal propagation, and uses a new optimizer to accelerate training convergence. These architectural innovations mean that operator libraries contain many new operators not yet covered by standard frameworks.

    Second, precision specificity. The model’s native weights use a mixed FP4 and FP8 precision format, while most AI chips currently shipping do not support FP4—only a small number of the latest high-end accelerators have native FP4 hardware capability. This creates a sharp contradiction: there is a generational gap between the precision format released with the model and the precision capabilities of mainstream hardware.

    Third, diverse resource constraints. Different chips vary greatly in memory capacity, interconnect bandwidth, and parallel capability. A single parallel strategy cannot cover the full spectrum from high-end large-memory cards to mid- and low-memory cards.

    An open system software stack community completed full adaptation and inference deployment of the efficient model on more than eight heterogeneous AI chips on the day of release, covering multiple architectures and mainstream GPUs, while advancing multi-chip migration of the flagship version. This work relies on three key technical breakthroughs.

    2. Breakthrough 1: Unified Full-Operator Replacement to Bridge Multi-Chip Differences

    Problem essence: Different chip vendors implement operator libraries differently, with inconsistent interfaces, supported data types, and performance characteristics. If model code were adapted separately for each chip, the workload would grow linearly or even superlinearly with the number of chips, and maintenance costs would be uncontrollable.

    Technical approach: Build a high-performance, cross-platform general operator library that implements all operators required by the model through a unified interface, so that “model code is written once, and the operator layer automatically dispatches to each chip backend.” Its core design principles include:

    1. Full operator coverage: Completely implement all operators involved in the model’s forward computation, including the new hybrid attention, MoE routing dispatch and aggregation, and various normalization and activation functions. Leave no gaps that fall back to vendor-private implementations, ensuring behavioral consistency.
    2. Layered abstraction: The upper layer provides operator semantic interfaces aligned with mainstream deep learning frameworks, while the lower layer connects to different chip compute libraries and compiler toolchains through a backend adaptation layer.
    3. Verifiability: Use a unified operator-level unit test framework to verify numerical precision and correctness on each chip, ensuring consistent cross-chip outputs.

    Engineering value: Full-operator replacement is the prerequisite for Day 0 adaptation. When a new model is released, adaptation changes from “per-chip攻坚” to “one-time integration,” compressing the multi-chip adaptation cycle from weeks to days or even hours.

    3. Breakthrough 2: Independent Tensor Parallelism for Expert Groups to Unlock Low-Memory Scenarios

    Problem essence: Expert weights in MoE models account for the vast majority of memory usage. Traditional tensor parallelism usually applies a uniform partitioning strategy to the entire model. On the expert dimension, however, this one-size-fits-all approach either wastes communication bandwidth or cannot fit at all on small-memory devices.

    Technical approach: Introduce an independent tensor parallelism strategy for expert groups (o-group), decoupling expert-dimension parallelism from the parallelism of attention and other modules:

    1. Parallelism decoupling: Attention layers use one tensor parallelism configuration, while expert layers use another independently adjustable configuration. The two are connected through communication reordering.
    2. On-demand partitioning: In low-memory scenarios, the partitioning granularity of the expert dimension can be increased to compress the expert weight footprint per device to an acceptable range. In high-memory scenarios, partitioning can be reduced to lower communication overhead.
    3. Coordination with pipeline and expert parallelism: This strategy can be combined with expert parallelism (EP) and pipeline parallelism (PP) to form a multi-dimensional parallel space, searching for optimal configurations for different hardware topologies.

    Engineering value: This strategy significantly broadens the range of deployable hardware. Models that could previously run only on high-end large-memory cards can now perform stable inference on memory-constrained mainstream cards through multi-card collaboration, directly lowering enterprise deployment thresholds and compute costs.

    4. Breakthrough 3: General Precision Path Conversion for Mixed-Precision Weights

    Problem essence: As noted earlier, the model’s native weights use FP4+FP8 mixed precision, while the vast majority of chips on sale lack FP4 support. Requiring FP4 hardware would effectively limit the model to a very small number of high-end cards, contradicting the goal of inclusive deployment.

    Technical approach: Implement an offline conversion path from “native FP4+FP8 weights” to “general FP8/BF16 precision”:

    1. Lossless unpacking: Dequantize FP4-quantized weights into a higher-precision intermediate representation while preserving the original quantization scaling-factor information.
    2. Target-precision requantization: According to the target chip’s capabilities, convert weights to FP8 (for chips with FP8 capability) or BF16 (a general fallback), and minimize accuracy loss through calibration.
    3. Module-wise precision decisions: For precision-sensitive modules such as attention projections, prioritize higher precision. For expert weights with stronger fault tolerance, adopt more aggressive low-precision schemes to balance accuracy and memory.
    4. Automated conversion flow: Package the above process into a standardized toolchain. When adapting a new chip, it is sufficient to declare its precision capability matrix, and the corresponding weight format can be generated automatically.

    Engineering value: This conversion path allows a model designed for FP4 hardware to run on all current mainstream AI chips, with controllable accuracy loss and inference quality maintained at a usable level. This is a key part of achieving inclusive multi-chip inference.

    5. Synergy of the Three Breakthroughs and Outlook

    It is worth emphasizing that these three technologies are not isolated; they form a complete adaptation chain: full-operator replacement solves “can it compute,” independent tensor parallelism solves “can it fit,” and precision path conversion solves “can it be compatible.” Together, they enable trillion-parameter-era models to run stably on mainstream AI chips from various vendors, rather than being locked to a few high-end accelerators that support the latest precision formats and large memory.

    For enterprises and developers, this practice offers several lessons. First, the openness of the system software stack and operator-layer autonomy are strategic assets for responding to rapid model iteration. Second, decoupled parallel strategy design is a core means of covering the heterogeneous hardware spectrum. Third, precision conversion toolchains should be a standard part of model delivery, not an after-the-fact remedy.

    As multi-chip migration and adaptation of the flagship ultra-large model continue, this methodology will be further tested by larger-scale and more complex parallel scenarios. It is foreseeable that “adapt once, run everywhere” will become a new normal for large-model infrastructure, and teams with low-level system software capabilities will gain an advantage in the race toward inclusive compute.