Problem: on a GP100 die (compute capability 6.0: no dp4a, no tensor cores) the prompt pass's routed experts run as MMQ launches per 16-expert group: a gate/up, a swiglu, a quantize and a down launch per group, each group's experts gathered and padded to the group's largest row count, every MMQ tile decoding its weight blocks again. With every expert resident the per-group overhead, not the weight bytes, is a large share of a prompt read on this card. Change: with STRATA_MMQ_WS=1, a layer whose routed experts are all resident on this GPU runs quantize_scatter, then gate/up as ONE weight-stationary launch over all its experts (read where they lie in the expert cache), ONE swiglu_quant over all its rows, then the down as ONE launch. New src/prefill/moe_ws*.cu(h): a CTA holds 128 (or 256) weight rows of one expert and runs them against up to 64 of that expert's activation rows, a thread per weight row, so each weight block is decoded once per pass; gate/up for IQ2_XXS, IQ2_XS, IQ2_S, IQ3_XXS and IQ3_S, down for Q2_0 and IQ4_NL. Every product keeps MMQ's int8 values, scales and per-32-value epilogue in its K order, so GU, H and the down rows are MMQ's bits. ws::faster carries the author's measured ws / MMQ time ratios per format and picks a layer only where both products win at its rows per routed expert. prefill.cpp decides per layer after quantize_scatter (all experts resident, this GPU alone, no peer or CPU share, not the fused layout, not STRATA_MMQ_DIRECT, no Hadamard, no NVFP4 tail, no FP4 activations, aligned, not STRATA_DBG_NAN); every other layer keeps its path. STRATA_WS_FAST=1 (second opt-in, same bits) selects a down kernel for the IQ4_NL 32-token tier with fewer instructions per pass. Gating: the kernels and STRATA_PREFILL_WS exist only in the CUDA build with STRATA_EXPERIMENTAL_SM60 (not HIP, not Metal; prefill.cpp links stubs that answer mode 0 elsewhere). At run time ws::mode() is 1 only with STRATA_MMQ_WS=1 and every visible GPU at compute capability 6.0. Unset, nothing is allocated (the offset and chunk buffers, under 1 MiB per die, exist only when the mode is not 0), the arena layout and the mapped table are the ones before, and the per-layer test short-circuits on the cached mode. Not ported: moe_ws_down_bench (needs a model shard) and its CMake target. Added: ws::set_mode (tests only) and tests/cuda/prefill_ws_parity_test.cpp, a synthetic layer-level check: random experts of all 5 gate/up x 2 down formats, random routing, the per-group MMQ (mmq::Context per expert) against ws::gate_up + swiglu_quant + ws::down, GU, Hq and Dm compared byte for byte, the down also alone on the reference H and with STRATA_WS_FAST on. It gives its verdict on a compute capability 6.0 card only (the kernels follow MMQ's sm_60 SASS); other cards run it for information with --any. Tests: prefill_ws_parity_test on boston (2x RTX A6000, sm_86, CUDA 13.1, gpu lock, SM60 build, --any because it is not a GP100): 40 cases (all 5 gate/up x 2 down formats, four routings each), 0 declined; the largest GU and down-alone error against that card's MMQ is 5.2e-07 of the largest value (float rounding: MMQ's sm_86 epilogue is not the sm_60 one the kernels follow), the full chain's Dm differs up to 1e-3 where int8 rounding of H flips on those rounding differences, and STRATA_WS_FAST output equals the default kernel's in all cases, 0 differing bytes. The byte-for-byte verdict against MMQ is the P100's. sm_60 compile of the whole tree (CUDA 12.9, P1004): exit 0; sm_86 build without the SM60 option (z440): exit 0. SASS of the 10 kernels moe_mmq.cu had before this change is identical in the sm_60 build. Not covered: no GP100 run here. The contributor's numbers (prompt reads 31-37% shorter on four GP100 dies with every expert resident: 240 tokens 2,156 -> 1,364 ms, a fresh 26K read 41,231 -> 28,555 ms; one run per arm) were not re-measured. The model gate is phaseA-tests/gh027/gates/3752-mmq-ws.sh.
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
- Build or run from a source checkout
- Docker
- Contribution rules
- Community benchmarks and the standard benchmark protocol
- How the engine works, technical reference and Terminal reference
- KVA: approximate prompt processing for the late layers (experimental, opt-in)
- App development and packaging
AI tools and media
- Install for a user
- Verified facts, model availability and API reference
- Articles and videos
- Repository instructions for agents
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.