What Optimization of Domestic AI Chips for Inference Actually Means

    This article separates confirmed facts from unverified claims about domestic AI chip adaptation for large model inference, then explains why core operator optimization and software stack tuning matter more than headline compute specs. It covers how to measure MFU and MBU, why prefill and decode stages have different bottlenecks, four main lines of operator-level optimization, and what a shift from 95% to 98% utilization means at cluster scale. A practical checklist for enterprises and readers evaluating real progress is included.

    1. First, Draw a Clear Line Around the Facts

    Claims that domestic compute chips have been adapted to run a particular large model inference version have drawn a lot of attention recently, but it is worth separating confirmed facts from information that still needs verification. The publicly available material so far is mostly discussion summaries and first-hand accounts from practitioners. It mentions two kinds of claims: first, that the core operators of a certain chip generation have been optimized to approach the hardware’s theoretical limit; second, that a certain model version reached roughly 95% compute utilization in the prefill stage, that the team raised this to 97%~98% through low-level communication and operator library optimization, and that the relevant implementation has been open sourced.

    It must be stressed that without a complete official technical write-up, any conclusion that “a certain chip fully supports a certain model” should not be treated as a product fact. That does not prevent technical analysis, because the genuinely informative part sits in two phrases: “core operators” and “software stack optimization.” These determine how much of a chip’s nominal compute can actually be delivered under real workloads.

    2. Why “Running” and “Running Well” Are Two Different Orders of Magnitude

    Two metrics are commonly used to gauge inference efficiency: Model FLOPs Utilization (MFU) and Memory Bandwidth Utilization (MBU). MFU is the share of peak hardware compute consumed by useful floating-point work; MBU is the share of peak bandwidth consumed by actual memory traffic.

    A chip with high nominal compute that reaches only 30%~40% utilization on a real model is equivalent to paying a premium for half the performance. The gap usually comes not from the hardware itself but from:

    • Operator implementations that are not tiled and reused according to the hardware memory hierarchy (registers, on-chip cache, high-bandwidth memory);
    • Communication from tensor and pipeline parallelism that is not sufficiently overlapped with computation;
    • Redundant tensor movement and format conversion between the framework layer and the operator library;
    • Dynamic shapes that prevent the compiler from fully unrolling loops and vectorizing.

    So the standard for judging whether “adaptation” has value should be this: under the target workload of the target model, does utilization approach the hardware limit, and is that approach stable, reproducible, and covered by regression tests?

    3. Prefill and Decode: Two Workloads With Completely Different Bottlenecks

    Large model inference has two stages, and the optimization approach cannot be mixed between them.

    The prefill stage processes all input tokens at once. It is compute-intensive, with large matrix multiplications, and the goal is to saturate compute, measured by MFU. The decode stage generates tokens one at a time, processing a single token per step. It is memory-intensive, bottlenecked by memory bandwidth and scheduling overhead, and measured by MBU and per-step latency.

    A schematic sketch of the bottleneck decision logic:

    1. # Illustrative logic only, not a specific framework API
    2. def classify_stage(compute_flops, mem_bytes, peak_flops, peak_bw):
    3. arithmetic_intensity = compute_flops / mem_bytes
    4. ridge_point = peak_flops / peak_bw
    5. if arithmetic_intensity > ridge_point:
    6. return "compute_bound" # closer to prefill; prioritize operators and parallel partitioning
    7. return "memory_bound" # closer to decode; prioritize memory access, batching, and KV cache

    This ridge point check is the starting point for optimization: confirm first whether you are bound by compute or by bandwidth, then decide where to invest. Otherwise you end up doing ineffective work, optimizing compute while latency does not move.

    4. Four Main Lines of Operator-Level Optimization

    1. Fusion and fewer intermediate tensors. Fuse element-wise operations such as normalization, activation, and residual addition with adjacent matrix multiplications to cut round trips to high-bandwidth memory. This is the most direct source of MFU gains.
    2. Tiling and data layout. Tile according to on-chip cache capacity and rearrange the layout of weights and activations so the inner loop accesses memory contiguously, reducing bank conflicts and alignment overhead.
    3. Overlapping communication with computation. Reductions in tensor parallelism and point-to-point transfers in pipeline parallelism should be split into smaller chunks and interleaved with computation so communication time is hidden behind compute.
    4. Coordinating compile time and runtime. Fix or converge shapes, and enable operator autotuning and graph-level optimization to avoid the jitter caused by repeated recompilation at runtime.

    A simplified way to attribute the gains:

    1. step_time = max(compute_time, comm_time) + sync_overhead + launch_overhead
    2. # Optimization goal: let comm_time be covered by compute_time,
    3. # and shrink sync_overhead and launch_overhead

    5. What Going From 95% to 98% Means

    Three points of utilization may look marginal, but at large cluster scale the effect is multiplied linearly: the same machine hours produce more tokens and unit inference cost drops; batch sizes can be raised further without crossing the latency red line; and the headroom left in capacity planning shrinks, making procurement and expansion schedules more controllable. Stability matters even more: the closer utilization is to the limit, the more predictable the performance curve, and the more reliable the baseline for capacity stress testing and fault localization.

    A caveat: this kind of number depends heavily on model structure, sequence length, parallel strategy, and batch size. Quoting figures detached from test conditions is meaningless. Engineering practice is to fix a workload profile and build a regression-capable performance baseline, rather than cite a single best result.

    6. Practical Impact for Users and Enterprises

    In the short term this will not show up as a new feature button. In the medium term it shows up in three ways. First, inference price and response speed: efficiency gains carry through to service pricing and concurrency. Second, supply options: once hardware and software co-design matures, compute supply is no longer dependent on a single class of hardware. Third, controllability: with the full chain from model to operator library to compiler stack to scheduling platform under in-house control, the path to root-causing a problem is shorter.

    On the enterprise side, it is worth looking at how general cloud capabilities fit in: use a container platform to host a heterogeneous compute resource pool, use object storage and message queues to decouple data from tasks, and use logging, monitoring, and alerting to close the observability loop on utilization, latency, and failure rate. Baidu AI Cloud has general practices in heterogeneous compute scheduling and observability that can serve as an architectural reference.

    7. Deployment Checklist

    • Is the workload profile defined (distribution of input and output lengths, concurrency, latency SLO)?
    • Are MFU and MBU measured separately, rather than looking at throughput alone?
    • Is a regression baseline established for before and after optimization, including tail latency?
    • Is numerical consistency verified, so that fusion and lower precision do not change the output distribution?
    • Is a fallback path retained, so operator-level changes can be rolled out gradually and rolled back?

    Conclusion: deep coordination between domestic compute and large model inference is fundamentally a contest of software stack engineering capability. The reliable way to judge progress is not slogans but reproducible utilization data, stable latency curves, and a complete regression system.