Multi-Chip Rapid Adaptation of Ultra-Large Open-Source Models: A Practical Guide to Heterogeneous Deployment
This article walks through how a new ultra-large open-source model series was adapted and deployed across nine hardware platforms on day one, and distills the engineering techniques behind that result. It covers the core challenges of running trillion-parameter models on fragmented compute ecosystems, then details three key breakthroughs: full operator replacement built on a unified IR, independent tensor parallelism for low-memory scenarios, and an FP4-to-FP8/BF16 precision conversion path. Developers will find the deployment workflow, configuration options, and practical takeaways for building portable, hardware-agnostic inference stacks.
Multi-Chip Rapid Adaptation of Ultra-Large Open-Source Models
1. Background: The Tension Between Rapid Model Progress and a Fragmented Compute Ecosystem
A recently released open-source model series marks a new generation of ultra-large parameter models. It ships in two versions by parameter count: a flagship (trillion-level) and a lightweight (hundreds-of-billions-level) variant, both supporting million-token ultra-long context. On release day, a community built on a unified open-source system software stack completed adaptation and inference deployment across multiple domestic and general-purpose AI chips, covering nine hardware platforms including reconfigurable computing architecture chips, achieving a DAY0 “deploy on release” adaptation goal.
Behind this event lies an industry-level proposition: models are getting larger and more capable, yet the compute ecosystem is highly fragmented. Different chip vendors differ in instruction sets, operator libraries, precision support, and memory specifications. If every model had to “reinvent the wheel” for every chip, adaptation cost would grow multiplicatively with “number of models × number of chips.” The value of a unified system software stack is precisely to compress this adaptation path from “N×M” down to “N+M.”
For developers, this means an open-source model is no longer bound to a few high-end accelerators, but can be quickly migrated to and run stably on existing mainstream hardware. For industry users, it means heterogeneous compute truly becomes usable, accessible, and dependable.
2. Adaptation Challenges Introduced by the New Model
This generation of models features several notable architectural advances, each of which brings new challenges for heterogeneous deployment:
- Hybrid attention mechanism: By combining compressed sparse attention with hierarchical context attention, the flagship model requires only about 27% of the inference compute and 10% of the KV cache overhead compared with the previous generation in million-token scenarios. The change in attention structure means the operator graph must be rewritten and re-validated.
- Manifold-constrained hyper-connection structure: This improves cross-layer signal propagation efficiency but introduces unconventional inter-layer data paths, placing higher demands on graph compilation and memory planning.
- New optimizer and training paradigm: The training side uses an improved momentum-orthogonal optimizer to improve convergence stability, and post-training follows a two-stage paradigm of “SFT + reinforcement learning + online policy distillation.” The inference side must stay numerically consistent with the training side.
- Native low-precision weights: Model weights are natively stored in “FP4+FP8 mixed precision,” but most AI chips in large-scale deployment today do not support FP4. Even among international mainstream vendors, only the latest generation of high-end chips offers FP4 support.
The first three points test engineering capability at the operator layer and in parallel strategies; the fourth is the hardest technical barrier in this adaptation effort.
3. Three Key Technical Breakthroughs
3.1 Full Operator Replacement Based on a High-Performance Operator Library
The first principle of multi-chip adaptation is: do not patch operators one by one on each chip; instead, establish a unified layer of operator abstraction.
The concrete approach is to take an open-source high-performance operator library as the foundation and fully replace the model’s original custom operators with equivalent operators implemented on a unified intermediate representation (IR). This yields three benefits:
- Replace once, benefit across chips: Operators are dispatched via a Triton-like DSL or a unified compilation layer, so the same code generates kernels for each hardware backend.
- Verifiable precision: Every replacement operator undergoes tensor-by-tensor numerical alignment testing against the original, with error kept within a defined threshold.
- Tunable performance: Operator-level benchmarking is automated; once hotspots are identified, kernel-level optimization is applied for specific backends.
A schematic of the flow:
# Pseudocode example of unified operator abstractionmodel = load_model("ultra-lmm-1.6T")for name, module in model.named_modules():if is_custom_op(module):replace_with_unified_op(module, backend="auto")verify_numerical_alignment(model, tolerance="fp8-compatible")benchmark(model, backends=["ascend-like", "gpu-like", "cgra-like"])
3.2 Independent Tensor Parallelism Unlocks Low-Memory Scenarios
Memory pressure is one of the biggest obstacles to deploying trillion-parameter models. The traditional approach applies tensor parallelism (TP) uniformly across all weight groups, but this requires every card to have enough memory to hold its assigned shard, which excludes low-memory GPUs outright.
The innovation in this adaptation is: apply an independent tensor parallelism degree to specific output groups (o-groups) in the model. That is, different modules can have different TP sharding granularities:
- Large-weight modules such as attention output projections: use a higher parallelism degree to further thin out the shards.
- Small gating and routing modules: keep a lower parallelism degree to avoid communication overhead backfiring.
This “non-uniform parallelism” strategy is essentially a joint optimization of memory usage and communication overhead. It allows a model that previously could only run on 80GB-class memory cards to run stably across multiple mid- and low-memory cards through reasonable sharding, significantly expanding the range of deployable hardware.
3.3 Precision Path Conversion from FP4+FP8 to FP8/BF16
To address the problem that “most chips do not support FP4,” the adaptation team completed a precision remapping of the native weights:
- Analyze the weight distribution: Measure the quantization grid and scaling-factor distribution of the FP4 weights.
- Prioritize lossless up-conversion: FP4 weights are first losslessly up-converted to an FP8 representation (FP8 fully covers the dynamic range of FP4), and the compute path runs directly on chips that support FP8.
- Fall back to BF16: For chips that do not support FP8, weights are further up-converted to BF16, trading precision for compatibility.
- End-to-end calibration and validation: After conversion, the model’s output consistency before and after conversion is compared on a standard evaluation set to ensure the precision loss stays within an acceptable range.
This dual-path “FP4 → FP8/BF16” design lets the same model weights automatically select a precision tier according to chip capability, and is key to making the model truly portable across hardware.
4. How Developers Can Obtain and Deploy
For developers, the unified software stack provides an out-of-the-box deployment solution. The typical workflow is:
- Pull the model and weights: Obtain the multi-chip model version and the converted weights from the community.
- Select the target backend: Specify the hardware backend and precision tier via environment variables or a configuration file.
- Launch the inference service with one command: A packaged startup script automatically handles parallel-strategy configuration, memory planning, and service exposure.
- Validate and stress-test: Built-in health checks and throughput benchmark scripts help users quickly evaluate performance on their own hardware.
# Illustrative deployment commands (refer to the community documentation for specifics)export BACKEND=auto # auto-detect the hardware backendexport PRECISION=fp8 # fp8 | bf16 optionalexport TP_OGROUP=2 # independent parallelism degree for the o-groupserve start --model ultra-lmm-flash
For enterprise users who want further customization, the inference service can also be incorporated into a standardized MLOps workflow using common cloud capabilities such as container platforms, object storage, and monitoring/alerting, enabling elastic scaling and multi-instance load balancing.
5. Summary and Outlook
From a broader perspective, this rapid adaptation validates an important judgment: the bottleneck of heterogeneous compute often lies not in the chips themselves, but in the system software ecosystem on top of them. Once unified capabilities are established across the three layers of operator abstraction, parallel strategy, and precision conversion, the migration cycle for large models across diverse chips can be compressed from “months” to “days” or even “hours.”
Three takeaways for developers: first, prioritize an operator ecosystem built on a unified IR to reduce deep coupling to any single hardware; second, pay attention to memory-optimization techniques such as non-uniform parallelism, which often determine whether a model can land on “adequate” rather than “top-tier” hardware; third, precision path conversion is an essential engineering capability during the period when multiple hardware generations coexist, and is worth building up in advance.
The “mutual convergence” of diverse compute and open-source large models is turning from a vision into a reproducible engineering practice.
