2024

Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads

Cai, Tianle, Li, Yuhong, Geng, Zhengyang et al.

Understand

Large Language Models (LLMs) employ auto-regressive decoding that requires sequential computation, with each step reliant on the previous one's output.

  • This creates a bottleneck as each step necessitates moving the full model parameters from High-Bandwidth Memory (HBM) to the accelerator's cache.
  • While methods such as speculative decoding have been suggested to address this issue, their implementation is impeded by the challenges associated with acquiring and maintaining a separate draft model.
  • In this paper, we present Medusa, an efficient method that augments LLM inference by adding extra decoding heads to predict multiple subsequent tokens in parallel.

Reading the bibliography…