Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
Docs: the five reading errors #604 found (the sixth, the n-gram table's unbuffered reads, is in #605's commit)
Niko12210b1c763a7522
diff --git a/README.md b/README.mdindex 0959ca853..1c3c93b67 100644--- a/README.md+++ b/README.md@@ -40,7 +40,9 @@ word, so 60 tokens per second is faster than you can read.</td></tr></table>-A card with more VRAM is faster: an RTX 3090 (24 GB) should write roughly 100-140 tokens per second. Long chats,+NVIDIA: Q2_0 with engine 0.1.36, the other rows with 0.1.26 (4K answers, 32K prompts; the full tables are in+[DETAILS.md](docs/DETAILS.md#speed-measured)). A card with more VRAM is faster: an RTX 3090 (24 GB) should write+roughly 100-140 tokens per second. Long chats,other cards: [speed of each model](docs/MODELS.md#how-fast-is-each-size), [community results](docs/COMMUNITY_BENCHMARKS.md).<p align="center"><a href="https://buymeacoffee.com/strataengine"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="50"></a><br>diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex 2374f2d92..0b8d0cced 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -290,7 +290,7 @@ Everything else is installed for you the first time.| GPU | NVIDIA **RTX 20, 30, 40 or 50 series**, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. Or AMD **Radeon RX 7900 XT / XTX, RX 7800 XT / 7700 XT, RX 9060 XT, RX 9070 / 9070 XT, Radeon AI PRO R9700, RX 6800 / 6900 series**: [AMD_HIP.md](AMD_HIP.md). || RAM | **64 GB** recommended (see the table above). || CPU | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. |-| Disk | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB copy of its experts for the fast CPU kernel. An NVMe SSD is strongly recommended. |+| Disk | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB pack for the fast CPU kernel (34 GB of experts in its layout, plus the dense weights). An NVMe SSD is strongly recommended. || OS | Windows 10/11, or Linux (Ubuntu 22.04/24.04 get everything installed automatically). |What the first start installs: in this folder `.venv/`, `engine/` and `third_party/`; the model files (`models/`,@@ -911,7 +911,8 @@ the document, +0.4% on the chat. Details: `bench/results/2026-09-27-esp/`.tokens per pass on average. When the reply repeats the context (code edits, quoted text), **prompt lookup** (engine0.1.7) drafts up to 5 tokens from the earlier copy, but only where its measured acceptance and cost say it pays:code edits 6-11% faster, other text unchanged. The drafts are checked like the MTP's, so the output is the same.-- **Prompts** are processed in 2,048-token chunks with the experts streamed to the GPU over PCIe.+- **Prompts** are processed in chunks of up to 8,192 tokens (`--prefill auto`; 32,768 opt-in) with the experts+ streamed to the GPU over PCIe.The full story, with measurements, bottlenecks and what comes next: **[docs/paper/Strata-Paper.pdf](paper/Strata-Paper.pdf)**.diff --git a/docs/MODELS.md b/docs/MODELS.mdindex 95a954d14..f6a5284b6 100644--- a/docs/MODELS.md+++ b/docs/MODELS.md@@ -71,8 +71,9 @@ fetches the MTP draft layer (~6 GB, +1 GB with images).Shard 1 is the part of the model that gets loaded when it starts: its experts go into your **RAM**, the rest ontoyour graphics card (the second shard, a 29 GB lookup table, stays on the SSD). So it fits when your **RAM is at least-shard 1 + about 10 GB** for Windows and your other programs. With 64 GB of RAM every size fits (IQ3_S with little-else open); with 48 GB, Q2_0 and IQ2_XS. A bigger graphics card makes it faster, but it doesn't lower the RAM needed+the experts + about 10 GB** for Windows and your other programs - the experts are most of shard 1: 34 GB for Q2_0,+35.5 for IQ2_XS, 43 for IQ3_XXS, 50 for IQ3_S, 23 for the Coder (the dense weights in shard 1 go to the graphics+card). With 64 GB of RAM every size fits (IQ3_S with little else open); with 48 GB, Q2_0 and IQ2_XS. A bigger graphics card makes it faster, but it doesn't lower the RAM needed- except in the low-RAM mode below.### A big graphics card and little RAMdiff --git a/include/strata/core/expert_cache.hpp b/include/strata/core/expert_cache.hppindex 4a708355f..a5061bf09 100644--- a/include/strata/core/expert_cache.hpp+++ b/include/strata/core/expert_cache.hpp@@ -16,14 +16,10 @@// * `h_layer` held-out is **0.0456** - only 4.6% of (layer, token) pairs have all ten experts resident - so// this cannot be a per-layer grouped kernel and the three-way split is not an optimisation.//-// **WHAT THIS FILE IS AND IS NOT, TODAY.** It is the SLOT STORAGE and the RESIDENCY TABLE: it allocates the-// VRAM, fills it from the host arena, and answers `(layer, expert) -> slot or -1`. It does **not** yet compute-// anything - `moe_hit_grouped_s2` does not exist and the hit/miss split is not wired into the graph - so with-// the cache on and nothing consuming it, **the engine is slower by the fill cost and faster by nothing.**-// That is stated here rather than discovered from a benchmark, and it is why `--expert-cache` defaults to 0.-//-// The order of work is `Memory/R4-design-note.md` §7: slots and residency first, then the split, then the-// kernel. This is that first step, and the step it unblocks is the one that can be measured.+// **WHAT THIS FILE IS.** The SLOT STORAGE and the RESIDENCY TABLE: it allocates the VRAM, fills it from the host+// arena, and answers `(layer, expert) -> slot or -1`. It computes nothing itself: the GPU computes the experts it+// holds in the verify window's grouped kernels and the prompt path (the hit/miss split), and the CPU pool the rest.+// (Written when nothing consumed the slots yet and `--expert-cache` defaulted to 0; setup's configs use `auto`.)#pragma once#include <cstddef>