Files
strata/docs
Keyan Hu 499e963593 native experts: window-invariant CPU arithmetic for STRATA_SPEC_PROB decode, Default dispatch unchanged (#3416)
Problem (KeyanHu-git): the rejection rule of the previous commit judges each row against
the target's probabilities p. For a native (IQ) pack the CPU experts round a token's rows
differently depending on how many tokens share its expert in the window (the grouped
kernels against ggml's one-token dot, #152). So p of one row moved with the window width,
and the same sampled text could depend on the draft length. On random blocks a grouped
Default call differs from the token alone in 700 to 12000 of about 18000 output floats
for the IQ gate/up and IQ4_NL down formats.

Change: NativeArithmetic { Default, WindowInvariant }, fixed for one pool batch.
native_gu_rows / native_down_rows become thin wrappers of one template with the arithmetic
as a parameter. The Default instance keeps every old branch (the new conditions are
compile-time true there). WindowInvariant gives each token the bits of the one-token call
on this build and CPU: kernels that already match it stay grouped (NVFP4, Trellis and
Hadamard rows, KQ256 when ggml runs its AVX2/FMA dot); the IQ rows that differ use
iq512_reference_gu_rows (types 18, 21, 22: the same decode, ggml AVX2's accumulation
order, one weight decode per group) or iq4nl_reference_rows (IQ4_NL down), and anything
else falls to the one-token dot per token. ExpertPool::run_split_multi_native takes the
arithmetic and expert_pool_dispatch_multi passes it; generate.cpp uses the invariant
pool only when the MTP drafts probabilistically (mtp.prob(), i.e. only with
STRATA_SPEC_PROB=1). Prefill, greedy decode and every other decode run Default.
The pool picks the entry point with one compare and a direct call per chunk.

Default path (STRATA_SPEC_PROB unset): unchanged, shown by running the old and the new
native_gu_rows / native_down_rows (Default) on the same random blocks: 61 format, width
and amplitude lines (IQ2_XXS/XS/S, IQ3_XXS/S, IQ4_XS, NVFP4, Q4_K, Trellis with and
without folded Hadamard, IQ4_NL / Q2_0 / Q5_1 / Q8_0 down; widths 1 to 8; row sub-ranges),
output hashes identical in 10 settings of the environment switches on z440 (AVX2) and
in 13 on the owner PC (Zen4, AVX-512, MSVC), including STRATA_NO_IQ512, STRATA_IQ_GATHER
and STRATA_IQ_MT_MIN=1. g++ codegen of the AVX-512 row kernels is not byte-identical for
5 of 87 functions (inlining and register allocation of the same source); the AVX-512
kernels were run only under MSVC.

Tests: native_arithmetic_parity, eight ctest configurations (default, AVX, KQ256,
IQ_MT_MIN=1, no512, ggml only, NVFP4 AVX2, NVFP4 ggml), registered in CMakeLists.txt and
sycl/CMakeLists.txt. It compares the invariant entry points at every group width 1..8
with the one-token calls, bitwise, for the IQ, NVFP4, Q4_K/Q5_1/Q8_0, Trellis and
Hadamard formats. All eight pass on z440 and on the owner PC; the existing CPU expert
tests (iq_avx2_parity, iq_avx1_parity, iq512_gather_parity, pool_tasks_test,
nvfp4_cpu_parity, router_dot_parity, q2_bitplane_parity) pass.
Not covered: an ARM CPU (not built here), an AVX-512 machine with fast gathers (Sapphire
Rapids), the layer-split call site, and any model run.
2026-10-27 01:45:35 +01:00
..

Strata guides

New here? Start with Install Strata. Download the one installer for your system (Windows, Linux or Mac), or install the Terminal with one line. Both use released engine packages. This documentation is for version 0.2.5.

Use Strata

I want to… Guide
Install or update Desktop app and Terminal
Choose a model and check memory Models and quantizations
Run DeepSeek V4.1-Flash (app and Terminal) DeepSeek V4.1-Flash
Start from the command line Terminal launch
Connect a coding tool Tool connections
Fix an install or startup problem Troubleshooting
Check privacy, downloads and network access Safety and privacy

Hardware

Use the guide for your GPU and operating system. Model and feature support can differ between backends.

Hardware Guide
NVIDIA RTX 20 / 30 / 40 / 50 Install
AMD Radeon (RX and AI PRO R9700) AMD / HIP
AMD Ryzen AI Max / Strix Halo Strix Halo
Intel Arc on Linux Intel Arc
Apple Silicon Mac / Metal
More than one GPU Multiple GPUs
Older GPUs Experimental hardware

Developers and contributors

AI tools and media

Which instructions apply?

strata launch belongs to the installed Terminal. START-HERE.bat, SETUP.bat, UPDATE.bat and setup.sh belong to a source checkout. Raw engine commands are a third interface. Their flags are not interchangeable: Terminal launch uses --gpu and --vision on|off; source setup uses --gpus and --vision yes|no.

Release notes, design proposals and benchmark reports describe their named versions and machines. They remain available as historical evidence; use the guides above for a new installation. A published result on one GPU does not establish support or speed on every GPU.

Writing a guide page

  • Installation steps live in INSTALL.md, source steps in SOURCE_INSTALL.md. The public READMEs stay short.
  • Check command examples against the parser and filenames against the release assets.
  • A guide describes the current release. Version history, fixed bugs and superseded settings go in a closing History / older measurements section, in bench/results, or in the release notes. Do not mix them into instructions.

Every guide page has this shape:

Part Content
Title # Name of the task or topic
Purpose One to three lines: what the page is for and who it is for
Quick start or Steps The shortest working path, commands in code blocks
Details ## sections; option and flag lists as tables; short paragraphs
History / older measurements Optional, last. Dated numbers only

Label every measurement the same way, directly above the number or table:

Measured on: hardware (GPU, CPU, RAM), model or set, Strata version, workload.