Open-Source Heterogeneous Compute Stack Completes Multi-Chip Adaptation for Next-Gen MoE Models

    An open-source heterogeneous compute OS completed Day 0 adaptation of a new large MoE model across eight-plus AI chips, covering mixed attention, manifold-constrained hyper-connections, Muon training, operator alignment, FP8, and inference serving.

    Open-Source Heterogeneous Compute Stack Completes Multi-Chip Adaptation for Next-Gen MoE Models

    Background and technical challenges

    The industry recently released two ultra-large flagship models: one at about 1.86 trillion parameters (1.6T class) and an efficient model with 284B total parameters and only 13B activated. Both demand large-scale cluster deployment plus operator compatibility, numeric precision, and inference throughput across chip architectures.

    An open-source heterogeneous compute operating system community adapted these models. The efficient variant is now fully adapted and deployed for inference on more than eight AI chips, covering multiple domestic GPU/NPU vendors and mainstream international accelerators, including FP8 paths. Migration of the larger flagship model is underway on several platforms and is planned for open-source release.

    “Day 0 adaptation” means that on the model’s release day the full path is live: format conversion, missing operators, and a usable inference service. That shrinks the gap between model launch and hardware availability so developers can run the model on their own compute without waiting weeks or months.

    Model architecture: three technical advances

    The efficient model is one of two V4-series models and uses a Mixture-of-Experts (MoE) design. Core innovations fall into three areas.

    1. Hybrid attention: long context efficiency and capacity

    Attention layers combine compressed sparse attention (CSA) and highly compressed attention (HCA):

    • CSA sparsifies the attention range to cut compute and memory on long sequences.
    • HCA highly compresses key–value information to reduce cache footprint.

    Together they raise long-context efficiency and support context lengths up to 1 million tokens, lowering inference cost for long documents, repository-scale code, and multi-turn dialogue.

    2. Manifold-constrained hyper-connections: stable cross-layer signals

    Manifold-constrained hyper-connections constrain how signals travel across layers. Deep nets often suffer unstable gradients or representation drift across layers. Hyper-connections add shortcuts; manifold constraints keep those signals near a meaningful representation space, which:

    • Improves training stability in deep networks
    • Makes feature transfer across layers more coherent
    • Yields more stable output quality at inference

    3. Muon optimizer: faster, more stable convergence

    Training uses the Muon optimizer. Versus Adam-style methods, Muon updates via matrix orthogonalization and corrects update directions for high-dimensional parameters (especially large weight matrices), for faster convergence and more stable training. Pretraining exceeded 32T tokens. Post-training uses two stages:

    1. Independent domain experts: SFT and GRPO reinforcement learning train domain-specific experts separately.
    2. Online policy distillation: capabilities from multiple domains are merged into a single model.

    This split-then-merge approach keeps depth in each domain while reducing multi-task interference.

    Engineering method for eight-plus chips

    Heterogeneous adaptation is more than weight conversion. A practical flow is:

    1. Structure analysis and graph compilation

    Move open-source weights and the compute graph into the target compiler toolchain, handling dynamic shapes (variable sequence length, dynamic expert routing) and custom ops. For hybrid attention, either compose existing ops or implement custom kernels (sparse indexing, compressed KV I/O).

    2. Operator coverage and precision alignment

    MoE expert compute uses grouped GEMMs and dynamic routing, with uneven hardware support. Align numeric outputs per operator so FP16/BF16 and FP8 loss stays acceptable. A common pattern is layer-wise comparison plus end-to-end eval:

    1. # Generic precision-alignment flow
    2. for layer in model.layers:
    3. ref_out = reference_backend(layer, inputs)
    4. tgt_out = target_backend(layer, inputs)
    5. assert max_abs_diff(ref_out, tgt_out) < threshold
    6. evaluate(model, benchmarks) # end-to-end capability checks

    3. FP8 quantization path

    Some chips deploy in FP8. FP8 is sensitive to weight distributions, so per-channel scaling, online scaling, and calibration-set scale factors are used to balance throughput and accuracy.

    4. Serving and performance tuning

    Wrap the adapted model as an inference service:

    • KV cache: 1M-token context is memory-heavy; use paged KV cache or compressed cache.
    • Continuous batching: raise multi-user throughput.
    • Expert parallelism: place experts across cards/nodes with efficient all-to-all.
    • Chunked long-context prefill: cut time to first token.

    Capability bounds and selection

    In Flash-Max mode (maximum inference effort), the efficient model’s reasoning can approach the flagship. Limited by parameter count, it still lags on pure knowledge tasks and the most complex agent workflows. Practical guidance:

    • Maximum reasoning and knowledge: use the flagship when available.
    • Cost vs. latency: the efficient model is enough for most general tasks and is easier to deploy.
    • Ultra-long context: both support very long context; fewer activated parameters make the efficient model cheaper to run.

    Value for a heterogeneous compute ecosystem

    Day 0 support on eight-plus chips shows the value of an open-source heterogeneous OS as a model–chip middle layer:

    1. Lower landing cost: models are usable at release; chip teams need not duplicate adaptation.
    2. Protect existing hardware: mixed fleets can take new models without a rip-and-replace.
    3. Standardize the stack: a shared runtime and operator abstraction so model authors do not write per-chip code.
    4. Broader hardware choice: multiple chips available in parallel for applications.

    Summary

    The practice is a repeatable path: for MoE models from hundreds of billions to trillions of parameters, a heterogeneous compute system parses the three architecture innovations (hybrid attention, manifold-constrained hyper-connections, Muon), then completes operator fill-in, precision alignment, FP8, and serving tuning for Day 0 full adaptation on eight-plus chips. The methodology matters more than any single result—it is a general pattern for large models and diverse accelerators. As flagship adaptations are open-sourced, the community will get fuller reference implementations and lower deployment cost on mixed hardware.