Reproduce “DAK: Direct-Access-Enabled GPU Memory Offloading with Optimal Efficiency for LLM Inference” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Shouxu Lin, Zhiyuan Guo, Jiaxin Lin

A framework named DAK optimizes large language model inference by enabling GPUs to directly access remote host memory, circumventing local HBM staging. This approach achieves performance improvements of up to 3x on NVLink-C2C and 1.8x on PCIe systems compared to prefetching methods, effectively leveraging aggregate memory bandwidth for LLM inference.

Key insights

  • Direct GPU access to remote memory fundamentally outperforms prefetching-based approaches by isolating data paths and achieving true bandwidth aggregation.
  • Optimal offloading requires considering the distinct memory- or compute-bound characteristics of individual operations, rather than applying a uniform ratio.
  • Careful management of GPU-to-host memory transfers, including congestion control and multicast for uncacheable memory, is critical to avoid performance degradation and leverage full system bandwidth.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.