Commit Graph
1402 Commits
Author SHA1 Message Date
Niko1221 58ee322772 Supporters: round pictures, one row per level with the biggest supporters first and largest, no amounts shown (README, SUPPORTERS.md and the 7 translations) 2026-11-18 23:40:41 +01:00
Niko1221 26ae4fa2d9 Supporters: the 15 public GitHub sponsors, grouped by tier (highest first), in README, SUPPORTERS.md and the 7 translated READMEs; adds codeconduit-official, kingdonb, jaceknoga, Daisame, moruku36 and hrkgk 2026-11-18 23:37:29 +01:00
Niko1221 650ef4a915 README and its 7 translations: the dark-mode logo points to app/host/public/brand (it still named the old apps/ folder, so GitHub's dark theme showed no logo) 2026-11-18 23:33:27 +01:00
Niko1221 9711739de1 docs: the aarch64 Control and engine are 0.1.62 in docs/data/release.json (strata-control-0.1.62-linux-aarch64.tar.gz, strata-engine-0.1.62-linux-aarch64-cuda-cuda13.tar.gz)
The Spark packages are rebuilt from the release head, so they leave the carried-at-0.1.59 list; only the DeepSeek engines (strata-dsv41-0.1.59-*) stay carried. docs/CAPABILITIES.md regenerated by tools/capability_table.py --write; release_manifest.py, capability_table.py --check and their tests pass.
2026-11-17 21:14:28 +01:00
Niko1221 b3b7669836 docs/GYRO.md: STRATA_NO_TQ_KERNELS=1 changes nothing in a default build
The variable is read (engine/src/kernels/cpu/tq_cpu.cpp, tq_kernels_enabled), but native_expert.cpp's tq_rows_own() still returns "Strata's own trellis
kernels" for it whenever the CPU pool is Strata's own (STRATA_OWN_CPU_QUANT, ON by default: the layer has no ggml-cpu trellis dot to go back to) or the
linked ggml lacks the trellis types. Only a build with -DSTRATA_OWN_CPU_QUANT=OFF and the agentionai fork's ggml could go back to ggml-cpu. The page said it
"goes back to ggml-cpu"; it now says it changes nothing in a default build and that the trellis types always take these kernels.
2026-11-17 17:25:05 +01:00
Niko1221 4b647b0bf3 docs: the engine build does not fetch or use llama.cpp; the sentences that said so are gone
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).
2026-11-17 17:24:08 +01:00
Niko1221 ba971b3ab0 docs: every command and path in the user-facing pages names the moved place (terminal/tools, terminal/serve, tools/packaging, app/, engine/sycl, docs/bench-results ...)
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.
2026-11-17 17:19:50 +01:00
Niko1221 43822f4a82 docs: the build commands configure engine/ (and engine/sycl), and build.sh's hint names engine/sycl/tools
The CMake projects are in engine/ since the layout move, so `cmake -S . -B build` from a checkout does nothing. The commands in AMD_HIP, GYRO,
INTEL_ARC, MMVQ_IL_TABLE, NVIDIA_V100, OLDER_GPUS, RADEON_780M, SOURCE_INSTALL and STRIX_HALO now say `cmake -S engine ...` (the SYCL
alternative `cmake -S engine/sycl ...`), the two SYCL docker commands in INTEL_ARC name engine/sycl/tools, GYRO's pip line next to its cmake lines
reads terminal/requirements.txt, and the hint that engine/sycl/tools/build.sh prints names engine/sycl/tools. Only commands and the paths in
them changed. Left as they are: ORCA_Q4_K_S.md (it tells the reader to build the v0.2.15 tag, whose layout its commands match), the benchmark
reports and history pages (they record what was run), and the prose that names a folder.
2026-11-17 17:00:36 +01:00
Niko1221 18526b8792 Merge f-1117-pathfix (44d4a006a), release-check fix 4 (MAP): a second layout path scan for paths built from __file__, a root variable or the working folder (tools/layout/checks/path_scan2); build_cuda_windows.py configures the engine from engine/ and runs the packaging scripts from tools/packaging (with a SourcePaths test); make-dmg.sh runs tools/packaging/binary_deps.py for the minimum-macOS check; docs/media/make_figures.py reads the app's icon sprite and font from terminal/serve/web; the test_control_install ".." escape test climbs to a real setup.py again (path_scan2 0 real misses, p2006 py-tools 1730 / 0, py-tests 3835 / 0, owner-PC CMake configure of engine/ for CUDA 13 and 12 by the lane) 2026-11-17 15:36:32 +01:00
Niko1221 3d83b4328a Engines 0.1.62 (the same number as Control)
Control and the engine packages use ONE number in 0.2.16, 0.1.62, the CMake project version the binaries report (coordinator, 11-17). 0.1.61 went out as Control
with 0.2.15 and is skipped as an engine number. Every 0.1.61 engine label of 07f6f3218 becomes 0.1.62: the Metal STRATA_VERSION, build_hip_linux.sh PKGVER, the
About comment, the issue template, tests/terminal/test_tui2_023_versions.py, docs/data/release.json (engine_version, the 13 engine package names; the
"control_ahead" key is gone with the reverted tool change), and the pages by `tools/release_manifest.py --write` (AGENTS.md, AI_REFERENCE.md, the packaging
pages) and `tools/capability_table.py --write`; both --check pass. tools/test_release_manifest.py: the 0.2.15 "carried engines" case sets its own engine package
again (the live asset list holds this release's engines). Carried packages (the 0.1.59 aarch64 CUDA engine, the DeepSeek engines, the aarch64 Control) stay as
they are; the release build decides the Spark set. docs/data/release.json "published" is the day of the commit: set it on the release day.
2026-11-17 15:36:21 +01:00
Niko1221 1678aff468 docs: SUPPORTERS.md at the top level, next to README.md; a line to it under the avatars of README.md and the seven translated READMEs
Owner item (11-17). .github/FUNDING.yml stays where it is (GitHub reads only that path for the Sponsor button). SUPPORTERS.md: the title "Supporters", one line
("Strata is free and open source. These people support it with a GitHub sponsorship or a coffee. Thank you."), README.md's supporters block with its markers
and comment (9 avatars), and README.md's "Support Strata" section with the GitHub Sponsors and Buy Me a Coffee buttons, copied exactly; no e-mail address.
README.md keeps its section and avatars and gains one line under them: "All supporters and how to support Strata: [SUPPORTERS.md](SUPPORTERS.md)". The seven
translations (docs/lang) get the same line in their language, linking ../../SUPPORTERS.md. A new supporter now goes into both README.md and SUPPORTERS.md.
tools/layout/README.md lists SUPPORTERS.md among the root files. tools/check_links.py (anchors too): 120 current pages, all local links resolve; tools/check --only docs 6 / 0.
2026-11-17 15:33:43 +01:00
Niko1221 07f6f32185 Version 0.2.16 / Control 0.1.62 / engines 0.1.61: app and Terminal 0.2.16, Control 0.1.62, engine packages 0.1.61
Modelled on e39a52e33 (0.2.15, Control) and 38f63bc59 (engines 0.1.60), on the layout-moved tree. Sources: terminal/strata_cli/__init__.py PRODUCT_VERSION;
engine/CMakeLists.txt project version 0.1.62 (the Control number, as the manifest check reads it); engine/metal/CMakeLists.txt STRATA_VERSION 0.1.61-metal;
tools/packaging/build_hip_linux.sh PKGVER 0.1.61; app/desktop package.json, Cargo.toml, Cargo.lock; app/host package.json and package-lock.json;
SettingsUpdates.tsx comment; qa1-storage.test.mjs; terminal/tests/terminal/test_tui2_023_versions.py; the issue template's version placeholder.
docs/data/release.json: tag v0.2.16, product / terminal 0.2.16, Control 0.1.62, engines 0.1.61, the installer, Control and engine file names (the engine set at
0.1.61 includes SYCL, rebuilt in this release; the 0.1.59 aarch64 CUDA engine, the DeepSeek engines and the aarch64 Control stay as they were), "engines_from"
replaced by "control_ahead". The "published" date is the day of this commit: set it on the release day. The pages are written by
`python tools/release_manifest.py --write` (README.md, the seven translated READMEs, AGENTS.md, ten docs pages, tools/packaging README / UPDATES /
ENGINE-COMPONENT) and docs/CAPABILITIES.md by `python tools/capability_table.py --write`; both `--check` pass.
2026-11-17 15:32:24 +01:00
Niko1221 6a3ddb731b docs/media/make_figures.py: the app's icon sprite and font are read from terminal/serve/web
The figure generator read serve/web/sprite.svg and the Outfit font from the repository root; serve/ is under terminal/ since the layout
move, so it stopped on the first read. Both paths now name terminal/serve/web. The script runs again and writes both figures.
2026-11-17 15:12:26 +01:00
Niko1221 4058aa782b Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/
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.
2026-11-17 13:19:21 +01:00
Alex Yong 14a7025266 Monitor: a Mac's GPU temperature and power without root, opt-in with STRATA_MACOS_SENSORS=1 (PR #5793, #5016)
Port of PR #5793 (alexjyong), its sensor commit beff71030 (the Temperature unit commit of the same PR is not part of this). On a Mac the Monitor's GPU
temperature and power cards read a dash because powermetrics needs root. With STRATA_MACOS_SENSORS=1 they are read the way the Stats app reads them: the SMC's
per-chip GPU temperature keys (the HID sensors as the fallback) and IOReport's GPU Energy counter for power, all private macOS calls looked up by name so
a macOS without one leaves that reading empty. Without the variable nothing changes (the owner's decision for #5016: a private-API probe behind an opt-in).

Merged onto the current base (conflicts in serve/telemetry.py with the ADL2 reader, the one-ioreg-per-process reader and the Intel reader: all kept). One change to the
PR in the resolution: the sensors reach only the Monitor's reader. They are attached in monitor_reader (_Metal.attach_sensors), never in gpu_reader, which the
server's VRAM checks and the drafter's sizing also call, so those never start the private calls. Two tests added for that wiring (serve/test_apple_sensors.py
18 tests). docs/MAC.md and the code comment say that the idle readings were also checked on an M5 Max.

Checked on m1002 (M5 Max, macOS 27.3, python 3.9.6, under lockrun): switch unset = the reader is unchanged (no temp or power keys, the old note); switch on =
init 48 ms, 7 of the M5's 8 SMC GPU keys answer, idle 23.4 to 23.6 C over six reads, power 0.0 W idle, all in range, no crash. Loaded readings were not measured.
py-serve on p1004: 1855 passed / 0 failed (base 1836 passed plus one flaky test, test_connection_deadline PeerStall, which also passed on the first head run); tools/check docs passes.
2026-11-17 09:43:09 +01:00
Niko1221 c419756715 Docs: how to open the developer tools in the app window (#5408)
One line under "Sending logs for a bug report" in TROUBLESHOOTING (the coordinator's words): start the app with STRATA_DEVTOOLS=1 on Windows or Linux.
tools/check docs passes.
2026-11-17 09:26:19 +01:00
Niko1221 814d1507f2 docs: SETTINGS.md regenerated from the register (STRATA_I8_SM70 and STRATA_PF_FUSED_SM75_KQ join the rollback table; 83 -> 85 rows)
python -I tools/settings_register.py --docs. The two rows match their siblings (STRATA_EXPERT_I8, STRATA_PF_FUSED_SM75_IQ); the version column fills in after the 0.2.16 tag.
2026-11-17 06:40:20 +01:00
Niko1221 2b6417bef6 docs: --conversation-cache-rewind-keep row (#5862); a comment in the park path says why a slot holding the conversation does not skip the park
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).
2026-11-17 04:34:49 +01:00
Niko1221 d977bdbecb Merge f-1116-tui (fe5917a28), third wave: strata components add-build, an engine built on this computer as a local engine (#5114); Mac test families and two Mac fixes (#4138 follow-ups, M1 retired DeepSeek on Mac, M2 one ioreg per plan); tuner spawn-site and model-folder stub test follow-ups 2026-11-17 01:35:57 +01:00
Niko1221 c392939cc2 Merge f-1116-serve (e05e6e0cc), third wave: #5969 parser part, #4835, the tool-markup retry (on by default; py-serve 1746 / 0 on the branch's tree) 2026-11-16 22:57:50 +01:00
Niko1221 e05e6e0ccc serve: a reply with tools that ends in tool-call markup that is no call is written again once; strata_unread_tool_markup
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.
2026-11-16 22:55:48 +01:00
Niko1221 03fc6c5639 Merge f-1116-metal (e9eff1850), third wave: #4886 (88c4e7939) with its fix-up e9eff1850 (gated on m1002: IQ1_M parity, build, BASE-05 10/10, 4K / 8K IQ2_XS prompts coherent) 2026-11-16 21:50:10 +01:00
Niko1221 bbe17294e4 components: strata components add-build, an engine built on this computer as a local engine (#5114)
A PC the released engines cannot run on (the reporter's Xeon without AVX)
can build its own engine with ./setup --build, but `strata launch` and the
app only start an engine package from the component folder. Owner decision
11-16 21:0x: allow it as an explicitly chosen, unsigned local engine.

`strata components add-build FOLDER` (strata_control/local_engine.py):
- checks the program runs here (`strata --version` within 10 s; an engine
  that stops on an illegal instruction is refused with that reason), reads
  its family and card architectures from BUILD.json (or --backend), and
  refuses a family this PC cannot run;
- copies only the engine's files (the program, its libraries, the picture
  readers, BUILD.json) into <components>/engine/<v>-<platform>-<family>-local
  with a manifest that hashes every file, says "local": true and has no
  signature; nothing else changes and nothing is downloaded;
- makes it the engine in use through the same switch as
  `strata components use`.
engine_component.resolve returns a local package only while it is the chosen
(pinned) one: never by itself, not even when it is newer than the released
engines; a PC whose only engine is an unchosen local build is told
`strata components use <folder>`. STRATA_REQUIRE_SIGNED_COMPONENTS=1 refuses
it like any unsigned package. `strata components engines` tags it "local
build, not signed", doctor adds an info line, `strata components use newest`
goes back and `strata components remove <folder>` deletes it. Texts and
docs/SOURCE_INSTALL.md "Using an engine you built with strata launch" as
approved.

Tests: tests/terminal/test_local_engine_build.py (POSIX stub engines): head
7/7, the code before 5 of 7 fail (p2003-20261116-2114-aa3e); with the
engine/update/library/doctor tests 88 passed (p2003), the spawn-site
registry lists the new --version check (quiet_crash_env).
2026-11-16 21:30:20 +01:00
Niko1221 e55b35a58a Merge f-1116-amd (4df2fa0ac), second wave: the RX 6000 (gfx103x) FP16 prompt path by default (c1fa42c13, gated: p620 build + unit test, boxia default bit for bit) and its docs (4df2fa0ac) 2026-11-16 21:22:37 +01:00
Niko1221 4df2fa0ac1 docs: the RX 6000 FP16 prompt default was not measured on Windows by us (#5151)
docs/AMD_HIP.md, the STRATA_HIP_PROMPT_F16 row: "Windows not measured by us (community runs on
RX 6800 / 6900 XT used `=1`)." after "8K prompts not measured" (wording approved by the coordinator).

c1fa42c13's gates: p620 job 5 (rx6000 + gfx1032 build; arch_defaults_test fails against the base
rule, passes on the head) and the boxia default check (RX 6700 XT: nothing set gives the =1 logits
at 300 / 2000 tokens and prints the default line; =0 gives the old route's logits).
2026-11-16 21:22:08 +01:00
Niko1221 c1fa42c134 HIP: the RX 6000 cards read prompts with FP16 GEMMs by default (#5151)
prompt_f16_resolve: with STRATA_HIP_PROMPT_F16 unset, a discrete gfx1030 / gfx1031 / gfx1032 card
(the RX 6000 package's cards, Linux and Windows) now runs the prompt path's 16-bit GEMMs FP16 in and
out, the route rocBLAS has tuned kernels for on gfx103x. STRATA_HIP_PROMPT_F16=0 keeps the old route
(register entry updated); =1 as before. The 780M rule is unchanged; gfx11, gfx12, gfx1034, the
integrated gfx1035 / gfx1036 and every other part keep the old route. The engine says once at start
that the default is in force.

Measured on an RX 6700 XT (gfx1031, Linux container, ROCm 10.1 / rocBLAS 5.7), Qwen3.8-Flash-Next
IQ2_XS pack, gate2.py forced-token KL: 16 prompts of 2,048 tokens, 64 forced tokens, truth = the
exact FP32 products (STRATA_RDNA2_SGEMM=1), reference = the old default, its repeat bit-identical
(ratio 1.000 [1.000, 1.000]):

  positions   KL old route   KL FP16    FP16 / old [95 %]      top-1 = truth (old / FP16)
  1           0.00681        0.00688    1.010 [0.672, 1.941]   100.00 % / 93.75 %
  2-8         0.00491        0.00552    1.125 [0.923, 1.454]   99.11 % / 98.21 %
  9-32        0.00585        0.00550    0.941 [0.769, 1.184]   97.14 % / 97.66 %
  33-64       0.00675        0.00542    0.802 [0.711, 0.890]   98.63 % / 98.83 %
  all         0.00621        0.00549    0.883 [0.829, 0.948]   98.14 % / 98.24 %

Prompt time (2,000 tokens, 3 interleaved pairs): 0.873 / 0.869 / 0.884 of the old route
(8 prompts of ~2K: 0.862-0.891). 8K prompts not measured (the box's 88 C junction stop line was
reached in the 8K start). Windows not measured on our side (community runs on RX 6800 / 6900 XT
used =1, docs/AMD_HIP.md).

Test: src/core/arch_defaults_test.cpp (the gfx103x rule: fails on the base, passes here).
2026-11-16 20:45:41 +01:00
Niko1221 30ce30b18d settings register: STRATA_METAL_WRAP_PLE (#6024)
8baf90170 (#6024) reads STRATA_METAL_WRAP_PLE in metal/src/engine/window.cpp: 1 wraps the whole Gyro file including the PLE table, as before. Its register entry (status rollback, owner metal/engine) and its generated row in docs/SETTINGS.md; nothing else in either file changes (the PR's own commit ffc779516 regenerated the whole register and the capability table and is not taken). settings_register.py --check passes.
2026-11-16 20:35:36 +01:00
Niko1221 984ec59cda Merge f-1116-guib (6339bb094): #5303 pip removed from the Terminal bundle, Codex / Responses (multi-agent v2 items, client-side tool_search), #2343 pictures from MCP tools, Monitor GPU load wording (#5484), empty GPU cards say why (#5457), and fixes (see the branch's commits)
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.
2026-11-16 19:14:44 +01:00
Niko1221 cd172e1390 Merge f-1116-sycl (f8aad5b3d), third wave: Intel Arc load and VRAM in the Monitor without root through serve/telemetry.py _Intel (#5988, from PR #5994), sessions without an MTP drafter on SYCL (#1492 port), DFlash2 check on the Intel binary (#5138), STRATA_* values of 0 kept in strata-sycl.sh (#4546)
Conflict: sycl/serve/xe_telemetry.py, decided by the coordinator 11-16: sycl's port of PR #5994 wins (one Intel reader, serve/telemetry.py _Intel, for every route; verified live on the A750 as an ordinary user); xe_telemetry.py is sycl's re-export. f-1116-gui's port (88787f851 by Rob Riggs, 0f6994f52) stays in history; 6ebbfdfa8 credits Rob Riggs.
2026-11-16 19:11:19 +01:00
Niko1221 4d12b5dc4b Merge f-1116-metal (55a6dc414): Mac (Metal) fixes of 11-16 (see the branch's commits) 2026-11-16 19:02:54 +01:00
Niko1221 41b820d081 Merge f-1116-amd (e46fd29a0): AMD fixes of 11-16 (see the branch's commits) 2026-11-16 19:02:34 +01:00
Niko1221 cda25b7c00 Merge f-1116-serve (dcde1156c): tool parsing, #6032 R1-R3 and follow-ups, #5924, streams (see the branch's commits)
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).
2026-11-16 19:02:08 +01:00
Niko1221 a45dc7bbe2 Merge f-1116-gui (cb5e504c8), second wave: the 0.2.16 translation pass of the GUI-1116 strings (8 languages + test), Diagnostics shows only unsettled failures, Tasks Run now with an app-loaded model, Monitor host readings fill the engine's gaps, {{model_name}} after a switch, HTTP tool server keys (docs)
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).
2026-11-16 19:01:02 +01:00
Niko1221 48a1e3faf6 Merge f-1116-tui (888c0db15), second wave: Control / Terminal fixes of 11-16 (see the branch's commits) 2026-11-16 19:00:36 +01:00
Niko1221 6339bb0947 MCP: a model that reads pictures gets the pictures its tools return, by default (#2343)
mcp.image_results (7c9b6f3a2, PR #2473) passes an MCP tool's image
blocks to the picture reader, but it was off unless the run config said
true, so a tool that takes a screenshot or reads an image handed the
model only "[image (...): not shown to the model]". The owner's rule is
that every picture-capable model reads pictures by default (coordinator
11-16).

Not set in the config, it now follows the loaded model: on when it has a
picture reader, off when it has none (serve.mcp.resolve_image_results,
called in serve/server.py's start-up right after the Service and its
reader exist). "image_results": false keeps it off and true keeps it on,
as before. The limits are unchanged: at most 4 images per result, 24 MB
of base64 each, PNG / JPEG / WebP with the header checked, cached beside
the config. docs/MCP_IMAGES.md says the new default in plain words.

From PR #2343's request (ds): its other parts are not taken (lifting
pictures out of a tool's text; the reader's working-folder repair).

Test: serve/test_mcp_image_default.py (the module does not import on the
base: no resolve_image_results), 5 pass: on with a reader and no
setting (3 images reach the model), off without a reader, an explicit
false respected, the start-up order; test_mcp_media's omitted-switch case
now expects "not set" (it failed on the base's DEFAULTS); serve.test_mcp
passes (55 in all).
2026-11-16 18:56:53 +01:00
Niko1221 0f09a2eff4 docs: the Responses API table names Codex multi-agent v2's input items (#4210, #5244)
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.
2026-11-16 18:54:58 +01:00
Niko1221 f8aad5b3d8 docs: INTEL.md Monitor readings work without root; the sampler is optional (#5988)
The Monitor part described load and VRAM as coming only from the root sampler. Since 6ebbfdfa8 the shared Intel
reader gets load from the engine's own fdinfo, the VRAM total from Level Zero sysman, and the VRAM in use from
sysman (xe) or the engine's fdinfo memory (i915); the sampler is used first when it runs. PCIe traffic needs PMT.
2026-11-16 18:42:04 +01:00
Niko1221 55a6dc4146 docs/MAC.md: the memory table and the streaming rule follow setup's new rule (#3983)
cf5abac23 makes setup decide resident vs streaming with the engine's own rule (the weights plus 12 GiB beside them against Metal's share). The table's 'needs about' and 'recommended from' columns are recomputed from strata_control/mac_fit.py at cf5abac23, the streaming section's heading and rule sentence say the same, and Gyro-S needs about 43 GB to stay resident. The PR's note that Gyro-S on 64 GB runs out of Metal memory (4d56071aa) is not taken: not measured here. Wording approved by the coordinator.
2026-11-16 18:19:43 +01:00
Niko1221 3c39183e1a HIP gfx103x: no start-up tip asking for STRATA_HIP_PROMPT_F16=1 (#5151)
On gfx103x the engine printed a tip to set STRATA_HIP_PROMPT_F16=1. Users never set variables;
a speed-up is a default or nothing. Measured on an RX 6700 XT (gfx1031, ROCm 10.1, rocBLAS 5.7,
IQ2_XS pack, boxia): the FP16 prompt GEMMs read 2K prompts 11-14 % faster (8 prompts: median
0.873 of the default's time; 3 interleaved pairs: 0.873 / 0.869 / 0.884), but against the
default's repeat floor of 0 (8 of 8 dumps bit-identical) they move the first-token distribution
(KL mean 0.0168, median 0.0022, one top-1 change in 8). So the route stays opt-in and the tip
goes; docs/AMD_HIP.md no longer says the engine prints it. The SYCL copy of the line is left
(SYCL-1116's file; it cannot print on an Intel card). No other behaviour changes.
2026-11-16 18:19:35 +01:00
Niko1221 624cebd604 docs/GYRO.md: Metal has decode and prompt kernels for the pair trellis (#6025)
The Gyro-L sentence said Metal had no kernels for TQP5/TQP6/TQP7; 945265ee8..677616cc9 add them (decode bit-exact, prompt parity passed on the M5 Max). Wording approved by the coordinator.
2026-11-16 18:19:26 +01:00
Niko1221andVop3p 53d37e6f76 docs, bench: PcieAuto on gfx103x, the measurements (#4007, #5984)
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>
2026-11-16 18:02:43 +01:00
Niko1221 dc1c66d213 docs/MAC.md: the first request after a load waits once for the prompt kernels (#5369, part 3)
A user's M2 Ultra waited about 20 seconds for the first word of the first
request after a load (9.2 s of it building the Metal prompt kernels);
later requests started in under a second. One short paragraph, wording
approved by the coordinator, at the top of "Limits (this version)" and
not in the "Measured (M5 Max, 128 GB)" section, because the numbers are a
user's report, not ours.

Check: tools/check_links.py passes.
2026-11-16 17:43:43 +01:00
Catalin a1c56f5447 [Engine] Metal: saturate the fp16 expert activations, the source of the #879 poison
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.
2026-11-16 17:34:31 +01:00
Catalin 26aee8ce4b [Engine] Metal: record non-finite logits in both serve paths so #879 can end and flush a poisoned conversation
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.
2026-11-16 17:34:28 +01:00
Niko1221 fec06e9f78 setup: --output jsonl, machine-readable progress for a program that installs a model (#4941)
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.
2026-11-16 17:25:59 +01:00
Niko1221 6a1e6833d8 models: strata models explain NAME shows where the launch looks for a model (#4887)
When a model shows as "not on this computer", nothing said which folders the
launch had looked in. `strata models explain IQ3_S` (or iq3_s, qwen/IQ3_S)
prints the data folder the launch uses (or --data-dir), every folder name it
tries under models/ (setup's spelling, the lower-case tag, the same name in
other letter case) and whether it is there, the folder it will use and the
.gguf files in it with their sizes; when none is there, the folders that are.
--output json gives the same. It reads folder names and file sizes only.

Catalog.model_folder_trace is the lookup itself and model_folder returns its
pick, so the explanation is the launch's own decision. Text as approved;
docs/TERMINAL_LAUNCH.md "Models you already have" names the command.

Tests: tests/terminal/test_models_explain.py (setup's spelling, the lower-case
tag, another letter case on a case-sensitive disk, nothing found with the
folders listed, no models folder, an unknown name, the CLI and its JSON, and
nothing written); with the cli/models/catalog/docs tests 735 passed on Boston.
2026-11-16 17:22:56 +01:00
Niko1221 d1a6720fcc Merge f-0216-int (current head) into f-1116-amd for the #4884 port (the strictly additive telemetry rule of #5801) 2026-11-16 17:18:56 +01:00
Niko1221 0d7eebeaf8 Docs: how to connect an HTTP tool server that needs a key (#5389)
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.
2026-11-16 17:17:11 +01:00
Niko1221 a154ac9ee5 setup / docs: the RX 6600 / 6600 XT / 6650 XT words for gfx1032 (#5174, #2784)
Fix-up of PR #2784's setup half (cherry-picked as 799764b4e, author kept) with the wording
the coordinator approved: AMD_NAMES["gfx1032"] "AMD Radeon RX 6600 / 6600 XT / 6650 XT (gfx1032)",
the AMD_CARDS list entry without the extra words (it sits inside "all unvalidated"), and the
docs/OLDER_GPUS.md and docs/AMD_HIP.md rows saying the card is in the ready-made RX 6000 engine
from 0.2.16, built, not tested on a real RX 6600.
2026-11-16 17:15:34 +01:00
chenxyz129 799764b4e0 WIP gfx1032: setup ROCM_INDEXES/AMD_ARCHS/AMD_NAMES/AMD_CARDS, docs, setup test 2026-11-16 17:14:56 +01:00