DEV Community

Cover image for Run AI models locally - C++ inference engine for consumer hardware (open source)
GitHubOpenSource
GitHubOpenSource

Posted on

Run AI models locally - C++ inference engine for consumer hardware (open source)

TL;DR: Strata is a local AI inference engine built in C++ that packages model weights into tailored memory packs for different hardware setups. It provides both a desktop application and a terminal interface while exposing OpenAI- and Anthropic-compatible endpoints.
Best for: Developers wanting to run large language models locally without relying on cloud APIs.
Repository snapshot: ⭐ 52 019 stars · 🍴 6 025 forks · C++ · MIT
Daily picks: Follow GitHub Open Source on Telegram


What it is

Strata is a C++ inference engine designed to run large language models locally on consumer hardware. It handles model weights, memory packs, and quantization layers automatically, providing both a desktop app and a command line interface.

How it works

Built in C++, Strata downloads appropriate binaries for your specific GPU on first launch. It packages model weights into tailored memory packs designed for different hardware setups, managing complex quantization layers underneath to optimize performance.

Key features

  • Supports NVIDIA, AMD, Intel Arc, and Apple Silicon hardware
  • Provides OpenAI- and Anthropic-compatible APIs for coding tools
  • Includes pre-configured model packs tailored for specific VRAM sizes
  • Offers both a desktop app and a terminal interface via strata launch
  • Bundles automated installer scripts for Linux, macOS, and Windows

Getting started

To install Strata, clone the repository and run the automated installer script for your operating system:

git clone https://github.com/Niko1221/Strata.git
cd Strata
./install.sh
Enter fullscreen mode Exit fullscreen mode

Launch the application using the terminal interface to start serving models locally.

When not to use it

Do not use Strata if your computer lacks the VRAM or memory bandwidth required to load large parameter models, as performance will degrade significantly on underpowered hardware.


Discuss

Which local coding tool do you usually connect your self-hosted models to?

Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.

Top comments (0)