Explainer
How Strata Revolutionized Local AI
Most local benchmarks measure how fast a model writes. Strata is built around how fast it reads, which is how a 125B model runs on a small GPU.

Key takeaways
Strata runs Qwen3.8-Flash-Next, a 125B mixture-of-experts model, by keeping the experts in system RAM and streaming them to the GPU in large chunks while it reads a prompt. On the paper's RTX 5070 12GB measurements, a 32K prompt took 55.3 seconds to read and a 256-token answer took about 2.7 seconds to write. The same placement plan is what lets a small GPU start. The PC still has to hold the experts.
In this article
- A model that only touches 2 percent of itself
- Why prefill matters more than tokens per second
- Decode and prefill run in opposite directions
- How Strata differs from vLLM and llama.cpp offloading
- One design for Macs, the DGX Spark and discrete GPUs
- Mixing GPUs works, within one vendor
- Why Pascal and Volta cards are useful again
- What we couldn’t verify
Most local AI benchmarks measure how fast a model writes. Strata, an engine built for a single mixture-of-experts model, is designed around how fast it reads, and that one choice explains why the same design runs on a gaming PC, a Mac, a DGX Spark and a stack of mismatched GPUs.
On an RTX 5070 with 12GB of VRAM, a 125-billion-parameter model takes 55.3 seconds to read a 32,000-token prompt before it writes a word. Writing a 256-token answer at 4K context takes about 2.7 seconds. That gap is the problem Strata is built around. It’s an open-source inference engine with a project site and a September 2026 paper, “Running a 125-Billion-Parameter Model on a Normal PC.”
Strata doesn’t try to be a general engine. “Strata is an inference engine written for this one model,” the paper says. The model is Qwen3.8-Flash-Next, a mixture-of-experts (MoE) design with 125B parameters, 6B of them active per token, and a smallest good-quality file of 66GB. The engine is written around “the exact shape of this model and this kind of PC, so that the GPU, the CPU, the RAM and the PCIe link are all busy with the work each is best at, at the same time.”
The numbers below come from the paper, the repository docs or community reports, and each one is labeled. Where we’re interpreting rather than reporting, we say it’s our read.
Try gpus before you buy on Vast.ai.
A model that only touches 2 percent of itself
Strata’s design depends on how sparse this model is. According to the paper (§2), it has 48 layers. Thirty-six are Gated DeltaNet layers, which keep a fixed-size state instead of a growing cache. The other 12 are sparse attention layers that attend to about 2,048 selected positions no matter how long the context is. Each layer has 512 experts and picks 10 per token, so “a token touches only 2% of the expert weights.” A 28.8GB n-gram table is indexed by the last three token ids, “so its rows are known before they are needed,” which lets Strata prefetch them from the SSD a step ahead.
The paper’s byte count sums it up: “The GPU-resident part is about 3.5 GB; the expert traffic, 0.66 GB per token, is the quantity the design is organized around.”
Where each part of the model lives on the paper’s reference machine, an RTX 5070 (12GB) with 64GB of DDR5.
On that machine, VRAM holds the dense weights (about 3.3GB), the draft layer (0.8GB), the KV cache and state (0.3 to 3GB), and an expert cache in whatever space is left, about 4,500 of the model’s 24,576 experts. System RAM holds “all 24,576 experts in one pinned (page-locked) arena, so the CPU can compute any of them in place and the GPU can pull any of them over PCIe by DMA.” Expert transfers ride PCIe 4.0 x16 at about 26GB/s, and the SSD serves the memory-mapped n-gram table at 16 row reads per token.
Why prefill matters more than tokens per second
At long context, reading takes far longer than writing
In the paper’s measurements (Table 4, RTX 5070, Q2_0), time to first token is 2.7 seconds at 1K tokens, 6.7 seconds at 4K, 55.3 seconds at 32K, 114 seconds at 64K, 237 seconds at 128K and 524 seconds at 262K. Generating 256 tokens at 4K takes about 2.7 seconds at 94.6 tok/s. Our read: on a 32K prompt, reading takes about 20 times as long as writing the answer, so a faster decoder barely changes what using the model feels like.
Left, time to first token from the paper, measured with older 2,048-token chunks. Right, current prompt speed from the maintainers’ table (engine 0.1.26, same GPU, 8,192-token chunks). The two panels use different engine versions and shouldn’t be compared directly.
Prompt speed also stays nearly flat as context grows, because the sparse attention reads a bounded set of positions. The paper measured 539 tok/s at 4K and 496 at 262K. The maintainers’ current table shows the same plateau at a higher level: 536, 1,299, 2,171, 2,126 and 2,107 tok/s at 1K, 4K, 32K, 64K and 128K. At 32K, that’s about four times the paper’s figure, and time to first token there is now about 25 seconds instead of 55.
Long context still has a cost. Context takes VRAM, and VRAM is expert slots. At 262K only about 1,600 experts fit instead of 4,500, and decode drops from about 95 to about 56 tok/s, according to the paper.
Agents re-read constantly
Coding agents re-send their growing context on almost every step. The paper’s §7 is blunt about it: “Today every request processes its whole prompt again. Saving the recurrent state at the end of each turn … would turn a 30-second re-read of a long chat into a fraction of a second. For agents this is the largest single improvement available.”
That idea later shipped as the conversation cache, described in DETAILS.md. It keeps up to six checkpoints in RAM, about 118MB each, taken at every assistant turn and every 16K tokens. A system-prompt checkpoint is kept permanently, alternating sub-agent conversations can be parked and resumed, and document prefixes can be pinned, so “20 questions cost one read of the document.” Strata even pins the billing-header stamp that Claude Code changes on every request, so the shared prefix stays cacheable. The model helps here: because the DeltaNet state has a fixed size, checkpoints are cheap.
Prefill is where offloading can pay for itself
This is the central idea. During decode, one token touches 10 experts per layer, so shipping a missed expert over PCIe means paying the full transfer cost for a tiny amount of math. During prefill, a chunk of thousands of tokens uses every expert many times. In the paper’s words, “With that many tokens every expert is used many times, so the right place to compute is the GPU.” That makes chunk size the main lever, and the docs show it.
An 8GB RTX PRO 2000 Laptop reading a 29,854-token prompt at four chunk sizes.
Release 0.1.13 moved to 8,192-token chunks and quantized MMQ kernels. On an RTX 5070 with a 32K prompt, that took Q2_0 from 572 to 1,290 tok/s and IQ3_S from 383 to 1,208, with “output speed unchanged.” The --prefill-head-alias option, documented in PREFILL_HEAD_ALIAS.md, shares VRAM between the output head, which only decode needs, and the prompt buffers, which only prefill needs, because the two “never work at the same time.” On the 8GB laptop card, chunks of 256, 512, 1,024 and 2,048 tokens read at 185.5, 292.5, 442.9 and 667.1 tok/s. The cost is about 0.6 to 0.75 seconds extra on reads of 512 tokens or fewer.
The planner also adapts to slow storage. On an RTX 3060 with SATA-emulated 450MB/s storage, it dropped from 8,192-token to 3,840-token chunks and raised a 20,400-token prompt from 334 to 822 tok/s, while drive reads fell from 26.1 to 2.7GB. For short prompts, STRATA_PREFILL_CPU_SHARE=auto has the CPU compute rarely used experts while the GPU handles the rest. That cut prompt time by 28 to 34 percent at 512 tokens and 20 to 26 percent at 1,000 tokens on an RTX 3060, a P100 and an RTX 5070.
Our read is that many of Strata’s prefill features exist to make the chunk bigger without taking space from the expert cache. That includes the byte-sized streaming ring, the head alias, the chunk planner and borrowing cache slots as buffers.
Decode and prefill run in opposite directions
During decode, missed experts are mostly computed by the CPU where they sit. During prefill, they all stream to the GPU.
During decode, each layer has three workers. The GPU runs the mixer and router, then writes the 10 chosen expert ids into pinned host memory, which the paper calls a “doorbell.” The CPU “spins on that doorbell instead of waiting on the driver” and splits the work three ways. Experts already cached in VRAM run on the GPU. A share of the misses is copied to the GPU by its copy engine: 55 percent for i-quants and 20 percent for Q2_0, “whose CPU needs the RAM bandwidth itself.” The CPU computes the rest in place in RAM, and the GPU sums the results. “The whole 48-layer pass is one captured CUDA graph.”
The cache adapts as you work. It starts from a recorded routing profile, then every four rounds swaps in up to 96 experts the current conversation keeps using. On a 12GB card at 4K, that raises the VRAM hit rate from 50 percent for a static cache to about 72 percent.
Speculative decoding is exact. The model’s own draft layer proposes up to three tokens, and one pass verifies them. The output is “identical, token for token, to plain greedy decoding,” and speed rises 1.6 to 1.8 times, from 47–57 to 82–92 tok/s at 4K. The work is also evenly balanced. At 4K, a 34.3ms round splits into 14.6ms on the GPU, 13.4ms of CPU expert work, 2.0ms of drafting and 4.3ms of everything else. The paper says “no single component upgrade doubles the speed.”
Prefill reverses the flow. The uncached experts for each layer stream from the pinned arena over PCIe while the current layer’s attention runs, then the GPU dequantizes them and multiplies them across the whole chunk.
Try gpus before you buy on Vast.ai.
How Strata differs from vLLM and llama.cpp offloading
The paper doesn’t claim CPU expert compute or expert caching as new ideas. It cites Fiddler, KTransformers, MoE-Infinity, Pre-gated MoE and PowerInfer as related work. Its contribution is a specific combination tuned to one model. Its only architectural criticism of general engines is that running the rest of the model from RAM with something like llama.cpp “works but leaves most of the machine idle most of the time.”
vLLM’s --cpu-offload-gb, as vLLM’s offload docs describe it, puts a chosen amount of weights in pinned CPU memory. The GPU reads them directly over PCIe through unified virtual addressing (UVA), loading them on the fly in every forward pass. What gets offloaded is fixed at startup, either by size or by parameter type such as experts. For MoE models, a vLLM forum thread says all experts must be present at startup, with no on-demand loading of only the routed ones. The offloaded weights travel to the GPU, and the GPU does all the math.
Our read: during decode, a UVA-style offload pays PCIe bandwidth for every offloaded byte on every pass, even though a token uses about 2 percent of the experts. Strata avoids most of that traffic by computing misses next to the RAM and caching what the conversation actually uses.
| Strata | vLLM UVA offload | llama.cpp static offload | |
|---|---|---|---|
| What’s offloaded | All experts in a pinned RAM arena; VRAM holds dense weights plus an expert cache | A chosen number of GB, or chosen parameter types | Chosen layers or tensors (-ngl, --override-tensor) |
| Placement | Adaptive per expert (96 swapped every 4 rounds) | Static after startup | Static (our read) |
| Decode misses | CPU computes in place, plus a DMA share to the GPU, alongside the GPU | GPU reads weights over PCIe every pass | CPU computes its assigned tensors (our read) |
| Prefill | Streams experts to the GPU in chunks up to 8,192 tokens | Same mechanism as decode | Not covered in Strata’s docs |
| Selective expert loading | Yes, through the cache and miss routing | No, all experts present at startup | n/a |
| Scope | One model, one PC | General multi-model, multi-user serving | General engine |
| Head-to-head with Strata | n/a | None published | Mac only (maintainers) |
To be fair to vLLM, it’s a general serving engine that handles batching, many models and many users, while Strata runs one model on one PC. No one has published a Strata-vs-vLLM benchmark, so there’s no speed ratio to report.
The only published head-to-head is against llama.cpp on Apple Silicon, measured by the maintainers and documented in MAC.md. On an M5 Max with 128GB and a Q2_0 file, llama.cpp decoded at 56.6 tok/s and Strata at 107.9 to 108.2. Prompt reading at 4K and 32K was 887 and 809 tok/s for llama.cpp, against about 1,430 and 1,460 for Strata. On an M4 Mac mini with 32GB, where Strata streams from the SSD and llama.cpp ran CPU-only, decode was 6.3 against 14.1 tok/s, and a 4K prompt read at 21.2 against 93.6 tok/s. With a UD-Q6_K_XL file, llama.cpp Metal “does not run (Insufficient Memory),” while Strata streams it. On output quality, mean KL divergence against llama.cpp was 0.022, “below the 0.058 that llama.cpp’s own CPU and GPU builds differ by.”
Strata and llama.cpp on an M5 Max and an M4 Mac mini, as measured by the Strata maintainers.
One design for Macs, the DGX Spark and discrete GPUs
Our read, based on the docs, is that Strata is really a placement plan. It decides what lives in fast memory, what gets computed next to slow memory and what streams. The hardware only changes what each tier costs.
| Platform | How Strata runs there | Measured |
|---|---|---|
| NVIDIA and AMD discrete GPUs | “The same engine, compiled for each” (CUDA or HIP) | RTX 5070 figures above (maintainers) |
| Apple Silicon (macOS 15) | “The NVIDIA kernels are replaced by Metal ones, and the host code and the server are the PC’s”; experts read in place from the mapped file | M5 Max, Q2_0: 119.5 tok/s decode at default settings (maintainers) |
| DGX Spark | Experts held once in the shared 121.6GB; --mmap-experts makes the file’s pages the only copy |
IQ3_S: 1,296 / 1,680 / 1,735 tok/s prompt at 4K / 16K / 32K; 45.5–46.5 tok/s decode |
| Strix Halo, Linux iGPUs | Cache sized from “what Linux can give back” (MemAvailable minus 6 GiB) |
DeepSeek-V4.1-Flash engine: 214–233 tok/s at 4K on 128GB |
On unified memory the copy tier disappears, but the placement plan stays the same.
On Macs, a compatibility layer maps CUDA runtime calls onto a small Metal runtime. If the experts exceed 60 percent of the memory Metal will keep resident, they stream from the SSD with read-ahead. A repacked .experts file makes each expert a single SSD read, which is worth about 17 percent faster decode and 30 percent faster prompts on an M4 with 32GB.
DGX Spark is available on Vast.ai.
On the DGX Spark, the Linux guide puts it simply: “The GPU’s memory and the CPU’s are the same 121.6 GB, so a model’s experts are held once. With --mmap-experts there is one copy: the model file’s pages, which the GPU cache uses.” All 24,576 experts fit in the cache. The figures in the table come from one Spark on October 27, 2026, running the 0.2.7.1 release candidate with the recommended --prefill auto:32768. Decode there is limited by “about 930 kernel launches per token,” and the Q2_0 packs aren’t available because their CPU kernels are x86-only. The unified-memory sizing for Strix Halo and other integrated GPUs follows NVIDIA’s DGX Spark Porting Guide.
Mixing GPUs works, within one vendor
In a layer split, each card has its own cache and host RAM holds one shared expert arena.
According to MULTI_GPU.md, Strata’s layer split is pipeline parallelism, “not tensor parallelism.” Each card gets a contiguous range of layers with its own copy of the dense weights, its own KV cache and an expert cache for its layers, so “two cards hold about twice the experts.” Host RAM holds the expert arena once for all cards, and the CPU computes whatever no card holds. Cards hand off a few hundred KB once per verify window, so “no NVLink or peer-to-peer access is needed, cards on x4 or x1 slots work.” The auto mode tries every placement for two to four cards, puts the faster card last and gives unequal cards layers according to their room for experts.
Old and new NVIDIA cards can share a model. Any Pascal or Volta card moves the model onto a CUDA 12 engine. An RTX 50 card on that engine only gets a warning, but because CUDA 12.8 builds crashed on long prompts, the docs advise keeping it on its own model. AMD cards can split a model among themselves over HIP. Community members, each reporting from one machine, have run two P40s at 35 tok/s decode, two MI50s at 50 tok/s, P100 pairs, and two Quadro M6000s at about 22 tok/s. That last figure is unverified.
What doesn’t work is just as clear. NVIDIA and AMD cards can’t share one model, because “an engine drives one make of card.” Intel GPUs can’t join a split, and cards under 8GB get a warning. The docs are frank about the payoff, too: “A split can add capacity without adding speed.” An opt-in split-serving mode lets one card read the prompt while another writes the answer, sharing one expert arena in /dev/shm. The idea came from community member @MarcoTool’s RTX 3070 plus two MI50s. On two RTX A6000s, it was 4 to 48 percent slower than a layer split.
Why Pascal and Volta cards are useful again
“CUDA 13 dropped Pascal and Volta and cannot compile for them,” the docs note, so Strata’s setup keeps a second engine built with CUDA 12.9 and picks it per model based on the oldest card. Each family gets its own workarounds. The P100 uses an emulated, bit-exact __dp4a. The P40 runs BF16 through fp32, since “cuBLAS has no BF16 GEMM there,” and the V100 runs BF16 projections on FP16 tensor cores.
The maintainers own one P100. “Every other path is compile-checked and unit-tested,” and most numbers come from the community. Community members report 37 to 38 tok/s decode and 464 to 474 tok/s prompt reading at 7K on a P40 with STRATA_DENSE_F32=1, and 1,123 to 1,251 tok/s prompt reading on a V100-32GB. The maintainers measured their P100 going from 36.6 to 41.8 tok/s decode with its tuning switches.
Our read on why these cards work: the GPU only has to hold the roughly 3.5GB dense part plus a cache, and the paper says the cache’s “size matters more than its speed. Every extra gigabyte of VRAM holds about 700 more experts.” That turns cheap 16GB to 24GB datacenter cards into a lot of expert slots. There’s a floor, though. A 2GB GT 1030 “cannot hold any of the model,” and the docs recommend at least 12GB.
What we couldn’t verify
Several limits apply to everything above. There’s no Strata-vs-vLLM benchmark, so that comparison is architectural and comes from vLLM’s docs and forum. The llama.cpp numbers are Mac-only and were measured by Strata’s maintainers, and describing llama.cpp’s offload as static placement is our read, not a claim Strata makes. The paper predates the 8K-chunk and MMQ work, so its prefill figures are lower than the current docs. Most old-GPU and multi-GPU figures are single-machine community reports, and the paper itself measured only the RTX 5070.
Strata also targets specific models: Qwen3.8-Flash-Next, plus a separate DeepSeek-V4.1-Flash engine. It isn’t a drop-in general engine. We read the paper and the key docs in full, but the longer docs, including DETAILS.md, AMD_HIP.md and COMMUNITY_BENCHMARKS.md, only in part. Check the live repository before quoting any figure.
What Strata shows is that the trick isn’t one clever kernel. It treats inference as two different problems. Decode is starved for memory bandwidth, so missed experts get computed where they live. Prefill needs compute, so experts stream to the GPU in chunks big enough to make each PCIe transfer worthwhile. Add a cache that follows the conversation and one that avoids re-reading, and the same plan holds whether memory is split across PCIe, unified in a Spark or a Mac, or spread across old and new cards. If your local AI feels slow, check how fast it reads, not just how fast it writes.
Buying advice
Our GPU picks for local AI
Best overall
RTX 3090Best budget
RTX 5060 Ti 16GBFastest consumer GPU
RTX 5090Best for multi-GPU builds
R9700
We may earn a commission when you buy through links on this page. It never changes what we recommend. How we make money
Frequently asked questions
What is Strata?
Strata is an open-source local inference engine and desktop app. It serves Qwen3.8-Flash-Next, with a separate engine for DeepSeek V4.1-Flash and support for Qwen3.6 35B-A3B, and it exposes an OpenAI-compatible API at http://127.0.0.1:8080/v1.
Can a 12GB GPU run Qwen3.8-Flash-Next with Strata?
Yes, as a cache, not as the place the model lives. Strata's notes pin all 24,576 experts in system RAM and use leftover VRAM for the experts the conversation uses most. Their published 12GB measurements used an RTX 5070 with 64GB of RAM. The Q2_0 pack is a 66GB download and about 34GB of experts plus about 6GB.
What does a small-GPU Strata PC need besides the graphics card?
System RAM for the full expert set, and an NVMe drive for the download. Strata's setup says a mode that maps experts from the SSD, for a PC short on RAM, is much slower on a small GPU.
