PowerInfer

Research inference engine that splits hot and cold neurons between GPU and CPU to run LLMs faster.

Open SourceSelf HostedOffline CapableGPU Required (4GB+ VRAM)
0.0 (0)

About

Started at the IPADS lab of Shanghai Jiao Tong University, PowerInfer speeds up local LLM inference by exploiting how, in models with ReLU-style activations, a small set of hot neurons fire for almost every token while most fire rarely. Offline profiling finds the hot set, which stays in GPU memory, the CPU handles the rest, and small learned predictors skip neurons expected to stay idle. The authors measured up to about 11x the speed of llama.cpp for a ReLU Falcon 40B on one RTX 4090. The engine is a C++ fork of llama.cpp with CUDA and ROCm backends, built with CMake on Linux or Windows machines with AVX2, and it reads special PowerInfer GGUF files bundling predictor weights; published ones cover ReLU Llama 2, Falcon 40B, ProSparse Llama 2 and Bamboo 7B, while ordinary GGUF models run without the gain. A --vram-budget flag caps GPU use, and a smallthinker folder adds an engine for SmallThinker sparse MoE models on phones and boards like Raspberry Pi 5. MIT licensed. The last code change landed in July 2025 and the repo moved under Tiiny AI's organization, so treat it as an experimenter's tool, not a production server.

Should you use PowerInfer?

Pick it when

You run a large ReLU-sparse model on a single consumer GPU with limited VRAM and want to exploit activation locality, keeping hot neurons on the GPU and cold ones on the CPU, to beat plain layer offloading.

Look elsewhere when

Skip it for most current models: its headline gains are reported for ReLU-based models, and many popular LLMs use other activations. llama.cpp or Ollama support far more models, and its setup is rated hard.

Alternatives to PowerInfer

  • llama.cpp

    Supports a far wider range of models and backends with simpler setup, without PowerInfer's sparse hot and cold neuron split.

  • KTransformers

    Also hybrid CPU and GPU but tuned for huge MoE models like DeepSeek and Qwen3, and it needs a 24 GB GPU versus 4 GB here.

  • ExLlamaV2

    Fast on consumer NVIDIA GPUs when a quantized model fits in VRAM, but the repository is archived and it has no CPU split.

  • BitNet (bitnet.cpp)

    Needs no GPU at all for 1-bit BitNet models, a different route to big models on cheap hardware, but limited to ternary checkpoints.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Advanced (4/5)
License
MIT
Minimum VRAM
4 GB
Added
Apr 3, 2026

Tags