Skip to content

PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching

Geraldo F. Oliveira, Ahmet Caner Yüzügüler, Renzo Andri, Arash Tavakkol, Mohammad Sadrosadati, Onur Mutlu, Lukas Cavigelli

cs.AR

Abstract

The weights of frontier mixture-of-experts (MoE) large language models (LLMs) exceed the on-package memory capacity of modern accelerators. High bandwidth flash (HBF) addresses this capacity gap by stacking NAND flash dies in the form factor of high bandwidth memory (HBM). However, the sparse and dynamic expert selection of MoE models limits the performance of a demand-driven HBF controller. One possible solution is to prefetch experts ahead of time, as MoE offloading systems do. Our goal is to increase the decode throughput of MoE LLM inference on an HBF-equipped inference accelerator by efficiently prefetching experts from HBF into HBM. To this end, we propose PACER (Prefetching And Caching of Experts under Read disturb). The key idea of PACER is to make expert prefetching resource-aware, so that a prefetch uses only the HBM bandwidth that the inference accelerator leaves idle, the HBM capacity that the KV cache does not occupy, and the flash reads that storing experts in HBM saves. PACER leverages this key idea in software and in hardware. In software, the PACER runtime manages an HBM expert cache with a hint-protected replacement policy, which protects prefetched experts from eviction until the expert kernels of their layer finish. In hardware, the PACER controller comprises (i) a copy-preserving read unit, which serves demand reads from prefetched experts instead of reading these experts from HBF, (ii) an HBM write throttling engine, which throttles the HBM writes of prefetched experts, and (iii) a lifetime control engine, which limits the flash reads of useless prefetches to the flash reads that storing experts in HBM saves.

Create a lesson