Day-0 Adaptation of Trillion-Parameter LLMs Across Heterogeneous AI Chips: A Unified Software Stack Approach

    This article explores how a unified system software stack enables Day-0 adaptation of trillion-parameter large models across more than nine heterogeneous AI chip architectures. It analyzes the inference requirements of a new ultra-large open-source model family, including hybrid attention, training optimization, and native FP4+FP8 mixed precision, then details three technical breakthroughs: a general operator library for full operator replacement, independent tensor parallelism for low-memory scenarios, and a conversion path from FP4+FP8 to FP8/BF16. It also outlines a standardized deployment workflow using container images, converted model weights, and YAML configuration.

    As model parameter sizes rise from tens of billions to hundreds of billions, trillions, and beyond, the mismatch between AI compute supply and demand, along with ecosystem fragmentation, becomes increasingly prominent. When a new generation of open-source large models is released, developers and enterprise users often face a difficult challenge: the new model is typically optimized for a specific vendor’s latest high-end accelerator, such as hardware with native FP4 support, while many widely deployed AI chips—including domestically developed accelerators and mainstream cards—lack such native support. Achieving rapid adaptation and stable inference across multiple heterogeneous chips on the first day of model release, or Day-0, has become a core technical problem for the industry. This article examines the key technical paths and engineering practices for adapting very large models to multiple chips based on a unified system software stack.

    1. Architecture Evolution and Inference Requirements of a New Generation of Large Models

    A recently open-sourced ultra-large model series provides a Pro version with 1.6T-level parameters and a Flash version with 284B-level parameters. The architecture introduces substantial innovations to meet long-context processing requirements in million-token scenarios.

    1. Hybrid attention and hyper-connection enhancement: The model introduces a hybrid attention mechanism (CSA + HCA). In million-token scenarios, its inference computation is significantly lower than that of the previous architecture, requiring only about 27% of the FLOPs, while KV cache footprint drops sharply to around 10%. In addition, manifold-constrained hyper-connection technology enhances cross-layer signal propagation and improves feature interaction efficiency in deep networks.
    2. Training paradigm optimization: The model is pretrained on tens of trillions of tokens and adopts the Muon optimizer to improve training convergence speed and stability. The post-training stage uses a two-stage paradigm: first, supervised fine-tuning (SFT) and reinforcement learning (GRPO) build domain-specific expert capabilities; then online policy distillation is used for unified fusion.
    3. Hardware barrier raised by native mixed precision: To pursue extreme memory compression and computational efficiency, the new model uses a native FP4+FP8 mixed-precision strategy for weight storage and computation. However, most mainstream chips deployed at scale today—including many domestically developed AI accelerators and previous-generation architectures from some international vendors—do not support FP4 computation. As a result, shortly after release, the new model can only run on a very small number of latest high-end accelerators that support FP4, greatly limiting flexible compute scheduling.

    2. Three Key Breakthroughs in a Unified System Software Stack

    To free very large models from dependence on specific high-end hardware and achieve Day-0 adaptation across more than nine different AI chip architectures, a unified system software stack must make comprehensive breakthroughs at the operator layer, parallel strategy layer, and precision conversion layer.

    2.1 Full Operator Replacement Based on a General Operator Library

    Large-model inference frameworks often depend heavily on vendor-specific compute libraries, such as cuDNN, which leads to many missing operators or precision mismatches during cross-chip migration. The unified software stack builds a cross-platform general operator library to replace all operators in the original model.

    The general operator library uses a Triton-like intermediate representation (IR) design, mapping the model’s high-level compute graph to hardware-agnostic operator primitives. During compilation, these primitives are lowered through compiler infrastructure such as MLIR/LLVM into vendor-specific machine instructions. This “one codebase, multiple compilations” mechanism means that when a model is migrated to new hardware, only the corresponding low-level backend mapping needs to be registered in the operator library to achieve unified operator-layer adaptation, greatly reducing the adaptation cost for hardware vendors.

    2.2 Independent Tensor Parallelism Strategy for Low-Memory Scenarios

    For 1.6T-level models, a single card often cannot hold the full model in memory, so multi-card parallelism is required. Traditional tensor parallelism evenly shards the weights and activations of all layers across multiple cards. However, in certain network structures, such as o-group structures, this coarse-grained sharding can cause very high cross-card communication overhead and still risks OOM (Out of Memory) on accelerators with smaller memory capacity.

    To address this, the unified software stack adopts an independent tensor parallelism strategy for structures such as o-group. Specifically, the system allows different parallel degrees to be configured for different network layers. For compute-intensive and communication-sensitive layers, it keeps a smaller sharding granularity to reduce All-Reduce communication; for layers with large parameter counts but relatively sparse computation, it uses larger sharding granularity or even pipeline parallelism. This fine-grained hybrid parallel strategy enables the model to run efficiently in low-memory scenarios and broadens the range of deployable hardware.

    2.3 Conversion Path from FP4+FP8 Mixed Precision to FP8/BF16

    This is the most central breakthrough for multi-chip adaptation. Because most mainstream chips do not support FP4, the system software stack must provide a lossless or minimally lossy precision conversion path that converts the model’s native FP4/FP8 weights into FP8 or BF16 formats supported by general-purpose chips.

    The FP4 format typically contains 2 exponent bits and 1 mantissa bit. Its dynamic range is very small, and block-wise scaling factors are usually needed to maintain accuracy. The conversion process consists of offline weight conversion and online dynamic computation:

    • Offline weight conversion: Read the native FP4 weights and their corresponding scaling factors, dequantize them into high-precision floating-point values such as FP32, and then requantize them into FP8 or BF16 according to the target chip’s support. When requantizing to FP8, smoothing techniques are needed to reduce errors caused by overflow of large values and truncation of small values.
    • Online computation adaptation: Activations originally computed with FP4 are automatically promoted to FP8 or BF16 for matrix multiplication during inference. Although this increases memory usage and computation to some extent, thanks to optimization in the general operator library, overall inference throughput can still remain within an acceptable range.

    The following is a conceptual pseudocode example of offline weight conversion:

    1. def convert_fp4_to_fp8(fp4_weights, fp4_scales, target_dtype="fp8_e4m3"):
    2. # 1. Dequantize: restore FP4 weights with scale factors to FP32
    3. fp32_weights = dequantize_fp4(fp4_weights, fp4_scales)
    4. # 2. Calculate max/min thresholds for the target type and apply smoothing
    5. max_val = torch.max(fp32_weights)
    6. min_val = torch.min(fp32_weights)
    7. scale, zero_point = calculate_quant_params(max_val, min_val, target_dtype)
    8. # 3. Requantize to FP8/BF16
    9. target_weights = quantize_to_target(fp32_weights, scale, zero_point, target_dtype)
    10. return target_weights, scale

    3. Best Practices for Obtaining and Deploying Multi-Chip Models

    Based on the technical breakthroughs above, the unified system software stack provides an out-of-the-box deployment experience. In actual enterprise environments, the following standardized process can be used to deploy multi-chip large models:

    1. Environment preparation and compute scheduling: Pull a prebuilt unified software stack image through a container platform. The image integrates operator libraries and inference engine backends for different hardware architectures.
    2. Model weight acquisition and validation: Download FP8/BF16 multi-chip model weights that have already undergone precision conversion from an object storage service. Because model files are very large, often at the TB level, it is recommended to mount them using a high-performance distributed file system.
    3. Configuration file delivery: Developers only need to write a standardized YAML configuration file specifying the model path, parallel strategy such as TP=4 and PP=2, and target hardware type. The inference engine automatically identifies the underlying hardware and loads the corresponding backend dynamic library.
    1. # Deployment configuration example
    2. model:
    3. name: "ultra_large_model_1.6t"
    4. path: "/mnt/distributed_storage/models/1.6t_fp8"
    5. precision: "fp8"
    6. parallel:
    7. tensor_parallel_size: 4
    8. pipeline_parallel_size: 2
    9. hardware:
    10. backend: "auto" # Automatically detect the underlying chip architecture

    4. Conclusion and Outlook

    Day-0 multi-chip adaptation of the new generation of open-source large models marks a shift in the heterogeneous AI compute ecosystem from fragmented efforts toward unified standards. Through three core technologies—general operator library replacement, independent tensor parallelism, and mixed-precision conversion—large models are no longer limited to a small number of high-end accelerators that support specific precision and large memory.

    For developers, chip vendors, and industry users, this is not only an engineering victory in model adaptation but also a key step toward making heterogeneous AI compute usable, easy to use, and practical. In the future, as the software stack and underlying hardware are further co-optimized, the deployment barrier for large models will continue to fall, and the overall utilization of heterogeneous compute will improve substantially. Enterprises building AI infrastructure will also have more choice and avoid single-supply-chain lock-in, moving toward compute freedom in a meaningful sense.