LLM Inference on Domestic AI Chips in China: Engineering Value and Industry Impact

    This article analyzes the engineering value of adapting core LLM inference operators to a new-generation domestic AI accelerator chip in China. It covers the role of operator optimization in Prefill and Decode, the significance of reported MFU levels, the maturity required of the software toolchain, and the implications for inference cost, heterogeneous compute resilience, and AI application development. It also sets clear boundaries around the currently available public information.

    Recent news that a new-generation domestic AI accelerator chip has successfully adapted the core operators of a mainstream open-source large language model has sparked broad discussion in technical communities. The industry focus has moved beyond the initial question of whether a model can run on domestic hardware. The deeper concern is whether domestic chips can deliver performance in real LLM inference workloads that approaches or even reaches the hardware’s theoretical limits. For ordinary end users, this low-level technical progress may not immediately turn into a new feature in an application interface. In the long run, however, it will significantly reshape the compute cost, system stability, and architectural choices available for future AI services.

    Before analyzing its technical value, it is necessary to clarify the boundaries of the current information. According to currently public technical summaries and community discussions, the relevant team has optimized multiple core LLM operators to the limit of a new-generation domestic hardware platform. People involved in the project disclosed that one model version reached 95% MFU (Model Flops Utilization) in the Prefill stage. Through deep optimization of the low-level heterogeneous computing architecture toolchain, the team further raised this metric to 97% to 98%, and some optimized code has been open-sourced. Although a complete official technical announcement has not yet been fully released, this does not prevent us from deconstructing the real technical value behind “core operator adaptation” and “software toolchain optimization” from an engineering practice perspective.

    1. Understanding the Central Role of Operator Optimization in LLM Inference

    Developers know that ordinary AI users see chat boxes and model names, while low-level engineers focus on which compute stages consume the most time during model runtime. A large language model (LLM) is not an indivisible program. Its inference process is essentially repeated calls to hundreds or thousands of basic compute modules. In technical terms, these basic compute modules are called “operators,” and they can be viewed as high-frequency standard parts inside the model.

    During the LLM runtime cycle, compute bottlenecks tend to concentrate in several specific types of operators. In the Prefill stage, for example, the model must process the input prompt, mainly performing large-scale matrix multiplication (GEMM) with very high compute intensity. In the Decode stage, the model generates tokens one by one. Although the compute volume is relatively small, frequent memory access makes the system memory-bound. If these core operators, such as Attention operators and MoE routing operators, are not deeply customized and optimized for a specific chip architecture, the model may still run, but execution speed, memory or high-bandwidth memory (HBM) occupancy, and multi-concurrency capability often suffer significantly. Changing to another hardware architecture often means redoing operator-level adaptation. This is far more than simply changing the device configuration name.

    2. MFU as a Lens on the Limits of Hardware-Software Co-Optimization

    The industry commonly uses MFU (Model Flops Utilization), a demanding metric, to evaluate how efficiently a chip runs large models. It measures how much of the hardware’s theoretical peak compute is actually extracted during real model execution.

    The previously mentioned “Prefill MFU of 95%, raised to 97% to 98% after optimization” has extremely high engineering value. In real physical environments, MFU rarely exceeds 80% because of systemic overheads such as data movement, kernel launch overhead, and parallelism limits. Approaching the theoretical limit of 98% means that operator implementation logic, memory allocation strategies, and inter-card communication mechanisms must align almost perfectly with the hardware’s matrix compute units, on-chip SRAM, and network topology.

    This requires the low-level compiler toolchain to have strong instruction scheduling capabilities. Through techniques such as operator fusion, memory reuse, and pipeline parallelism, fragmented memory access operations and compute logic must be reorganized to hide memory access latency as much as possible and keep hardware compute units fully utilized.

    3. The Essence of Operator Adaptation: A Rigorous Engineering Efficiency Test

    Therefore, in the eyes of experienced developers, “core operator adaptation” is more like a rigorous engineering efficiency test for the entire software and hardware stack. It verifies whether model code, the compiler toolchain, operator implementation logic, and hardware physical characteristics can truly work together seamlessly.

    A simplified pseudocode example can help illustrate the logic of integrating custom operator adaptation:

    1. # Pseudocode: custom operator integration logic for a specific hardware
    2. class CustomHardwareAttentionOperator:
    3. def __init__(self, hardware_arch_config):
    4. # Load architecture configuration for the specific hardware (e.g., cache size, matrix unit dimensions)
    5. self.config = hardware_arch_config
    6. def optimize_and_compile(self, raw_op_code):
    7. # 1. Operator fusion: fuse Softmax with QKV matrix multiplication
    8. fused_op = self.fuse_operations(raw_op_code)
    9. # 2. Memory planning: use the low-level toolchain for on-chip cache reuse planning
    10. mem_plan = self.arch_toolchain.plan_memory(fused_op, self.config)
    11. # 3. Instruction generation: compile into binary instructions for the specific hardware
    12. binary_kernel = self.arch_toolchain.compile(fused_op, mem_plan)
    13. return binary_kernel
    14. def execute(self, input_tensors, binary_kernel):
    15. # Move input data to hardware and execute the optimized operator kernel
    16. return self.hardware_accelerator.run(binary_kernel, input_tensors)

    The process above shows that operator adaptation is not merely model-level code modification. It goes deep into instruction-level and memory-level hardware co-design. Only when this toolchain is mature enough to complete the above optimization process automatically or semi-automatically can developer migration costs be truly reduced.

    4. The Broader Impact on the AI Ecosystem and End Users

    The ability of domestic chips to demonstrate extreme performance under mainstream LLM workloads matters not only for laboratory data, but also for the broader AI industry ecosystem:

    1. Reshaping the Compute Cost Structure
    Higher MFU directly translates into lower per-token inference cost. When low-level operator utilization approaches its limit, enterprises can support higher QPS (queries per second) concurrency with the same hardware investment. For enterprises relying on cloud-native architectures, this low-level efficiency improvement, combined with container platforms and elastic scheduling mechanisms, can squeeze compute resources to the limit and significantly reduce the operating costs of LLM applications.

    2. Building a Diversified Compute Foundation and Enhancing System Resilience
    For a long time, LLM inference has relied heavily on a single vendor’s hardware ecosystem. This has brought supply chain security risks and limited cloud providers’ flexibility in compute scheduling. If domestic chips can achieve seamless and efficient adaptation to mainstream LLMs through deep software ecosystem development, they will break down compute islands. Enterprises can smoothly deploy models on heterogeneous compute clusters and dynamically schedule different types of compute resources according to business peaks and troughs, greatly enhancing the overall stability and risk resistance of AI services.

    3. Enabling Richer Forms of AI Applications
    When compute costs fall significantly and low-level hardware choices become more diverse, the democratization of AI technology will accelerate. For ordinary users, this may mean AI assistants with faster responses, longer context, and lower subscription fees in the future. For developers, compute will no longer be a constraint on creativity, and more complex Agent architectures and deeper multimodal applications will have a more solid compute foundation.

    Conclusion

    The deep adaptation of core LLM operators to domestic chips is not a simple PR news item. It is an important sign that China’s AI infrastructure is maturing. It reveals that AI competition has shifted from simple model parameter stacking to the deeper waters of hardware-software co-optimization. At this stage, only by deeply coupling model code, compiler toolchains, and chip architectures and continuously approaching the physical limits of hardware can a compute foundation with cost advantages and technical resilience be built under real commercial workloads. For every technologist following AI development, this is a hard-core engineering practice worth tracking.