HAWK: Heterogeneity-Aware KV Cache Transfer for Efficient GPU-NPU Phase-Disaggregated LLM Inference
AuthorsJunhyeok Park, Jungeun Yoon, Kyungmin Kim, Hunsoon Lee, Shinyoung Ahn, Kangho Kim
AffiliationsGeorgia Institute of Technology, Atlanta, USA · Electronics and Telecommunications Research Institute (ETRI), Daejeon, Republic of Korea
HAWK makes it faster and more efficient to move LLM KV caches from GPUs to NPUs in a split-inference system.
Key results
Maximum speedup for heterogeneous KV-cache transfers.
Maximum difference under the same service-level objectives.
Maximum improvement over the GPU-only system.
Maximum improvement over the GPU-only system.
What the paper found
HAWK explores splitting large language model inference across GPUs and NPUs: NVIDIA GPUs handle the compute-intensive prefill phase, while Tenstorrent NPUs handle memory-bound token decoding. The challenge is moving the KV cache between devices whose communication stacks and tensor layouts differ. HAWK establishes a direct RDMA path to device memory, allocates NPU receive buffers to match the NPU’s per-channel layout, and transforms the GPU cache into larger transfer-friendly chunks. That lets the NPU consume the received cache without an expensive post-transfer rearrangement. In tests using Llama 3.1 70B, HAWK made KV-cache transfers up to 27.69 times faster than host-staged transfers. Under the same service-level objectives, the GPU–NPU system stayed within 7.88% of GPU-only performance while delivering up to 1.26-fold higher power efficiency and 2.03-fold higher cost efficiency. The results show how layout-aware direct transfer can make heterogeneous, phase-disaggregated inference practical without giving up most of a GPU-only system’s serving performance.
Original abstract
Large language model (LLM) inference exhibits distinct computational characteristics across its two phases: prefill is compute-intensive, whereas decode is more memory-bound. As a result, AI accelerators achieve varying levels of efficiency across the two phases. GPUs are well suited to prefill, but are often underutilized during decode. By contrast, NPUs can utilize their compute resources more effectively during decode. Motivated by this observation, we explore a heterogeneous architecture that integrates GPUs and NPUs, mapping prefill to GPUs and decode to NPUs to achieve high performance and efficiency. However, realizing such heterogeneous integration is challenging because LLM phase disaggregation requires KV cache transfer from prefill to decode (that is, from GPUs to NPUs), which is complicated by differences in inter-device communication mechanisms and KV cache tensor layouts. To address this, we propose HAWK, a transfer mechanism that enables rapid KV cache transfer across heterogeneous devices. HAWK establishes a remote direct memory access (RDMA) path for direct cross-device transfers while handling inter-device tensor layout discrepancies as part of the transfer process. In particular, HAWK allocates tensor-layout-aware RDMA buffers on the NPU side to match the target tensor layout. Leveraging these buffers, HAWK orchestrates data transfer from a conventional contiguous GPU RDMA buffer to the corresponding NPU buffers, allowing transferred tensors to be consumed directly without additional data rearrangement while maintaining transfer efficiency. We implement and evaluate HAWK on a system built with commercially available GPUs and NPUs, demonstrating performance within 7.88% of a GPU-only system under the same SLO constraints while achieving up to 1.26$\times$ higher power efficiency and 1.72$\times$ higher cost efficiency.
Read the original paperMore in AI Hardware
Browse all 37 papers →A Hybrid GPU and Processing-Near-Memory Architecture with Shared DRAM for Efficient Prefill-Decode Disaggregation
Sanghyeok Han, Inseong Choi, Byungkuk Yoon, Gyeonghwan Park, Jae-Joon Kim
DuoPD pairs GPUs with memory-side processors to run LLM prefill and decoding together and improve inference throughput.
Meter-scale quantum interconnects between large quantum processors
Neereja M. Sundaresan, Nicholas Cotaj, Yadav Prasad Kandel, Eric Lewandowski, Christian Robert Longton, Yves Martin, Jae-woong Nah, Kathryn Pooley, Martin Sandberg, Michael Scanlon, Chi Xiong, Emanuil Sashev Yanev, David Abraham, Abhinandan Antony, Vincent Arena, Nicholas Bornman, Khanh Dang, Oliver Dial, Christopher Guarino, Gabriel Haspil, Jared Hertzberg, Kentaro Heya, Swetha Kamlapurkar, Michael Karschner, George Keefe, Eric Liniger, Laura Luo, Thomas G. McConkey, David Olson, Jason Orcutt, Dmitry Ovchinnikov, Timothy Phung, Sankeerth Rajalingam, Michael Selvanayagam, William Shanks, Dongbing Shao, Abigail Shearrow, Adam Stabile, Jiri Stehlik, Joseph Suttle, Jeng-Bang Yau, Eric Zhang
Researchers connected two large quantum processors over nearly a meter and used the links to transfer states and create entanglement.
AI as a Compiler: Compiling Triton kernels without the Triton compiler
François Costa, Charly Castes, Thomas Bourgeat, Azalia Mirhoseini
An LLM learns to replace parts of the GPU compiler stack by translating Triton code directly into fast, verified PTX kernels.