Fused Operators Reach 98.5% of Peak Hardware Utilization in Chinese Open-Source LLM–Homegrown AI Chip Adaptation
This article examines how a Chinese open-source large model has been adapted to a homegrown high-end AI chip through custom fused operators. It explains why general framework operators limit performance on specific hardware, how operator fusion reduces HBM traffic, and what reported Prefill and Decoding throughput and peak-utilization figures show. It also reviews a homegrown high-bandwidth memory approach based on wafer-to-wafer hybrid bonding, including its theoretical bandwidth advantages and engineering trade-offs in yield, stacking, and system interconnect. The article concludes with implications for developers: operator-level customization, memory-access optimization, and portable heterogeneous deployment across AI chip platforms.
As large-model parameter counts continue to grow exponentially, bottlenecks in underlying compute and memory bandwidth are becoming more pronounced. Advancing hardware process nodes alone can no longer satisfy the extreme performance requirements of model inference, making hardware–software co-design a key path for breaking through compute barriers. A recent code commit in the open-source community has drawn developer attention: the latest version of an open-source large model has been deeply adapted to a homegrown high-end AI chip and achieved very high hardware utilization in attention-mechanism optimization. This signals that the ecosystem loop between Chinese models and homegrown compute foundations is gradually maturing.
1. Deep Hardware–Software Adaptation: From General Frameworks to Custom Operator Offloading
In traditional LLM inference pipelines, developers often rely on general operator libraries shipped with deep learning frameworks. However, these general operators often cannot deliver peak performance on specific hardware architectures. This is especially true for complex computation logic such as multi-head latent attention, where frequent memory reads and writes can become a serious performance constraint.
Recent updates to the open-source code repository show that the large-model team is working closely with the chip vendor to push core computation logic down to the chip level and use customized fused operators to extract hardware performance.
1. Technical Value of Fused Operators
In this adaptation, the core update is the introduction of fused operators optimized for a specific hardware architecture. These operators combine normalization, rotary position embedding, attention computation, and data type conversion into a single operation.
# Pseudocode: comparison before and after operator fusion# Conventional unfused implementation (many HBM read/write bottlenecks)def attention_standard(q, k, v, rope_freqs):q = apply_rope(q, rope_freqs) # read q, write qk = apply_rope(k, rope_freqs) # read k, write kq = norm(q) # read q, write qk = norm(k) # read k, write kattn_output = attention(q, k, v) # read q, k, v; write outreturn cast_to_fp16(attn_output) # read out, write out# Low-level fused operator implementation (keep data in on-chip cache as much as possible)def fused_attention_ascend(q, k, v, rope_freqs):# Implemented internally in C++/CUDA or with chip-specific instructions;# all computation is completed after a single loadreturn fused_custom_op(q, k, v, rope_freqs)
Through this operator-fusion strategy, the number of times intermediate results are written to global HBM is greatly reduced, converting memory-bound operations into compute-bound operations and maximizing the throughput of compute units.
2. Extreme Peak Hardware Utilization
According to public test data, the adaptation achieved 425 TFLOPS in the Prefill phase, equivalent to 98.5% of peak hardware utilization. In the Decoding phase, it reached 372 TFLOPS, equivalent to 86.1% of peak utilization.
- Prefill phase: This phase mainly performs parallel computation over long text and is a typical compute-intensive task. 98.5% peak utilization means the chip’s compute units are almost fully loaded throughout, with GEMM pipeline scheduling and on-chip cache reuse optimized to the limit.
- Decoding phase: This phase uses autoregressive generation and has a severe memory-access bottleneck, making high compute utilization difficult to achieve. 86.1% utilization indicates that custom operators aligned with low-level memory access patterns effectively alleviate bandwidth pressure from KV Cache reads.
2. Breaking the Memory Bottleneck: Exploring a New High-Bandwidth Memory Architecture
Higher compute utilization is only one side of the challenge. The other half of LLM inference is memory bandwidth. As model scale grows, weight loading and KV Cache reads and writes drive exponential demand for memory bandwidth. Existing HBM3E alleviates pressure to some extent, but it is still strained by models with trillion-level parameters.
A homegrown high-bandwidth memory (HBM) approach recently disclosed in the industry offers a new direction for next-generation compute foundations.
1. Wafer-to-Wafer (W2W) Hybrid Bonding
The core of this homegrown approach is to move away from conventional microbump connections and adopt five-layer wafer-to-wafer hybrid bonding. Its advantages include:
- Smaller bonding pitch: More interconnect interfaces can be placed within a very small area, greatly increasing interconnect density.
- Shorter interconnect distance: The physical distance between chips and memory is reduced, lowering signal delay and power consumption.
- Higher bandwidth ceiling: The approach supports a 64-channel, 4096-bit data interface. At the same rate, its theoretical bandwidth can reach four times that of current mainstream HBM3E.
2. Technical Challenges and Trade-offs
Although hybrid bonding offers substantial bandwidth benefits, it also faces engineering challenges:
- Yield control: W2W bonding requires defects on the two wafers to overlap closely. Any defective point can cause failure at the corresponding location on the wafer, placing extremely high demands on manufacturing processes.
- Limited stacking layers: Constrained by bonding alignment accuracy and heat dissipation requirements, the number of stacked layers and the capacity of a single memory chip are relatively limited.
- System-level interconnect requirements: To compensate for limited per-chip capacity, more compute chips must be interconnected, placing higher demands on system-level topology and network bandwidth.
3. Software–Hardware Co-Design: The Future of Heterogeneous Computing Ecosystems
Whether it is an LLM reaching 98.5% of peak hardware utilization on a homegrown AI chip or the exploration of memory architectures moving toward hybrid bonding, both point to a clear trend: competition in the compute industry has moved from hardware stacking alone to full-stack ecosystem competition covering algorithms, compilers, chip architecture, and packaging technologies.
For developers, this means future system optimization must pay closer attention to low-level hardware characteristics:
- Operator-level customization: Understand the chip’s low-level programming model and develop fused operators for the core computation logic of specific workloads, rather than relying only on framework API calls.
- Memory-access optimization: Understand HBM bandwidth characteristics, design tensor memory layouts appropriately, and reduce cross-channel memory-access conflicts.
- Embrace heterogeneity: As multiple homegrown compute foundations emerge, developers need cross-platform, portable model deployment capabilities to handle compute scheduling requirements across different scenarios.
The two-way collaboration between Chinese models and Chinese compute is turning “bottom-layer innovation” from a slogan into reality through open-source code and repeated architecture iterations. In this process, every breakthrough in underlying technology is helping build a self-reliant and controllable AI infrastructure.
