Reproduce “Flash-LLM: Enabling Cost-Effective and Highly-Efficient Large Generative Model Inference with Unstructured Sparsity” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

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

About this paper

Haojun Xia, Zhen Zheng, Yuchao Li, Donglin Zhuang, Zhongzhu Zhou, Xiafei Qiu, Yong Li, Wei Lin and 1 more

Flash-LLM enables cost-effective and highly-efficient inference of large generative models by effectively supporting unstructured sparsity on modern GPU tensor cores. This approach achieves kernel-level speedups up to 2.1x over dense baselines and boosts end-to-end LLM inference throughput by up to 3.8x, allowing larger models to run on fewer GPUs.

Key insights

  • The "skinny" matrix multiplications prevalent in LLM inference are often bottlenecked by global memory bandwidth, not the arithmetic capacity of tensor cores.
  • By loading sparse data from global memory and reconstructing it as dense in fast on-chip shared memory, the system can alleviate the global memory bottleneck, even with redundant zero-filling.
  • Careful software pipelining and ahead-of-time data reordering are critical to efficiently map irregular sparse computations onto highly structured tensor core hardware, balancing memory access and computation stages.

Summary by alphaXiv.

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