Full Report

MFU 51% on a thousand-card cluster, 2 ms per-token latency!

Edited by Chen Chen, Panda
The collaboration between domestic large models and domestic compute is moving from model adaptation to production-grade validation.
Just last night, DeepSeek officially open-sourced the production-grade inference code for DeepInfer on the Huawei Ascend platform, covering key components such as core operators, communication and memory management, the inference pipeline, and task scheduling.
More notably, DeepSeek disclosed that DeepSeek V4.1 Flash, deployed on Ascend 950, is already handling large-scale online user traffic. With an average input length of about 98K tokens, the P50 first-token latency reaches 277 ms, and the single-stream output speed reaches 138 tokens/s.

In other words, inference has already been proven in real business scenarios first. And the industry's focus is now shifting to a deeper question: how can domestic large models and domestic chips achieve full-link deep affinity across training, inference, and vertical business applications?
Closely following this milestone, the openPangu team systematically disclosed its fully self-developed full-stack training and inference system based on the Ascend 950 super node, covering three major directions: low-precision training, inference deployment, and generative recommendation. The full source code will be open-sourced progressively in the openPangu community in the near future.
In low-precision training, this is the first time a domestic chip has disclosed a thousand-card-scale low-precision training full-stack practice. On a 1024-Rank Ascend 950 cluster, the self-developed openPangu-2.0-Pro 505B MoE model achieves MXFP8 training, with a whole-network MFU (Model FLOPs Utilization, i.e., the ratio of actual effective computation to the hardware's peak compute) of 51.0%, and throughput improved by 24% over BF16; a 1-trillion-token long-cycle validation showed no loss spikes or divergence throughout, with an average relative deviation of only 0.16% from the BF16 baseline.
In inference deployment, openPangu, centered on unleashing the low-precision compute of Ascend 950, has built a full-stack solution covering its self-developed HiF8, MXFP8, and MXFP4, and is the first in the industry to introduce W4A4C4 (4-bit weights, activations, and KV cache) coordinated quantization. The self-developed HiF8 achieves lossless precision, and W4A4C4 incurs less than 1% precision loss in Code and Agent evaluations; combined with dynamic sequence parallelism, short-sequence graph capture, and KV pooling, the average first-token latency (TTFT) for multi-turn Agent scenarios drops to 341.56 ms, with a prefix cache hit rate of 93.74%; by relying on fused large operators to eliminate Scalar bottlenecks and approach the memory bandwidth limit, together with fine-grained multi-stream core control and CCU communication offloading to alleviate Vector bottlenecks, the single-request incremental token latency (TPOT) reaches as low as 1.77 ms (2.03 ms on average in real scenarios).
In generative recommendation, the team has launched the Ascend-affine openPangu-GenRec-Infer, which has already been deployed in multiple production systems. On Ascend 950 with a 128 Beam Width, the end-to-end latency of the openPangu 1B model for 1K and 10K sequences is reduced to 27 ms and 114 ms respectively, a performance improvement of 93.3%, and multiple core capabilities have been merged into the open-source community project vLLM-GR.

From the open-sourcing of inference code to the first systematic disclosure of low-precision training on a domestic chip with full-stack source code released, this Ascend-affine self-developed practice provides a reusable and verifiable reference for the domestic model and chip ecosystem, and marks another solid step forward in ecosystem collaboration.
Low-Precision Training: A First Disclosure on Domestic Chips, Moving from Feasible to Reliable
Low-precision training refers to performing parameter storage and computation with fewer bits (e.g., compressing from the traditional 16-bit BF16 to 8-bit or even 4-bit), and is a key path to reducing memory footprint and breaking through compute bottlenecks.
However, its implementation faces significant obstacles: quantization errors may accumulate over long-cycle training and cause divergence, and once matrix computation is accelerated, data movement, communication waits, and scheduling overhead quickly become new bottlenecks.
Previously, engineering details of large-scale low-precision training were mostly concentrated in overseas ecosystems. This time, openPangu, leveraging the Ascend 950 super node, has completed the first systematic disclosure of a large-scale low-precision training full-stack practice on a domestic chip, providing a complete solution from stable convergence and whole-network tuning to chip-affine operators.
MXFP8 and BF16 Mixed Computation: Assigning the Right Precision to Different Modules
Low-precision training can effectively reduce resource overhead and improve training efficiency, but numerical errors also affect convergence stability.
To this end, the openPangu self-developed training framework adopts an MXFP8 and BF16 mixed-precision scheme, enabling MXFP8 computation for the forward and backward matrix multiplications of the main linear layers, routed experts, and shared experts, while precision-sensitive modules such as Embedding, LM-Head, Router, FlashAttention, RMSNorm, SwiGLU, and mHC maintain their original precision.
Mixed-precision scheme
This scheme also introduces a two-level precision control mechanism:
- The first level selects the scope of low-precision computation according to the Transformer layer index;
- The second level, within each layer, uses a whitelist based on module names to decide whether to enable low precision. Modules not on the whitelist continue to use their original precision configuration.
This design has two benefits: on the one hand, the coverage of low-precision computation can be gradually expanded; on the other hand, if a module exhibits numerical anomalies, the corresponding computation path can be adjusted directly without rolling back the entire model.
Quantization itself also requires fine-grained control.
MXFP8 uses block-level shared scaling factors, where multiple elements within a data block share the same scaling factor. If the scaling factor is set improperly, larger values may saturate and overflow.
To address this issue, the team adopted a strategy of rounding the scaling factor upward, reducing the risk of numerical truncation caused by insufficient scaling.
At the same time, the team established a precision monitoring mechanism at the granularity of matrix multiplication. In addition to observing the overall Loss, they separately tracked the underflow rate, mean squared error (MSE), and normalized root mean square error (NRMSE) of the left and right operands of matrix multiplication, and correlated the results with specific modules, training stages, and operands.
This is equivalent to adding a more detailed numerical monitoring system to low-precision training. When problems arise, the team can locate the source of errors more quickly and adjust precision configurations for specific modules.
1T Token Training: MXFP8 Maintains Convergence Performance Close to BF16
The team used BF16 as the baseline to compare the convergence performance of MXFP8 mixed-precision training.
The results show that the Loss in both experimental groups underwent a rapid decline in the early stage, then gradually entered a stable convergence phase. Within the test interval, no obvious Loss spikes or divergence were observed. The average relative deviation of MXFP8 Loss compared with BF16 was only 0.16%.
Downstream task evaluations also produced similar results. At the three training checkpoints of 537B, 738B, and 906B Tokens, the average downstream task scores of the MXFP8 model were all slightly higher than the BF16 baseline. The overall evaluation performance at the three checkpoints was basically consistent, with no phenomenon of continuous degradation as training progressed.
Model training loss curve
The team further explored lower-bit MXFP4 quantization-aware training (QAT). Ultimately, the average relative Loss deviation of MXFP4 QAT compared with the MXFP8 baseline was approximately 0.173%, and it remained stable within the observation interval.
This experiment shows that, under the quantization range and training configuration tested in this work, MXFP4 weight quantization can be integrated into the existing training path and maintain convergence performance close to the MXFP8 baseline.
505B MoE Model: FP8 Training Performance Improved by 24%
To truly translate low precision into production efficiency, it is also necessary to further address communication, memory, and operator scheduling overheads in end-to-end operation.
The team used the openPangu-2.0-Pro 505B MoE model with the following configuration:

Ultimately, under the same parallel configuration, the MXFP8 training scheme achieved a 24% throughput improvement over BF16, with end-to-end MFU reaching 51%.

End-to-end training performance results
Further breakdown reveals that low-precision matrix computation is an important source of performance gains.
After switching from BF16 to MXFP8, the pure computation speedups of routed expert grouped matrix multiplication (GMM) and regular matrix multiplication (MM) reached 1.98x and 1.96x, respectively. Even after accounting for quantization overhead, the speedups still reached 1.83x and 1.79x, respectively.
However, once matrix multiplication becomes faster, overheads in other stages also become more prominent. Data movement, collective communication, operator dispatch, and optimizer computation may all become new bottlenecks.
To this end, the team carried out multi-layer optimizations around the hardware characteristics of Ascend 950.
The first is low-precision weight residency. The framework retains FP32 master weights for optimizer updates while keeping MXFP8 model weights resident on the chip, reusing them across the forward and backward computations of multiple microbatches to avoid requantization before every matrix computation.
The second is on-demand communication of quantized data. For MXFP8 weights resident on the chip, the quantized components required for forward and backward computation are not the same. If both sets of quantized data and scaling factors were fully transmitted every time, the communication volume could actually exceed that of a single BF16 weight copy. Therefore, the framework collects the data for the corresponding direction on demand according to computational requirements, avoiding redundant transmission.
For activations and output gradients, the team further designed dual-vector quantized split communication. In mixed TP and SP parallelism scenarios, the required quantized data is transmitted separately according to the data dependencies of forward and backward computation, and asynchronous communication is overlapped with computation to reduce communication waiting.
The optimizer was also specially designed. The Newton-Schulz orthogonalization in the Muon optimizer requires the full momentum matrix. The team assigned the full matrix to the corresponding Rank for orthogonalization, then distributed the results via Broadcast, reducing the Newton-Schulz computation time by about 70%.
For operator scheduling, AutoFuse fuses and dispatches multiple small operators. After enabling MoE Router, the number of kernels dispatched across the entire network decreased by 7.7%, and end-to-end performance improved by 3%.
Even more noteworthy is MegaMoE.
MoE computation includes multiple stages such as Dispatch, expert matrix multiplication, activation, and Combine. The traditional approach executes these stages sequentially, making it easy for compute units to wait on communication and communication units to wait on computation.
MegaMoE organizes multiple stages into a single kernel, uniformly schedules communication and computation, and splits large tasks into fine-grained pipelines to reduce waiting between different stages.
Under the MXFP8 configuration, after enabling MegaMoE, MFU increased from 46% to 51%, and end-to-end throughput improved by 10.9%.
In addition, to address the memory access pressure of the large-scale Engram embedding table, the team leveraged the super-node pooling capability of Ascend 950 to uniformly manage CPU-side DRAM and NPU-side HBM, directly reading the target embedding vectors through one-sided communication and reducing All-Gather and All-to-All communication. After optimization, the forward time of the Engram module dropped from 0.93 ms to 0.39 ms, a 2.38x speedup; the backward time dropped from 1.5 ms to 1.0 ms, a 1.5x speedup.
Bringing Hardware Characteristics Truly into Operator Internals
Beyond whole-network scheduling, the hardware design inside the Ascend 950 chip also opens up new room for operator optimization.
The Ascend 950 adds a high-speed data exchange channel between the Cube Core and the Vector Core, allowing data to be passed directly between matrix computation and vector computation and reducing the overhead of relaying through GM. At the same time, the newly added collective communication processing engine, CCU, can take on collective communication tasks, reducing the occupation of system bus bandwidth and AI Core compute resources by communication.
The openPangu team carried out dedicated optimizations for mHC, DSA Indexer, and HCCL communication in the Pangu model.
Taking mHC as an example, it is an important component for extending the residual stream, accounting for more than 7% of the computation in the Pangu model and involving a large amount of Vector computation.
The team split it into three stages—mHC Pre, mHC Post, and mHC Sinkhorn—for a total of six operators in the forward and backward passes, and then used the Cube-Vector pathway and a multi-stream parallel mechanism for optimization.
Among them, mHC Sinkhorn can be split out independently and executed in parallel with Vector computation through Cube-type operators, fully hiding 100% of the related Vector time. mHC Pre and mHC Post, meanwhile, reduce data movement through fine-grained pipelining, data reuse, and Cube-Vector fusion.
For the mHC Post backward computation, the team also adopted the idea of compensating Vector with Cube, offloading some Vector operations to Cube execution to further unleash Ascend hardware compute.
Ultimately, the performance of mHC-related operators improved by 26% to 163%, and the whole network gained about 3% in performance.
On the DSA Indexer side, the team optimized the problems of the large volume of the QK result matrix, frequent data movement, and the high overhead of Top-K sorting. First, they used the direct pathway from L0C to UB to reduce data movement, and adopted Query residency and Key whole-block double buffering to lower repeated loading overhead. Second, they used Compare+Select to filter out smaller values before sorting, reducing the number of elements participating in Top-K sorting. Ultimately, the Lightning Indexer operator performance improved by more than 1.35x, and the overall training network performance improved by more than 3%.
On the communication side, according to the parallel strategy of the Pangu model, the team prioritized allocating the time-consuming EP and TP communication domains to the CCU, and optimized the dynamic application and reuse of CCU resources during communication. These improvements further unleashed the collective communication capability of the Ascend 950.
Inference deployment optimization: from self-developed low-precision quantization to system-level collaboration, compressing inference latency
As large models accelerate into agent application scenarios such as code development, debugging, and multi-step tool calling, the challenges faced by inference systems are also changing. A complex Agent task often contains multiple rounds of model inference and tool calls, and serial execution continuously accumulates latency.
Around the Ascend 950, the openPangu team optimized quantization, Prefill, and Decode respectively, building an inference deployment system that balances extremely low latency with high concurrent throughput, and also providing referenceable engineering practices for large-model inference optimization on domestic compute platforms.
From HiF8 to the MXFP4 full stack, taking the lead in launching a W4A4C4 collaborative quantization scheme
Based on the low-precision compute capability of the Ascend 950, openPangu built a full-stack low-precision solution covering Huawei's self-developed HiF8, MXFP8, and MXFP4, and on this basis took the lead in launching the W4A4C4 all-4bit MXFP collaborative quantization scheme, further exploring low-bit collaborative optimization of weights, activations, and caches.
The team adopted a mixed-precision strategy: projection layers in the model that are sensitive to precision and are not the main performance bottleneck retain BF16, while the remaining main matrix multiplications and expert computations use low-precision formats.
Among them, Huawei's self-developed HiF8 balances precision and dynamic range through flexible numerical encoding and has achieved lossless precision in measured results; MXFP8 adopts block-wise quantization with a scaling factor shared by every 32 elements, adapting to the numerical distribution of different data blocks. The team also fused normalization, activation, and quantization operations to reduce intermediate data reads and writes and independent operator calls.
For the lower-bit-width MXFP4, the team further proposed the SoScale algorithm, which uses second-order information to search for quantization scales and compensates for errors during block-wise quantization, combined with optional Hadamard rotation to improve quantization precision at low bit widths.
On this basis, the team also applied low-bit quantization to the KV Cache and Lightning Indexer. The non-rotated part of the KV Cache uses low-bit quantization, while the rotated part retains BF16; the Lightning Indexer uses low-bit quantization. Ultimately, KV storage was compressed to 1/4 of its original size, reducing the cache capacity and read bandwidth requirements of long-context inference.
Building on the full-stack low-precision solution, W4A4C4 all-4bit MXFP collaborative quantization further advances low-precision computation to the 4bit level. In Code- and Agent-related evaluations, the self-developed HiF8 and MXFP8 (W8A8C8) had average score differences of +0.4 and +0.36 versus BF16, respectively, achieving losslessness; and the first-launched W4A4C4 scheme also kept the precision loss within 1%.
In terms of deployment architecture, the team adopted a separation of Prefill and Decode, deploying the two stages separately, and then combined hybrid parallelism, shared caching, and whole-graph replay optimization to reduce first-token latency.
Prefill optimization: reducing redundant computation around the KV Cache
In multi-round Agent scenarios, a large number of requests repeatedly carry historical dialogue and task context. This content has often already been computed in previous requests. Reprocessing it every time not only increases the computational overhead of the Prefill stage but also lengthens first-token latency.
Therefore, the openPangu team focused Prefill optimization on the KV Cache, reducing redundant computation and communication waiting through hybrid parallelism, shared caching, and whole-graph replay.
First, hybrid parallelism and multi-stream scheduling.
The team designed parallel strategies based on the computational characteristics of different Attention modules. Sequence parallelism (SP) is used between Transformer layers, DSA uses context parallelism (CP) based on Query Tokens, and SWA uses tensor parallelism (TP) based on attention heads.
On this basis, the team further leveraged multi-stream scheduling to overlap convolution computation with state AllGather, and shared expert computation with routing result ReduceScatter, reducing communication waits and improving compute resource utilization.
Second, building a shared KV cache pool.
The team used KV Offload to save reusable cache blocks to host memory, and built a shared cache pool based on Fusion Pool. Four Prefill nodes each provide 1TB of capacity, ultimately forming a 4TB shared KV cache pool.
With a shared cache pool in place, the next problem to solve is which node should handle a request. To this end, the team designed a cache-aware routing mechanism that considers cache read cost, remaining computation volume, and instance load, comprehensively selecting the execution node to reuse existing cache as much as possible and reduce redundant computation and queuing waits.
Finally, whole-graph replay optimization for short Prefill.
In tests with a target QPS of 4, the team found that 77.3% of requests had fewer than 1024 missed Tokens. This means that after reusing historical KV Cache, a large number of requests have relatively short remaining Prefill sequences. At this point, the computation itself takes less time, and the scheduling overhead caused by per-operator dispatch becomes more prominent.
In response to this characteristic, the team included eligible pure Prefill batches in whole-graph replay, reducing per-operator scheduling overhead through graph mode. In dedicated tests, the single-step speedup for the smallest short Prefill tier reached 3.47x.
The above optimizations were ultimately reflected in multi-turn Agent tests. The team used a 32-card deployment, first sending 2000 requests for warmup, then processing 10156 formal requests, with a target QPS of 4. Ultimately, the client-side average first Token latency was 341.56ms, and the prefix cache hit rate reached 93.74%. The cache hit rate is calculated as the proportion of hit input Tokens.
From parallel computation and shared caching to short-sequence whole-graph replay, openPangu has built a Prefill optimization scheme around KV Cache, reducing redundant computation of historical context and further translating the benefits of cache reuse into lower first Token latency.
Decode optimization: improving both single-request latency and multi-request throughput
Entering the Decode stage, the optimization goals differ again.
With multiple concurrent requests, the system needs to improve overall throughput while ensuring response speed. In single-request ultra-low-latency scenarios, compute resources need to be concentrated as much as possible to reduce task startup, data movement, and synchronization waits.
Therefore, the team adopted different parallel strategies for the two scenarios.
In low-latency, high-throughput scenarios, attention uses data parallelism (DP), with each card independently processing its assigned requests; MoE uses expert parallelism (EP), distributing experts across different devices.
In single-request ultra-low-latency scenarios, tensor parallelism (TP) is used, distributing attention, output projection, and feedforward computation across multiple cards and merging results through AllReduce.
Single-request Decode has a relatively small computational scale, making the overhead from task startup, data movement, and synchronization waits more prominent. To address this, the team focused on reducing memory access overhead through fused Vector computation and enabling independent tasks to execute in parallel.
For example, ConvQuant moves quantization forward to the convolution output stage, reducing intermediate data handoff; ConvRMSNormQuant fuses convolution, normalization, and quantization execution, reducing cross-core reduction overhead; InitRoutingV3 Flash constructs a small routing table within the core, reducing inter-core waits; and SwiGLURotateQuant fuses the activation function, Hadamard rotation, and quantization operations.
For long-context retrieval, the team also designed the QLI MXFP4 pipeline, combining MXFP4 matrix multiplication, BF16 result transfer, and streaming Top-K to optimize the MTP7 Decode scenario.
Multi-stream scheduling was also carefully designed. The team split query, index, and KV preparation into different execution streams based on computational dependencies, and configured Cube and Vector core resources for different branches, allowing computations that can run in parallel to execute simultaneously as much as possible.
On the communication side, the CCU of Ascend 950 handles collective communication tasks. The team replaced the original call with a non-in-place AllReduce that is better suited to the hardware pipeline. In ultra-low-latency tests, the time for a single AllReduce dropped from 20μs to 10μs.
Ultimately, the team achieved two representative sets of results in different scenarios.
In the single-request ultra-low-latency test, using an 8-card deployment with 8192 input Tokens and 1024 output Tokens, with MTP7 enabled, the per-Token generation latency reached 2.03ms, equivalent to generating approximately 493 Tokens per second, with some Queries reaching 1.77ms/Token.

In the multi-request high-throughput test, using a 32-card deployment with 131072 input Tokens and 1024 output Tokens, also with MTP7 enabled, throughput reached 2740 tokens/s/card under forced EPLB configuration.
Generative Recommendation Inference System: Bringing LLM Compute Truly into Business Scenarios
Recommendation systems are core infrastructure for internet platforms. In recent years, Generative Recommendation (GR) has begun introducing large models into the recommendation pipeline, autoregressively generating semantic IDs of candidate items via Beam Search. While this enhances the expressiveness and generation capability of recommendation models, it also imposes higher requirements on inference systems.
Unlike traditional LLM question answering, generative recommendation has more distinctive business characteristics. On one hand, the model needs to explore multiple candidate paths simultaneously through Beam Search—the larger the beam width, the higher the computational cost. On the other hand, the recommendation system must continuously process large volumes of user historical behavior sequences and maintain KV Cache for them, with cache sizes potentially reaching the PB level. Additionally, recommendation businesses have high demands for both response latency and concurrent throughput—ensuring fast return of user requests while maximizing chip resource utilization.
General-purpose LLM inference frameworks struggle to directly meet the needs of generative recommendation.
To this end, the openPangu team has introduced openPangu-GenRec-Infer. Built on the open-source vLLM inference architecture and the Mooncake pooling engine, it designs three specialized modules targeting the computational patterns, scheduling characteristics, and caching requirements of generative recommendation, respectively responsible for inference engine optimization, compute resource scheduling, and large-scale cache management.
The system has been deployed with openPangu in multiple real production systems, achieving over 90% end-to-end acceleration, with several core innovations merged into the open-source community project vLLM-GR for co-development.
Architecture Feature: PD Temporal Disaggregation—Trading Time for Efficiency to Break the SLA Red Line
General-purpose LLMs typically split Prefill and Decode onto different machines, which is "trading space for efficiency." In contrast, openPangu-GenRec-Infer leverages the relatively stable nature of user historical sequences in recommendation scenarios to pioneer a "trading time for efficiency" PD temporal disaggregation architecture.
The system decouples KV computation from KV access along the time dimension into nearline asynchronous parallelism and offline historical reuse: user KVs are precomputed and persisted in advance, and within the millisecond window when a user scrolls to trigger a request, the system directly uses the ready-made cache to start decoding—significantly reducing online latency without complex cross-machine physical hard-splitting.
GR-Engine: Reducing Redundant Computation in Beam Search
Beam Search is a critical computational component of generative recommendation. In traditional implementations, different beams may issue requests separately, independently performing scheduling, preprocessing, and postprocessing, resulting in substantial redundant overhead.
GR-Engine first splits the KV Cache into Prompt KV shared by all beams and Beam KV unique to each beam. During Attention computation, the two parts are executed separately and then merged in blocks via Online Softmax, reducing redundant computation.
In the postprocessing stage, the team changed the decoding process from serial execution per candidate sequence to parallel processing, reducing the waiting time for candidate result handling.
Additionally, the team designed Dynamic Constrained Beam Search: recommendation scenarios cannot "fabricate words out of thin air"—they can only present real, legitimate items that comply with business rules to users.
The system introduces a prefix table to retain only valid paths that can spell out real items at each decoding layer, while breaking the fixed beam width limitation and supporting flexible configuration of dynamic beams (e.g., 128, 256, 512) at each decoding layer according to business needs. This substantially cuts invalid expansions and inference latency while actually improving item recall capability in deep decoding.
To address the problem of massive zero-padding (Padding) wasting compute in traditional batching caused by the wide variance in user historical sequence lengths, GR-Engine adopts Jagged compact tiling with bucketing—like assembling building blocks, variable-length sequences are packed head-to-tail into a single long chain, with only a small amount of zero-padding at the very end of the chain to adapt to static graph shapes, greatly compressing the proportion of invalid computation.
GR-Scheduler: Keeping Limited Compute Continuously Working
Generative recommendation models are relatively small in scale, and the computation per inference may be insufficient to fill the AI Cores on the NPU, potentially leaving substantial idle hardware resources.
GR-Scheduler employs single-card core-limited multi-stream parallelism, partitioning the AI Cores on the NPU into multiple independent partitions, each bound to an inference stream. The scheduler dynamically assigns tasks to idle execution streams based on real-time load.
In tests with 1B-scale models, MatMul Cube utilization improved by 24.7%, and Mul Vector utilization improved by 7.4%.
The team also introduced an asynchronous scheduling mechanism, allowing data from different rounds to be passed directly within the NPU, avoiding the extra overhead of sending data back to the CPU and then re-feeding it into the NPU.
The sampling results are asynchronously returned via an independent data copy stream, enabling CPU-side scheduling preparation to overlap as much as possible with NPU forward computation, reducing device idle time between different inference steps.
This optimization reduces single-step inference latency by 20%.
GR-Cache: Solving the Storage and Transmission Problems of PB-Scale Caching
For generative recommendation, KV Cache is not only temporary data during computation but also an important foundation for reusing user history information.
If caches are still managed according to physical blocks, cache fragmentation and scheduling overhead are likely to occur.
GR-Cache adjusts the cache management granularity from physical blocks to the user dimension, treating each user's complete history sequence as an indivisible cache unit, achieving one-time allocation and one-time eviction. During eviction, the entire user is reclaimed as a unit, avoiding block-level fragmentation and ensuring the continuity and availability of storage space. The KV of the same user can reside completely on one node, creating conditions for affinity scheduling in the subsequent distributed memory pool.
On this basis, the team proposed EKPool, which incorporates Embedding and KV Cache into a unified pooled management framework.
EKPool reduces the redundant overhead caused by independent scheduling by uniformly orchestrating the transmission processes of the two types of caches, further reducing end-to-end latency by 30% to 40%.
For the transmission of discrete Paged KV, the team also designed the LiteTransfer aggregated transmission scheme. LiteTransfer completes the batch transfer of all blocks in each layer in a single call. In the small-packet scenario with a Block Size of 128KB, bandwidth increases by 12%; in the large-packet scenario of 1024KB, bandwidth increases by 34%.
Through the above optimizations, openPangu-GenRec-Infer has achieved significant performance gains on both Ascend A2 and Ascend 950.
On Ascend 950, with the openPangu 1B model and a 128 Beam Width configuration, the end-to-end latency for 1K and 10K sequences dropped to 27ms and 114ms respectively, with end-to-end performance improvements of 93.3% in both cases.
On Ascend A2, under the same configuration, the latency for 1K and 10K sequences reached 46ms and 261ms respectively, with end-to-end performance improvements of 94.4% and 93.4% respectively.

These results indicate that openPangu's optimization is no longer limited to the inference speed of the model itself, but has begun to redesign the inference system around the request patterns, cache structures, and scheduling requirements of real recommendation businesses.
Conclusion
From training to inference, and then to generative recommendation, the joint practice of openPangu and Ascend 950 presents a relatively complete path for software-hardware collaborative optimization.
Behind this is a change worth noting. As model scale continues to expand, competition in AI infrastructure has penetrated into more detailed technical areas such as computational precision, operator design, communication scheduling, and cache management. Chips provide the foundation of computing power, while models and systems need to continuously optimize for hardware characteristics in order to translate theoretical performance into actual efficiency.
In this practice, the whole-network MFU of the 505B MoE model reached 51%, the single-request inference latency reached 2ms/token, and the inference latency for 1k/10k sequences in generative recommendation was reduced to 27ms/114ms. These results demonstrate the engineering potential of collaborative optimization between domestic large models and domestic computing power.
More importantly, the relevant technical source code will be gradually opened in the openPangu community, and some technologies have also been merged into the vLLM-GR open-source project. Technical achievements are beginning to move from one-time performance validation toward community sharing, enabling more developers to reuse, verify, and continue improving them.
For domestic AI infrastructure, the value of such practices ultimately depends on whether reusable and verifiable engineering capabilities can be accumulated. Only by enabling models, software, and chips to form closer collaboration can domestic AI computing power unleash greater value in real applications.
Finally, here are some links for your reference:
openPangu open-source code repository collection:
https://atomgit.com/collections/openpangu/Pangu-Infra
Ascend 950 supernode openPangu low-precision training system and technical report:
https://atomgit.com/openpangu/openPangu-training-system
Ascend 950 supernode openPangu high-performance inference system and technical report:
https://atomgit.com/openpangu/openPangu-inference-system
Ascend 950-affinity generative recommendation inference system and technical report:
https://atomgit.com/openpangu/openPangu-genrec-Infer
CANN large model technical documentation open-source repository: https://atomgit.com/cann/cann-recipes-docs
© THE END
For reprinting, please contact this official account for authorization
Submission or reporting: [email protected]