PowerInfer

A high-speed LLM inference engine for consumer GPUs that exploits sparse neuron activation patterns to run large models on commodity hardware.
Ask this paper
Hot/cold neurons: Analysis shows that a small fraction of "hot" neurons activate on most inputs while the majority of "cold" neurons activate rarely - a power-law pattern across many LLMs.
GPU-CPU hybrid: Hot neurons are preloaded onto the GPU for fast access, while cold neurons live on the CPU and are computed lazily, dramatically reducing GPU memory pressure.
Reduced memory + transfer: This split reduces both GPU memory demand and the CPU-GPU data transfer that typically dominates hybrid inference cost.
11x speedup over llama.cpp: Achieves up to ~11x faster token generation than llama.cpp on a single consumer GPU for OPT-175B-class models - a step-change for local deployment.
Abstract
This paper introduces PowerInfer, a high-speed Large Lan- guage Model (LLM) inference engine on a personal computer (PC) equipped with a single consumer-grade GPU. The key underlying the design of PowerInfer is exploiting the high locality inherent in LLM inference, characterized by a power- law distribution in neuron activation. This distribution indi- cates that a small subset of neurons, termed hot neurons, are consistently activated across inputs, while the majority, cold neurons, vary based on specific inputs. PowerInfer exploits such an insight to design a GPU-CPU hybrid inference en- gine: hot-activated neurons are preloaded onto the GPU for fast access, while cold-activated neurons are computed on the CPU, thus significantly reducing GPU memory demands and CPU-GPU data transfers. PowerInfer further integrates adaptive predictors and neuron-aware sparse operators, opti- mizing the efficiency of neuron activation and computational sparsity. Evaluation shows that PowerInfer attains an average token generation rate of 13.20 tokens/s, with a peak of 29.08 tokens/s, across various LLMs (including OPT-175B) on a single NVIDIA RTX 4090 GPU, only 18% lower than that achieved by a top-tier server-grade A100 GPU. This signifi- cantly outperforms llama.cpp by up to 11.69× while retaining model accuracy.