Three Technical Breakthroughs Behind Day-0 Support for a Trillion-Parameter MoE Model on Diverse Domestic AI Chips

    A newly released Chinese model family includes a 1.86-trillion-parameter flagship and a 284-billion-parameter MoE model that activates only ~13B parameters per inference and supports up to 1M-token context. On release day, the community deployed the efficient version on more than eight mainstream AI chips. This article explains the three system-software breakthroughs that made this possible: unified operator adaptation across heterogeneous backends, an independent tensor-parallelism strategy for o-group structures enabling low-memory deployment, and an FP4-to-FP8/BF16 precision-path conversion layer. It also distills reusable engineering lessons for heterogeneous LLM deployment.

    Background: The Challenge of Running Trillion-Parameter Models on Diverse Chips

    A Chinese research institution recently released a new generation of large models: a 1.86-trillion-parameter flagship and a 284-billion-parameter efficient model. The efficient version uses a Mixture-of-Experts (MoE) architecture with 284B total parameters but only activates about 13B parameters per inference, while supporting a context length of up to 1 million tokens. Several architectural innovations were introduced:

    • Hybrid attention mechanism: Combines Compressed Sparse Attention (CSA) with Highly Compressed Attention (HCA), substantially reducing compute and memory overhead for long-context scenarios.
    • Manifold-constrained hyper-connections: Improve the stability of cross-layer signal propagation and training quality in deep networks.
    • A new optimizer: Accelerates convergence while maintaining training stability.

    The model family was pretrained on more than 32T tokens. Post-training follows a two-stage paradigm: supervised fine-tuning (SFT) and reinforcement learning methods such as Group Relative Policy Optimization (GRPO) are first used to develop domain experts, and then on-policy distillation consolidates multi-domain capabilities into a single model. With an increased inference compute budget, the efficient version approaches the flagship’s capability, trailing only on pure knowledge tasks and the most complex agent workflows.

    On the day of release, the community completed full adaptation and inference deployment of the efficient version on more than eight mainstream AI chips. This was not a simple porting exercise—it required three key breakthroughs in the system software stack.

    Breakthrough 1: Unified Operator Adaptation to Hide Hardware Differences

    The primary challenge of a heterogeneous chip ecosystem is “one model, multiple implementations.” Chips differ significantly in operator interfaces, memory layouts, and parallelism primitives. Maintaining a separate model implementation per chip causes engineering costs to grow linearly with the number of chips, with inconsistent quality.

    The solution is a unified operator library layer in the framework, enabling “one model codebase, native execution on every chip”:

    1. # Example: unified operator interface with backend-specific dispatch
    2. def attention_dispatch(query, key, value, backend):
    3. kernel = op_registry.lookup("fused_attention", backend)
    4. return kernel(query, key, value)

    Key engineering practices include:

    1. Operator coverage: Unconventional operators introduced by the new architecture—MoE routing, grouped feed-forward, sparse attention—were implemented for every backend, with accuracy-alignment tests verifying numerical consistency.
    2. Graph-level optimization pushed down: Operator fusion (e.g., RMSNorm with quantization, routing computation with TopK selection) is pushed down to a unified compilation layer, so all chips share optimization strategies with only necessary backend-specific branches.
    3. Regression testing system: Against a reference implementation, each chip is validated operator by operator, layer by layer, module by module, making adaptation quality measurable and traceable.

    The value of this layer is reducing the “N chips × M models” combinatorial complexity to an “N + M” additive problem—the foundation for large-scale cross-platform deployment of LLMs.

    Breakthrough 2: Independent Tensor-Parallelism Strategy for Low-Memory Deployment

    A defining characteristic of MoE is “many parameters, few activations.” Conventional tensor-parallelism strategies apply a uniform sharding scheme to all components. For models with independent output-group (o-group) structures, this coarse-grained approach causes memory redundancy or load imbalance on some chips.

    The adaptation team designed an independent tensor-parallelism strategy for o-groups, with three core ideas:

    • Structure-aware sharding dimensions: Attention and output-group components use different sharding granularities, each matched to its parameter distribution.
    • Communication-computation overlap: With independent sharding, inter-group communication can be pipelined with expert computation, hiding communication latency.
    • Tiered memory flexibility: On memory-constrained chips, parallelism configurations can be adjusted to keep per-card memory pressure within a reasonable range.

    The practical payoff: a model that previously required high-end accelerators with large memory can now run stably on a much broader installed base of chips, significantly expanding hardware options and lowering overall inference costs.

    Breakthrough 3: Converting FP4 Weights to FP8/BF16 Precision Paths

    The new model’s native weights use FP4+FP8 mixed-precision storage, which imposes strict hardware requirements: most AI chips currently shipping in China do not support FP4 computation, and even among international vendors, only the latest generation of high-end chips has this capability. Without intervention, most existing hardware could not run the model directly.

    The team’s solution is a load-time precision-path conversion from native weights to FP8/BF16:

    1. Native weights (FP4/FP8 mixed)
    2. │ Dequantize to a high-precision reference format
    3. ▼
    4. Re-quantize based on chip capability
    5. ├── FP8-capable chips → FP8 inference (retain compression benefits)
    6. └── BF16-only chips → BF16 inference (guarantee compatibility)

    Key considerations in the conversion process:

    1. Numerical fidelity: The conversion must be validated with end-to-end evaluation, ensuring that perplexity and downstream task metrics deviate from the native precision path within acceptable bounds.
    2. Loading efficiency: Online conversion of trillion-/hundred-billion-scale weights requires chunked, pipelined processing to avoid excessive cold-start time.
    3. Memory planning: The BF16 path uses roughly twice the memory of FP8, so sharding configurations must be adjusted dynamically in combination with the parallelism strategies described above.

    This conversion layer frees the model from dependence on the few high-end accelerators that offer both FP4 support and large memory, enabling stable execution on mainstream chips from current vendors.

    Engineering Lessons and Outlook

    This Day-0 adaptation effort offers three reusable lessons for the industry:

    First, heterogeneous adaptation belongs in the system layer, not the model layer. Operator unification, parallelism strategies, and precision conversion should be general capabilities of the system software stack, decoupled from specific models, so the ecosystem can respond quickly when the next generation of models ships.

    Second, the transition period of the low-precision ecosystem needs a “translation layer.” Lower-precision storage in new models is a clear trend, while existing hardware varies widely in precision support. Precision-path conversion will become a standard component of heterogeneous deployment for years to come.

    Third, multi-chip regression validation is the quality baseline. The biggest risk in cross-chip adaptation is not “it won’t run” but “it runs and produces wrong results.” An automated multi-backend accuracy and performance regression system is a prerequisite for delivering at scale across chips.

    For enterprises deploying large models across heterogeneous compute environments, combining these cross-chip adaptation techniques with a mature container platform and model-serving capabilities (such as the containerized inference services offered by Baidu AI Cloud) makes it possible to build compute-neutral, elastically scheduled LLM infrastructure and avoid lock-in to a single hardware roadmap.

    Migration of the flagship version is also underway, and the related work will be open-sourced later—well worth following.