OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Infrastructure & Serving

Powerinfer

Powerinfer is a public, MIT-licensed C++ engine for running and serving large language models locally. It uses activation locality to divide computation between CPU and GPU: frequently active neurons are placed on the GPU, while other neuron computation is handled by the CPU.

Independent OpenViST project profile, based on linked sources.

Powerinfer — OpenViST project profile in AI Infrastructure & Serving.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Powerinfer when you want local inference and have a compatible model and computer. Its CPU/GPU approach is relevant when GPU memory is a constraint, though actual performance depends on the model and hardware.

Who it is for

  • Developers building local LLM inference or serving into applications.
  • Users evaluating CPU/GPU inference on a personal computer with a supported model and hardware.

Documented uses

  • Run supported LLMs locally rather than relying on remote inference.
  • Serve local model inference or use the repository’s server and batched-generation examples.
  • Explore hybrid CPU/GPU inference based on neuron activation locality.
Before you choose

Requirements & limits

The repository is public and MIT-licensed. The project reports testing on Linux and Windows with x86-64 AVX2 CPUs, with or without NVIDIA GPUs, and on Apple M-series Macs using CPU inference only.

  • The project’s listed tested environments require x86-64 AVX2 on Linux or Windows; Apple M-series support is described as CPU-only.
  • Powerinfer supports llama.cpp model weights for compatibility, but the repository says those weights do not receive a performance gain.
  • The project describes support for specific model families and popular ReLU-sparse models; verify model compatibility before planning a deployment.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Build PowerInfer with CMake

Prepare a PowerInfer build for an NVIDIA GPU, AMD GPU, or CPU-only system.

Before you start

  • CMake 3.17 or later.
  • Python 3.8 or later and pip 19.3 or later.
  • For the AMD GPU build: ROCm compiler paths and the GPU architecture name, which the README says can be obtained with rocminfo.

Steps

  1. Clone https://github.com/Tiiny-AI/PowerInfer, change into the PowerInfer directory, and install the Python helper dependencies with the command below.

    Documented command
    pip install -r requirements.txt
  2. From the project root, configure the CMake build for your hardware: NVIDIA: cmake -S . -B build -DLLAMA_CUBLAS=ON; AMD: set CC and CXX to the ROCm clang compiler paths and use cmake -S . -B build -DLLAMA_HIPBLAS=ON -DAMDGPU_TARGETS=gfx1100, replacing gfx1100 with your GPU architecture; CPU-only: `cmake -S . -B bu

  3. Build with cmake --build build --config Release for NVIDIA or AMD, or cmake --build build for CPU-only.

Expected outcome

A build is configured for the selected hardware and the documented CMake build command has been run.

Guide limitations

  • The AMD example requires replacing the sample gfx1100 architecture with the system's GPU architecture.
  • This guide covers setup and build only; it does not establish that a build succeeded or run inference.
Source-based practical guide

Run local inference with a PowerInfer GGUF model

Generate text locally with PowerInfer using a PowerInfer GGUF model, with an optional GPU VRAM budget.

Before you start

  • A built PowerInfer executable at ./build/bin/main (or the documented Windows executable path).
  • A PowerInfer GGUF model file; the README links to available model repositories on Hugging Face.
  • For the documented commands, a prompt, output-token count, and thread count.

Steps

  1. Obtain a PowerInfer GGUF model from one of the model repositories linked in the README, and note its file path.

  2. Run ./build/bin/main -m /PATH/TO/MODEL -n $output_token_count -t $thread_num -p $prompt, substituting the model path, output-token count, thread count, and prompt.

  3. To limit GPU VRAM use instead, add --vram-budget $vram_gb to the command, substituting the desired budget in GB.

  4. For Windows, use the documented executable form .\build\bin\Release\main.exe -m .\MODEL_PATH -n 128 -t 8 -p "Your prompt"; add --vram-budget 8 if using the documented budget example.

Expected outcome

PowerInfer is invoked for CPU-only or CPU-GPU hybrid inference and is instructed to generate the requested number of tokens; the optional flag sets a GPU VRAM budget.

Guide limitations

  • The documented inference examples use PowerInfer GGUF models; the README says dense GGUF support is limited.
  • CPU-GPU hybrid inference automatically offloads dense activation blocks to GPU and then splits and offloads FFN when possible.
  • The README states that using llama.cpp model weights is supported for compatibility but provides no performance gain.
COMPARE OPTIONS

Compare options for Model inference and serving

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
PowerinferRun supported LLMs locally rather than relying on remote inference.Self-hostedThe repository is public and MIT-licensed. The project reports testing on Linux and Windows with x86-64 AVX2 CPUs, with or without NVIDIA GPUs, and on Apple M-series Macs using CPU inference only.
MorphingdbImport a libtorch model and create predictions from values in a PostgreSQL table.Docker, Linux, Self-hosted, ServerThe README documents a Docker image and a build-from-repository option, followed by connecting to PostgreSQL and enabling the pgdl extension.
Gateway — pyadavSend chat-completion requests to a provider through a common server endpoint.ServerThe repository is public and identifies the project as Apache-2.0 licensed. README installation instructions include binaries, platform package managers and Docker.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
7 October 2026
Original website title
Tiiny-AI/PowerInfer · Official homepage title · retained in its source language