Strata: A 125B Mixture-of-Experts Model That Fits in 12 GB of VRAM

· AI & Models · Local inference · MoE · Expert cache · Speculative decoding

An MIT-licensed engine keeps the always-on weights in VRAM, pins all 24,576 experts in RAM and lets the CPU compute the misses in parallel with the GPU. On one RTX 5070 it holds 60 tok/s at a 262K context; the real entry fee is 66-76 GB of weights and 32-64 GB of RAM.

Strata: A 125B Mixture-of-Experts Model That Fits in 12 GB of VRAM

The trick is not compression. It is routing: each token touches 10 of 24,576 experts.

Executive Takeaway: Strata is an MIT-licensed inference engine that keeps the always-on parts of a 125B mixture-of-experts model in VRAM, pins all 24,576 experts in system RAM, and lets the CPU compute the experts the GPU did not cache — in parallel with the GPU, not after it.

Measured on a 12 GB RTX 5070 with 64 GB of DDR5: 87 tokens/s at 1K context, 60 tokens/s at the full 262K window, and prompt reading near 2,100 tokens/s from 32K to 128K. The catch is that "any consumer hardware" means a recent GPU plus 32-64 GB of RAM and roughly 80 GB of disk.

Strata's desktop app: local chat, files and a live code preview in one window
Strata's desktop app: local chat, files and a live code preview in one window

Niko1221/Strata — official repository

1 · Split the model three ways

One model, three tiers of memory, and a scheduling problem in between.

Strata inherits the ggml/llama.cpp kernel lineage, so the primitives are familiar. What it adds is a placement policy: which weights deserve VRAM, which wait in RAM, and which are read from disk per token.

GPU keeps attention and hot experts

Every extra GB of VRAM holds ~700 more experts

Attention and the linear-attention mixers, routers, shared experts, the output head, the MTP draft layer and the KV cache live in VRAM. Above 64K context only the most-read slice of the KV cache stays there; the remainder streams from RAM.

RAM pins all 24,576 experts

The CPU computes misses while the GPU computes hits

All 512 experts across 48 layers sit pinned in system memory. Cores compute the experts that missed the VRAM cache in place, using AVX-512 and AVX2 kernels, at the same time the GPU works the cached ones — a miss costs bandwidth, not a stall.

SSD holds a 28.8 GB lookup table

A few rows per token, read past the OS cache

The 51B-parameter n-gram embedding table is read unbuffered (--ple-io direct), a few rows per token. This is why the install wants an SSD, and why a first run pulls tens of gigabytes before any token appears.

Speculation: draft three, verify once

2.4-3.2 accepted tokens per 48-layer pass

The model's own multi-token-prediction head drafts up to three tokens and one forward pass over all 48 layers checks them. Prompt lookup adds up to five more when a reply echoes context, which is why code edits gain 6-11% and ordinary prose does not.

2 · Measured on one RTX 5070

Author-reported, one machine: RTX 5070 12 GB, Ryzen 5 7600, 64 GB DDR5-5200, Windows, engine 0.1.26.

Read this as one configuration, not a product-wide claim. It is also the honest argument for the design: the curve stays flat from 32K to 128K, which is exactly where coding agents spend their time.

Output speed decays slowly

Tokens/s, 256 generated tokens per prompt

The 4-bit packs have no 262K row because setup estimates they exceed 64 GB of RAM. Q2_0 loses about 31% of its 1K speed by the end of the window; the larger IQ3_S loses only 13%, from a lower start.

Pack1K32K128K262K
Q2_087.381.873.760.3
IQ2_XS79.676.362.752.8
IQ3_XXS61.958.549.0n/m
IQ3_S52.448.345.5n/m

Prefill is the underrated number

2,171 tok/s at 32K, 1,304 at 262K

Chunked prefill (up to 8,192 tokens) streams next-layer experts over PCIe while the current layer's attention runs. Time to first token follows directly: about 25 s at 32K, under 2 minutes at 128K, 4.5 minutes at 262K.

Terminal monitor: live decode rate, memory split and recent requests
Terminal monitor: live decode rate, memory split and recent requests

Fit is a RAM decision, not a GPU one

32 GB of RAM is the floor; 64 GB is comfortable

The Coder pack keeps 256 of each layer's 512 experts, chosen on code and agent data, so 23 GB of experts fits a 32 GB machine. It trades general knowledge for coding headroom, which is the right trade for an agent loop and the wrong one for research reading.

PackDownloadExperts in RAM
Q2_066 GB~34 GB
IQ2_XS68 GB~36 GB
IQ3_XXS76 GB~43 GB
Coder pruned29.6 GB~23 GB

3 · What "any hardware" leaves out

The support matrix is wider than llama.cpp's and narrower than the tagline.

The download is the real entry fee

66-76 GB of weights before token one

Installation is genuinely one click, but the engine is fetched separately for your GPU family and the model pack is a multi-hour download on average broadband. Add the 28.8 GB embedding table and budget ~80 GB of SSD.

Five ways the setup bites

All five are documented by the project itself

That transparency is a good sign for a ten-week-old repo. It also means the happy path assumes an SSD, a desktop-class CPU and a driver new enough for CUDA 13.

SymptomCause
0.05 GiB/s expert loadTask Scheduler throttle
~10x slower prefillmacOS 15 missing feature
OOM at 262K43 GB experts plus KV
No desktop appIntel Arc: Linux terminal
Unsupported at allIntel Macs

The moat is one kernel deep

2,138 open issues, 10,801 commits, 10 weeks

Mainline llama.cpp shipped its own expert cache (--moe-cache-mib) within two weeks of Strata's front-page launch, and the quantized packs come from third parties. What Strata owns is the placement heuristic, the prefill chunker and the packaging — real work, not a durable moat.

Independent walkthrough: requirements, speeds, license caveats

4 · Should you run it?

Two questions: does your RAM fit the pack, and does your work tolerate 60 tok/s?

Adopt now if the code cannot leave the machine, you already own a 12 GB card and 32-64 GB of RAM, and you want an OpenAI- or Anthropic-compatible endpoint on localhost for Claude Code, Codex or a local agent.

A one-hour evaluation

Install, launch, probe, point one tool at it

Measure your own machine before trusting any table: the project ships a benchmark protocol, and strata launch --plan prints what is missing before it downloads anything.

curl -fsSL https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
strata launch
curl -s http://127.0.0.1:8080/health
export ANTHROPIC_BASE_URL=http://127.0.0.1:8080
Repository card: 51.8k stars, MIT license, one installer per OS
Repository card: 51.8k stars, MIT license, one installer per OS

Wait if any of these is true

The tagline oversells the edges

Wait on a laptop with soldered 16 GB of RAM, on an Intel Mac, on Intel Arc if you refuse the terminal, or if you need multi-user serving — one process, one conversation, batch slots measured in single digits. A hosted API at $0.20 per million tokens is still cheaper than a 76 GB download you use twice.

5 · Verified sources

Every number above traces to one of these.

Niko1221/Strata — repository and README

Engine reference: measured speed, API, tuning flags

How Strata works: the three-tier placement model

Independent walkthrough: hardware, speeds, caveats

中文导读:Strata:12GB 显存跑起 125B MoE,靠的是专家调度

一个 MIT 协议的推理引擎把常驻权重放进显存,把 24,576 个专家全钉在内存,让 CPU 与 GPU 并行计算未命中的专家。单张 RTX 5070 在 262K 上下文下仍有 60 tokens/s;真正的门槛是 66–76GB 权重与 32–64GB 内存。

Primary Sources & References

  1. Niko1221/Strata — repository
  2. Strata engine reference: measured speed and tuning
  3. How Strata works
  4. Independent walkthrough: hardware, speeds, caveats