Checked first: engine/CMakeLists.txt, engine/cmake/, the SYCL, Metal and split projects and the picture reader's CMake files have no FetchContent,
ExternalProject, file(DOWNLOAD) or git clone; the engine's ggml is the tree vendored in engine/third_party/strata-ggml, and -DSTRATA_GGML_DIR is an
optional override. setup.py downloads no llama.cpp (get_llama_cpp() "Nothing is downloaded any more"; gguf-py is vendored in
engine/third_party/strata-gguf-py).
Removed or made true, nothing else added:
- AMD_HIP.md ("CMake fetches the pinned llama.cpp revision ..." and the -DSTRATA_GGML_DIR line and comment of the gfx906 container recipe), STRIX_HALO.md
("CMake fetches the revision it needs ..." -> "The engine build needs no llama.cpp checkout."), INTEL_ARC.md ("The build fetches ggml ..." and "it fetches
llama.cpp's gguf-py helper from GitHub"), DGX_SPARK_LINUX.md ("the first run also fetches llama.cpp"), MAC.md ("and llama.cpp's ggml at the commit the PC
build pins"), SAFETY.md ("a first model install also fetches llama.cpp's preparation scripts"), AMD_HIP_PERFORMANCE.md ("Use the repository-pinned llama.cpp
dependency"), SPLIT_ENGINE.md (-DSTRATA_GGML_DIR=<llama.cpp checkout> in the split build);
- GYRO.md: the paragraph about the configure-time ggml overlay (cmake/strata_ggml_tq_overlay.cmake and engine/third_party/ggml-tq are not in the tree), and
the build block no longer clones agentionai's llama.cpp fork or passes -DSTRATA_GGML_DIR (it starts with "The engine build needs no llama.cpp checkout.");
- DETAILS.md: the --flash-attn row of strata-vision (it describes ggml's AVX-512 fallback; the picture reader has no ggml and ignores the option);
- ORCA.md and UNSLOTH_Q4.md: "gguf-py from the pinned llama.cpp dependency" -> "The pack tools carry their own gguf-py; STRATA_GGUF_PY can point to another
gguf-py directory".
Left: measured tables and history that name the llama.cpp fork or the old build (GYRO.md results, benchmark reports, release notes).
The pages a user follows still told them to run `python tools/iq_pack.py`, `.venv/bin/python -m serve.server`, `packaging/monitor_bundle.py`,
`docker/build.sh`, `tools\hip\build_windows.bat`, `bench.sh`, `Strata\tools\strata_mcp.py` and to read `src/...`, `sycl/...`, `apps/...`: places that no longer
exist. Found with tools/layout/checks/docs_paths.py (each old path existed before the move and has a new place on this tree) and fixed there, plus the
Windows-style and example paths its tokenizer does not read:
- scripts and tools: `tools/<python tool>` -> `terminal/tools/...`, `serve/...`, `strata_cli/...`, `strata_control/...`, `data/...`, `requirements*.txt`, `setup.py` and
`strata.py` in a command -> `terminal/...`; `.venv/bin/...` -> `terminal/.venv/bin/...`; `python -m serve.server` -> `python terminal/serve/server.py`;
- repository tooling: `packaging/` -> `tools/packaging/`, `docker/` -> `tools/docker/`, `bench.sh` and `BENCH.bat` -> `tools/...`;
- engine and app sources named in the text: `src/`, `include/`, `metal/`, `sycl/`, `third_party/` -> `engine/...`, `apps/` -> `app/`;
- benchmark results: `bench/results` -> `docs/bench-results` (strata_bench.py writes there);
- the MCP server examples: `Strata\tools\strata_mcp.py` -> `Strata\terminal\tools\strata_mcp.py`.
Only commands and the paths in them changed. A file name in a sentence (`setup.py`, `strata.py`) and the sentences that describe an INSTALLED Strata's
layout (`strata_control/update_keys.json` inside every installed Strata) are left as they are, as are docs/ORCA_Q4_K_S.md (it tells the reader to build the
v0.2.15 tag), the benchmark reports and the history pages. No line was dropped: every command still exists.
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
repository paths inside tests.
engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.
No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
docs/DETAILS.md gets the table row for the opt-in --conversation-cache-rewind-keep N, in the words the coordinator approved (no
measured figures; it names the one case where a request is parked as before). The comment at the keep_branch line in
src/program/generate.cpp records what the removed slot park skip did on two cards (one token differed from the park as before), without
a pointer outside the repository. No code changes.
Checks: the tree builds (CUDA, l620-20261117-0339-093b: strata built in 184 s, 4 warnings in generate.cpp, as before), settings_register.py
--check passes, py-serve 1762 passed, 0 failed (p2003-20261117-0339-44a3).
A user's report of agent turns that stopped (499 turns, 63 sessions) had 43 replies that ended in tool-call markup the
server did not run: 30 named a tool the request did not declare, 13 were
cut before their end or did not read as a call. The agent took the text for an answer and stopped.
Now, for a request that declared tools (chat completions, messages and responses alike), the answer's text from a
`<tool_call>` (or a bare `<function=`) opener at a line start is held back until the reply goes on past the block (then
it is sent as written) or the model stops in it. At that natural stop the rest of the output is read as before; when
the reply ends in markup that is no call and no call came out, it is written again once inside the same request:
the prompt goes on with the reply, a short user-turn note (why the call was not run, the declared tools, the closest
declared name for an undeclared one) and an assistant turn without thinking. The new reply takes the held markup's
place; words written before it stay. Nothing runs under a guessed name: the strict parser reads the new reply as it
reads any other. One retry only, and only when at least 64 output tokens are left after the note (the note counts
against max_tokens, so the reply stays inside the context). Not for a JSON-form template or another model family.
- /metrics/prometheus: strata:tool_markup_retries_total; one log line per retry (reason, names, hint, held length).
- strata_unread_tool_markup {"reason": "cut_off" | "unreadable", "chars": n}: the reply the client got still ends
in such markup and it is not in strata_rejected_tool_calls; at the same places as that list (chat: the last stream
chunk / the body; messages: message_delta / the body). /v1/responses now carries both fields at the top level of
the response object.
- Off: config "tool_markup_retry": false, or STRATA_TOOL_MARKUP_RETRY=0 (the server's own switch; the settings
register lists only names the engine reads, so it is documented in docs/DETAILS.md's config table).
Test: serve/test_tool_markup_retry.py: the 43 stops' shapes rewritten with neutral text (the report holds private
paths and content), whole and per character: 42 held and written again (30 rejected with the expected hints, 7 cut
off, 5 unreadable), the 43rd (prose without markup) not; the server path with a scripted engine: an undeclared name
written again as a declared call, the hint in the note, one retry only then the text with the markers (stream and
not), the rollback switch, no room, no tools, the streamed markup never sent when the retry calls, messages and
responses markers.
Live (l620, the shared BASE-05 Qwen set; a system prompt that shows an `exec` tool the request does not declare,
only `read` declared; 12 requests per arm): retry off, 12 of 12 replies ended in `exec` markup; on, 12 retries, then
6 replies called `read`, 5 answered in text, 1 still ended in `exec` (sent as text, in the rejected list). An
ordinary request (pwsh declared): a pwsh call and no retry in both arms.
Conflicts:
- apps/host/src/locales/*.json (9): mechanical, both sides only add keys at the end (HEAD s9039-s9051, guib s9101): union.
- serve/server.py: mechanical, the same #2497 / PR #4307 fix came in twice (identical code, different comments): HEAD's kept.
- serve/web/app.js, decided by the coordinator 11-16: f-1116-tui's per-card power / PCIe block stays; guib's #5457 (fcfe18e55) "not available" plus st.gpu_note goes into the single-card branch of the power and PCIe metrics (phaseA-tests\int0216\int0216_resolve_appjs2.py). serve/test_web_*.py 78 passed.
Conflict: serve/frontend.py, mechanical: #2371 (anyOf / oneOf types) came in twice, as f-1116-eng a54f9dbbb and f-1116-serve 5e965ec57 (same patch-id d6512e1afdc5), and serve built #6032 R1-R4 and #5493 on it: both hunks take serve's side; the file = serve's plus f-1116-eng's tool_addition changes (#5952).
Conflicts: apps/host/src/locales/fix-{de,es,fr,ja,ko,pt,ru,zh}.json, mechanical: the branch's new fx86 translation, without fxpr1-4 (the picture reader setting that f-0216-vision removed).
agent_message (a worker's task and its answer, as user messages; another server's encrypted payload is named as unreadable) and multi_agent_call(_output), as 3cb933d29 reads them. Wording approved by the coordinator.
The docs and results half of PR #5984 (Vop3p; its bench/results/2026-11-14-rdna2-pcie-auto folder,
the AMD_HIP.md section and the DETAILS.md row, as written), the results index regenerated, plus
the maintainers' row: RX 6700 XT (gfx1031) in a Linux container with a 2.8 GB/s link probe, the
new default against STRATA_PCIE_FRAC_DEFAULT=old, three interleaved pairs of 4,000-token prompts
and 128 tokens: start-up share 0.08, no refinement printed, tokens and first-token logits identical,
decode 19.41 against 19.44 tok/s median (-0.2%, 1 of 3 pairs faster), prompt level. On a slow link
the change does nothing and costs nothing measurable; 32K not run.
Co-authored-by: Vop3p <69450118+Vop3p@users.noreply.github.com>
Problem: a long prompt's request died with non-finite logits, and once it happened the conversation kept
failing. The poison appeared at a different layer each time, on a single token row, with no magnitude ramp
(every input was O(1)). The guard added earlier ends such a request, but nothing removed the cause.
Cause, measured with a per-layer instrument: the MoE expert activations (XS, the gathered input, and HS, the
gated intermediate) are fp16. A value outside fp16's range became inf, and the expert down-GEMM multiplies
those activations by quantized weights that are legitimately zero, so inf * 0 produced a canonical qNaN
(0x7fc00000) in the combined expert output of one token row. That NaN entered the residual through the MoE
half of the mixer, then every layer above, then the GDN scan state, then the logits. Because the GDN state
and conv history are part of the checkpoint and of the parked conversation, one bad value came back with
every later turn, which is what made it look permanent.
Changes:
- moe_mm.metal: hsat (saturating fp16 store) at every expert-activation store; mm_combine drops a non-finite
weight or expert output instead of folding it in. Both only differ from the old result where that result
was already non-finite, so finite answers are bit-identical.
- qsa.metal, qsa2.metal, qsa_prompt.metal: guard the four unguarded softmax divides. M starts at -INFINITY
and an empty chunk writes -INFINITY too, so an empty row evaluates exp(-inf - -inf) and the divide wrote a
qNaN into the prepared activations. Same signature, independent cause.
- window.cpp: no non-finite word may cross a chunk boundary - the GDN state and conv history are cleared at
every prompt chunk start, on checkpoint restore and on checkpoint save. The chunk-start pass costs ~19 MB
of host reads against ~14 s of prefill (0.005%).
- docs/DETAILS.md: record the cause and the fix.
Validation (passed): four consecutive deep probes of 104,748 cold prompt tokens, each with no non-finite
logits and nothing to clear; the previous build poisoned on about seven of eight such probes. Multi-turn
reuse (4,556 of 4,578 tokens reused, 1.2 s against 22 s cold) and conversation parking (8 parks, no
non-finite words) exercised on the same build.
Not run: CUDA/HIP/SYCL builds (every kernel touched is Metal-only) and the Terminal test suite.
The #879 guard never ran on the Apple Metal port: Verifier::run's
STRATA_GPU_METAL branch returned before note_nonfinite (the CUDA path records
the fact after the window), and the batch-slot branch skipped it the same way.
A poisoned conversation on a Mac therefore streamed the sampler's token-0 "no
candidate" answer (#606 filler) for every later turn, and the server's
non-finite retry and session flush never fired.
The pick alone cannot carry the fact: every sampler path answers token 0 for a
row with no finite candidate, and only the greedy argmax leaves the INT32_MAX
sentinel. The truth is the row itself. The port has no logits_nonfinite_rows
device kernel; the head rows stand in unified memory after the window, so
metal_scan_rows reads them from the host and applies the CUDA kernel's bit
test (exponent all ones), folding the result into the same mask the serve loop
already consults. Window::logits_row exposes the rows with the same
null-past-the-window rule the commit path uses. About 60 us a decode window on
the M1 Max, 0.2% of the window; the CUDA path is untouched (everything is
inside #if STRATA_GPU_METAL).
Validated on an M1 Max with the 80B UD-IQ4_XS pack: a poisoned GDN state
restored from the conversation file and re-entered through prefix reuse
(1332 of 1350 tokens) was flagged at position 1299, flushed and self-healed on
the next request. sample_parity gains the sentinel rows (all-non-finite row ->
INT32_MAX, one finite value -> its id); gdn_prompt_parity gains --stress,
which chains 42 prompt chunks of 2048 tokens (86K) and keeps scan_v and the
scanr widths within a relative 2.3e-8 of the sequential step at 10,000x the
state amplitudes measured from a real corrupted window - the prompt scans are
not the origin of the natural poison.
An app that installs a model for its user with `setup.py --yes --no-start`
had only setup's human text to follow. With --output jsonl setup writes one
JSON object per line to stdout (schema_version 1): step, ok, warning,
progress (label, done_bytes, total_bytes; at most once a second per file and
once at the end), error (message, hint, exit_code; kind no_space with path,
free_bytes, needed_bytes for the disk refusal, refused, interrupted) and last
done (exit_code, run_config: the strata-<model>.json it wrote). Exit codes
are unchanged; without the option nothing changes.
stdout's file descriptor is kept for the JSON and stdout itself is pointed at
stderr, so every human line and every program setup runs (pip, the fetch
helpers, the packer) writes there and no other byte reaches the JSON stream.
docs/DETAILS.md "Installing a model from another program" has the table.
Tests: tools/test_setup_jsonl.py (every stdout line parses, also after a
child program writes raw bytes with no newline and a partial human line; the
error event's fields and exit code; nothing changes without the option; done
names the run config); tools/test_setup_*.py and tests/tuning on p1006.
The reporter runs MCP Proxy, an HTTP tool server that wants an API key in a
header, and could not tell whether the app supports it. Settings -> Tools -> Add
tool server saves only the address of an http(s) server (no headers; its
"Extra settings" lines go to a program only), while a model's own tool servers
take headers under Credentials & environment and are used by the chat and the
coding assistant on that model. DETAILS.md's MCP section now says so, with an
example. Wording approved by the coordinator (11-16). A headers field in the
global form would be a feature (new UI) and is not part of this.
No release build compiled MMQ any more (x86 since 0.2.14, the DGX Spark since f-spark-nommq), so the path goes:
- CMake: the options STRATA_MMQ, STRATA_PREFILL_MMQ, STRATA_MMQ_TAB, STRATA_MMQ_TQ_OVERLAY, STRATA_ORCA_Q4KS_MMQ and STRATA_MMQ_KQUANTS, the
macros strata_cuda_mmq / strata_hip_mmq / strata_pf_own_mirror / strata_ggml_mmq_types and the MMQ tests. Every CUDA and HIP build takes
strata_cuda_pf_own / strata_hip_pf_own (Strata's own prompt kernels, mmq_absent.cpp for the MMQ half of moe_mmq.hpp), as the release builds did.
- Sources: moe_mmq.cu, moe_mmq_tab.*, mmq_tab_instance.cu.in, mmq_kq_lib.cu / mmq_kq_loader.cpp (libstrata_kq), mmq_nvfp4_w4a4/w4a8.cu,
moe_iq4_w4a8.cu (called only from moe_mmq.cu), moe_ws*.cu, ggml_cuda_host.cu, mmq_expert_bench.cpp, mmq_nvfp4_parity.cpp, two headers,
nine MMQ tests, the split engine's qdot_test.cu (its ggml-cuda oracle; qdot_golden stays), cmake/strata_ggml_tq_overlay.cmake and its test.
- third_party/strata-ggml/ggml/src/ggml-cuda and ggml-cuda-tq (64 manifest rows; check_vendored: 62 files, ok).
- The flags out of packaging/build_cuda_linux.sh, build_cuda_windows.py, build_hip_linux.sh, build_hip_gfx1103.sh, build_split_hip.sh,
tools/hip/build_windows.bat, spark/build_engine.sh, setup.py, CMakePresets.json (cuda-compile builds strata only) and the Dockerfile.
The strata_kq probes of the package scripts and setup's clean-up of an old libstrata_kq stay (no-ops now).
- Settings read only in the deleted files are retired in data/settings-register.json (STRATA_IQ4_W4A8, STRATA_MMQ_DIRECT, STRATA_MMQ_WS,
STRATA_QUANT_GATHER, STRATA_W4A8_CFG, STRATA_WS_FAST; retired_in 0.2.16); docs/SETTINGS.md regenerated. Docs: lines naming the removed
build options or settings deleted or shortened (AMD_HIP, BATCHING, DETAILS, DGX_SPARK_LINUX, GYRO, OLDER_GPUS, RADEON_780M, STRIX_HALO,
UNSLOTH_Q4, packaging/ENGINE-COMPONENT.md). Tests that read the options follow (test_linux_aarch64, test_setup_stale_stamp,
test_build_cuda_windows, test_gfx906_build_files).
MMQ comparison builds come from the v0.2.15 tag from now on.
Gates (A = f-0216-int f6de3a6c6 with its package flags, B = this tree, same folder):
- CUDA 13 (z440, sm_86 + sm_120 + PTX; and strata-split-2): host code identical; strata 155 of 156 device files identical, the one differing
file only in native_mmvq_il_pf_kernel, which differs between two builds of A too (A/A2); the split's differing files (the same family and two
PTX files) differ in A/A2 as well. CUDA 12.9 with SM60 (sm_60 + sm_86): host identical; the 4 differing device files are the same in A/A2,
functions native_mmvq_il_pf_kernel and fused_gr.cu gr_down_v3_kernel (nvcc build-to-build: three compiles of fused_gr.cu.o give three PTX).
- HIP (p620, gfx1200;gfx1201, the rx9070 flags): f-0216-int with and without -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ=OFF gives the same
build.ninja and byte-identical strata and strata-split-2, so the flag compiled nothing; this tree's strata is byte-identical to A; the split
has identical disassembly (2,808 functions) and host code, raw bytes differing only in __hip_cuid / gpubin hashes (step 5's include path).
- tools/check_no_mmq.py on the CUDA strata and split (bytes, nm, cuobjdump: 5,524 / 3,225 / 5,632 device functions) and the HIP strata and
split (bytes, nm): clean.
- SYCL (p1004, icpx 2026.1.1): builds, 117 steps, no ggml. Metal (m1002, packaging/mac/build_engine.sh --stages engine): builds, 2 ggml names
(ours). The aarch64 (Spark) compile is not run here: it runs with the Spark engine release check when the Spark is restarted.
- pytest tools/test_*.py + test_linux_aarch64 / test_loader_diag / test_tuning_availability_0213 (boston): 1,694 passed, 15 skipped, 2
failed in test_gfx906_build_files (asserted the deleted macro's gfx906 lines; rewritten, 3/3). settings_register --check and
test_settings_register, check_vendored, check_links: ok.
The picture reader no longer comes from llama.cpp's mtmd library (own-stack step 6):
DETAILS.md (the Images paragraph and the llama.cpp credit), INTEL.md (the CPU reader) and
QWEN36.md (the vision encoder paragraph) say so. Wording approved by the coordinator 11-16.
DETAILS.md and VRAM_ELASTIC.md said elastic_mib defaults to 2048. Without
the key the ask is now 2,048 MiB at the default picture limit and, from a
limit of about 4,700 tokens up, the reader's estimated need at that limit
(3,674 MiB at 16,384 or with no limit).
Register regenerated: four read lines of serve/server.py moved by the
previous commit.
setup.py learns the `latin` choice that the locale rule already picks (data/draft_vocab_latin.bin: English, code and the German, Spanish, French and Polish tokens, 62,102 ids, a draft head of about 203 MiB on IQ3_S next to cyrillic 193 and fr 151), prints "draft layer: the token subset with the Latin-script languages" when it copies it, and the --draft-vocab help and docs/DETAILS.md say that with no choice the file follows the computer's languages and that a choice always wins. The cyrillic help line now carries the measured figure in the same form as the new one.
Measured on an RTX PRO 5000 (IQ3_S, two rounds pooled), default file -> chosen file, tokens a second: Russian 180.0 -> 227.6 (cyrillic); German 211.7 -> 233.6, Spanish 220.1 -> 244.5, French 221.9 -> 249.1, Polish 188.4 -> 203.2 (latin); English 265.2 with the default, 266.0 with latin, 266.6 with cyrillic; Chinese 238.4 -> 199.2 and Japanese 222.2 -> 194.4 with latin. Output tokens are identical in every arm (72 of 72 and 24 of 24 requests each).
DeepSeek V4.1-Flash leaves every user page, as written in par/dsout/DOCS-DRAFTS.md:
- README.md and its 7 translations lose the DeepSeek block; docs/media/models/deepseek.svg is
removed with its credit lines.
- MODELS, INSTALL, docs/README, MAC, TROUBLESHOOTING, AMD_HIP, DOCKER, INTEL, MULTI_GPU,
TERMINAL_LAUNCH, AI_SETUP, AI_REFERENCE, MEDIA_KIT, DETAILS, SAFETY, DGX_SPARK_LINUX, STRIX_HALO,
STRIX_HALO_WINDOWS, AGENTS.md and the packaging pages (README, UPDATES, ENGINE-COMPONENT,
mac/README): DeepSeek sections, rows and clauses deleted; the eight approved new sentences.
STRIX_HALO's WSL sentence (true for every AMD engine) moves to the Quick start.
- The three links to DEEPSEEK41.md anchors that no longer exist (MODELS.md twice,
TERMINAL_LAUNCH.md once) went with their sections, so the link check passes again.
- docs/data/capabilities.json drops the deepseek41 family; docs/CAPABILITIES.md and the cap
blocks regenerated by tools/capability_table.py --write. MEDIA_KIT.md has no cap block left,
so tools/capability_table.py no longer lists it; tools/test_capability_table.py points its two
contradiction tests at qwen38 / qwen36 and loses the DeepSeek-on-a-Mac test.
- docs/SETTINGS.md: the three STRATA_DS4_* rows go (count 280 -> 277). The page is not fully
regenerated: tools/settings_register.py --docs would also change seven rows that are not about
DeepSeek and were already out of date on f-own-int 9bef5255d; they wait for the owner.
- The four approved help texts lose their [DRAFT] prefix: strata launch --context, and
"choose the Qwen engine" (strata components use / remove).
Kept on purpose: DeepSeek as a cloud provider and search key, every DeepSeek Harness mention,
docs/release-notes-*.md and history/, docs/DEEPSEEK41.md and DEEPSEEK_MAC.md (the five-line page).
Decode reads missed expert blobs from host RAM three ways; the PCIe share's
blobs cross into VRAM anyway and were dropped after the window. With the
switch set, the share takes each layer's most-routed misses and a fetched
expert routed enough more than the layer's least-routed resident expert that
the window does not route is copied straight into that expert's slot
(fetch_blobs gets an optional dst2 target per blob). =2 leaves the tier's own
swaps out of a layer where an admission ran. STRATA_ADAPT_FETCH_VERIFY=1 reads
every admitted slot back. Off, with a log line saying why, where it cannot run.
Unset changes nothing.
Ported from PR 2964 (sergqwer) onto f-0216-core; the strata generate verify
loop was merged by hand (main's speculative-q lines kept) and the DETAILS.md
note became a row of the opt-in switch table.
l620 (RTX PRO 5000, IQ3_S, 3,896-slot cache, --pcie-frac 0.25): decode =2 +10.2%,
=1 +5.0% (4 rounds); token forcing over 14,167 tokens: mismatch 2.73% vs 2.53% /
2.53% for two unset arms (+0.19 pt, 90% CI -0.02..+0.42), PASS.
(cherry picked from commit b2bfaef906acee4f86bdf9f052aee6a4d295fb4e)
Prompt-path block scores in single-pass TF32 with a per-block error bound,
3xTF32 rescoring only near each query's top-k cut-off, so qsa_block_topk
returns the same cells in the same order, ties included. Off unless the
variable is set; says once where it cannot run (HIP, Metal, SYCL, layer-major
path). Adds qsa_two_pass_test, qsa_two_pass_status_test and the GPU parity
test qsa_two_pass_parity.
Ported from PR 4119 (bitaccesscomau); the log line of the per-prompt counters
is shortened without dropping a field.
l620 (sm_120, IQ3_S), greedy ids identical off vs on in every pair:
prompt 128K +1.65% (n=12), 256K +4.10% (n=8), 32K -0.14% (noise).
(cherry picked from commit bbf7c55f1351d913233250fe7869642f7c2b98a1)
SET_DEFAULTS is the one per-(backend, set) table (Metal only; IQ3_S stays on the MTP). Setup, strata launch and strata drafting fetch fetch the tuned pack through the signed feed
(pinned size and SHA-256, resumable, silent offline, the standard drafter and then the MTP as fallbacks). Apache-2.0 licence and the modified-by-Strata notice ship in
data/dflash2-tuned and are copied beside the file. The Metal 'not tested' line is replaced for these sets.
Logic only, no text changed: bench_tips takes the GPU and leaves the tip out for those configs; older cards, AMD, a layer split and no GPU information keep it. The explicit auto:32768 warning is unchanged. test_setup_bench_tips covers it (10 passed on l620).
Owner 11-03 ("do all 5"), two prompt defaults for Linux gfx12 (R9700), both changing rounding slightly and both with their off switch.
STRATA_MMQ_KQ=1 joins the gfx12 value-changing defaults (gfx12_extra.hpp, applied by apply_arch_defaults, so a raw engine gets it too; Linux only like the
other approved gfx12 prompt defaults; STRATA_MMQ_KQ=0, STRATA_GFX12_DEFAULTS=0 or STRATA_DEFAULTS=026 turn it off, a value the user sets wins). The experts of
Unsloth's UD-Q4/Q5/Q6_K_XL files (Q4_K, Q5_K, Q5_1, Q6_K) then run their prompt products on llama.cpp's MMQ kernels instead of being dequantized to FP16 and
multiplied by hipBLASLt (UD-Q4_K_XL ran 25K dequant launches and ~50K small Tensile GEMMs per 8K prompt). R9700, same job, interleaved: prompt 4K +10.3%,
8K +14.3%, 32K +16.8%; first-token KL against the FP16 path 0.031 over 24 prompts of ~2K (agent turns 0.065), top-1 23/24. A pack without K-quant experts never
reads the variable. The fused variant (STRATA_PF_FUSED_KQ) stays a flag.
The gfx12 ceiling of a bare --prefill auto goes from 16384 to 32768 (gfx12_chunk.hpp, pure functions with tests). A 20K prompt is one chunk instead of
16384 + a 3.6K tail, and every chunk of 1,024 tokens or more streams all the experts the card does not hold. R9700, IQ3_S, 3 rounds interleaved: 20K +12.1%,
64K +2.6%, 32K +1.3%, 8K +0.9%; UD-Q4_K_XL 20K +26%; first-token KL against 16384 at most 5e-5. The lent slots are taken only for what a prompt needs and are
refilled after it; the RAM guard (#2090) now steps 32768 -> 16384 -> 8192 until the extra loan fits. STRATA_GFX12_CHUNK=16 keeps 16384, =0 keeps 8192.
gfx12_extra_test covers both (gfx only, Linux, off switches, user value wins, the ceiling and its step-down); docs/DETAILS.md lists them.
A short section next to the Linux setup: what Strata's own downloader does, the measured speeds (anonymous, 16-24 MB/s whatever the method), and the manual route
with `hf download` and `--gguf-dir`, which setup already supports (checks the SHA-256, never deletes a file in your own folder). No code change.
The selector's two codebooks as Q4_0 rows take 174 MiB (about 88 expert slots) less graphics memory than bf16, with the same drafts: the committed text was byte-identical to the bf16 pack's in 40 of 40 requests (greedy and sampled, everything resident), draft time and acceptance equal, and ahead 1.7-2.2% where the cache is short (RESULTS-DF2MEM.md section 15).
The idea and the bytes are nazeshinjite's: the community GGUF nazeshinjite/Qwen3.8-Flash-Next-DFlash2-GGUF (Apache-2.0) stores the two tables as Q4_0, and tools/dflash2_pack.py --q4_0-selector / --convert-selector writes exactly those bytes (selector_predecessor sha256 55f70049...ffd28, selector_successor 3b596669...a72d2 over the tensor bytes, equal to the GGUF's).
drafting_fetch.convert_selector (called by setup, strata drafting fetch and Load, never by a start or a serve; no network; about 120 MB of memory) checks the Q4_0 pack against PACK_SHA256, converts it in-process and checks the result against CONVERTED_BYTES / CONVERTED_SHA256 (339694592 bytes, 4a42b982...3ecd); anything else is deleted and the bf16-selector pack keeps running. drafting.pack_path returns the converted pack only when it verifies (a marker beside it keeps the hash check off the start path) and the engine program carries the text 'selector codebooks: Q4_0 rows'; a missing, short or corrupt file, an engine without the text or an engine that is not known gets the Q4_0 pack. Includes f-0291-df2-comm (Q4_0 rows in the select kernel, STRATA_DF2_HEAD=native) merged into rc1.
An engine older than --ram-keep-gib (0.1.52, 0.1.54, 0.1.55, which a person can choose in the Engine tab) stops with "unknown argument";
it ignores an environment variable. The engine still takes the flag for CLI users (the flag wins over the env). Full performance removes the env;
a STRATA_RAM_KEEP_GIB, --ram-keep-gib or RAM mode of the person wins. New host test: an older engine gets no argument it does not know.
Engine: --ram-keep-gib W (default 0; STRATA_RAM_KEEP_GIB the same). The expert arena is used only if W GiB stay available after it;
otherwise the RAM copy of the hottest experts leaves max(W, the safety headroom) free, and STRATA_RESIDENT_HEADROOM_GIB still wins when set.
The safety headroom is 8 GiB on Windows (the page trim of the copy needs the room) and 4 GiB elsewhere; with W = 0 nothing else changes.
The decision lives in ple_residency.hpp (ram_keep_plan and its parts) and is covered by ple_residency_test over free RAM x W x arena size.
The explicit modes (--resident-budget-gib, --resident-experts) leave max(W, their headroom).
Host: profile 'work' passes --ram-keep-gib W, W = clamp(ceil(0.2 x RAM GB), 5, 8), instead of the 80% budget and the 20% env headroom; the engine
decides from the RAM free at its start. A flag or env of the person wins; full performance passes nothing and takes the earlier version's settings out.
resource-ram.test.mjs covers 24, 32, 64 and 128 GB with the preference on and off. Docs in DETAILS.md.