Commit Graph
13 Commits
Author SHA1 Message Date
Niko1221 4dc362978a [Quant] Add GPU decode_sk_torch (0.5ms/expert), layer-batched Scale-QAT/eval, and cached BF16 eval refs 2026-11-19 00:52:05 +01:00
Niko1221 f37add3afb [Quant] Fix H64 symmetric Hessian transform, add MACaQ-R compensation, Q8-INT8 Engram, and CUDA S4_K warp kernel 2026-11-19 00:45:14 +01:00
Niko1221 a2b5af0b6d [Engine] Add native Hy4-Flash .strata v1.0 codecs, reader, 4-module Engram, and tools/squant pipeline 2026-11-19 00:38:14 +01:00
Niko1221 48aa03ec4e Metal: a finished batch window beats the serve watchdog (issue #29)
On Metal, Verifier::run_slot_rows returned from its STRATA_GPU_METAL branch without progress_at / progress_beat, so a --batch decode raised no
heartbeat. The only resets left were a new request's prompt read and the rare 1 s sample that falls between two batch windows (0.2-1% of wall time).
Two slots decoding long tool calls (53 tok/s, 3300-3950 of 4096 tokens) with no admission for 60 s ended the engine with "no progress for 60 s
during a request (idle -1)", exit -6 (SOAK-SERVE-1117, M5 Max, 0.1.62). v0.2.15 has the same branch.

The Metal branches of run_slot_rows and run now end like the CUDA / HIP path: progress_at("decode"); progress_beat(). A window that really hangs
in window_run_slots still beats nothing and ends the engine after the limit. CUDA, HIP and SYCL are untouched.
2026-11-17 21:36:10 +01:00
Niko1221 91710dff19 Merge f-1117-batfix (b3b766983), release-check fix 7 (MAP): the build scripts name the moved places (terminal/tools/hip/build_windows.bat: repo root three levels up, -S engine, readers and the zip script in terminal/tools, CRLF kept; build_split_cuda.sh / build_split_hip.sh; engine/sycl/tools/build.sh; tools/docker/Dockerfile.src; engine_flow.sh; update_model_flow.sh; trellis/build.sh) with terminal/tools/test_build_windows_bats.py (red on the old script); the Linux SYCL package bundles libz.so.1 with its notice (build_sycl_linux.sh --bundle-system 'libz.so.1' --include 'licenses/*', tools/packaging/notices/libz.txt, terminal/tools/test_bundle_system_notices.py); tools/layout/checks/path_scan2.py extended, docs_paths.py and docs_paths_explained.txt (0 hits over 86 user-facing pages); the docs name the moved places (56 pages, cmake -S engine, terminal/tools, terminal/serve, tools/packaging, app/, engine/sycl) and the "CMake fetches the pinned llama.cpp" sentences are gone
Gates by the lane: p2006 py-tools, py-tests, docs passed on cebd4489a, bash -n of every changed .sh, the two later docs-only commits on a targeted p1004 run (253 tests + docs 6), and the real build_windows.bat through every CMake configure on the owner PC with a cmake stand-in. 72 files, +911 / -472; no overlap with server.py.
2026-11-17 18:03:25 +01:00
Niko1221 cdb7282caa Merge f-1117-serverscript (5064fab2b), release-check fix 6 (a RELEASE BLOCKER, MAP): python serve/server.py by path works again after the server.py split (the three ROOT / sys.path lines move above the re-export block; the START-HERE / setup.sh source start), and the same class of break in engine/metal/setup_mac.py, engine/sycl/setup_intel.py and engine/sycl/serve/server_intel.py (one sys.path line for terminal/ each); new script-mode tests (terminal/serve/test_server_script_mode.py, terminal/tests/terminal/test_scripts_run_by_path.py); tools/layout/split keeps the re-export block after the file's sys.path lines
The branch's first fix commits (e22685cbb, 2a20dbce6) dropped later changes of 18526b879 in serve/server.py and 5064fab2b restores them: the net diff of the branch against 18526b879 is the 8 files above (server.py +3 / -3 lines moved, terminal/serve/server_parts/ untouched). Gates by the lane on a clean worktree at 5064fab2b: l620 py-serve 1888 / 0, py-tools 1728 / 0; p1006 py-tests 3835 / 1 (test_drafting EngineArguments test_the_server_applies_it_at_every_start: an 8 GB Arc card adds --kv-resident, the same failure on the untouched base 18526b879 on p1006).
2026-11-17 18:03:13 +01:00
Niko1221 1d295787b3 engine: WIN32_LEAN_AND_MEAN before every <windows.h> include that does not define it (a Windows CUDA build blocker: small is #define small char from rpcndr.h)
engine/src/program/generate.cpp has `const int64_t small = old_rule();` (and two more). Without WIN32_LEAN_AND_MEAN, <windows.h> pulls in <rpc.h> / <rpcndr.h>, which
define `small`. In 0.2.15 the first <windows.h> of that translation unit came through gguf_reader.hpp, which defines the lean macro; now conversation_spill.hpp (line 38)
and platform/commit.hpp (line 18) reach it first and define only NOMINMAX. Each include below now gets, next to NOMINMAX, the guarded
`#ifndef WIN32_LEAN_AND_MEAN / #define WIN32_LEAN_AND_MEAN / #endif` (inside the same `#if defined(_WIN32)` block, so a Linux build never sees it): include/strata/core/
conversation_spill.hpp, include/strata/platform/commit.hpp; src/core/{conversation_memory, conversation_memory_test, device_main, pinned.cu, pinned_alias_test,
pinned_shared_win_test, verify}; src/program/generate.cpp; sycl/include/{dpct/device, dpct/kernel, dpct/memory, strata/runtime_files}.hpp, sycl/src/core/{copy_queue, pinned.dp}.cpp,
sycl/src/program/generate.cpp; tests/platform/io_priority_test.cpp (18 includes; the other 25 sites already define it earlier in their file). None of these files uses an API the
lean macro leaves out (winsock, shell, RPC / OLE, multimedia): checked by grep. Not covered: the SYCL Windows build also takes dpct/bindless_images.hpp (d3d11.h, which
reaches rpcndr.h by itself), and sycl/src/program/generate.cpp has the same `small` name; no Windows SYCL package is built in 0.2.16 (the release assets are Linux SYCL).
2026-11-17 17:40:25 +01:00
Niko1221 4d718835cd engine/metal/setup_mac.py, engine/sycl/setup_intel.py, engine/sycl/serve/server_intel.py: terminal/ is on sys.path again
After the layout move these three files put only engine/ (their ROOT) on sys.path and then import setup, strata_control and serve, which are under
terminal/. A Mac source setup (setup.py hands a macOS run to setup_mac.py), an Intel Arc source setup (setup.py hands it to setup_intel.py) and the
Intel server (strata-sycl.sh runs server_intel.py) stopped at their first import with "ModuleNotFoundError: No module named 'setup'" or "'serve'".
Each adds ROOT.parent / "terminal" next to the line that adds ROOT. Found by running every script that has an argument parser from both trees (232
pairs, `python <file> --help` from an empty folder): the other differences are archived scripts under docs/bench-results, which only ran in their old folders.
2026-11-17 17:13:43 +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 42dce6453f engine/sycl/tools/build.sh: the SYCL developer build configures engine/sycl
The script takes the checkout root from `git rev-parse --show-toplevel` and ran `cmake -S $repo/sycl` twice (the configure and the later
switch for I8_ESIMD). sycl/ is engine/sycl since the layout move, so both would have failed. The two lines name $repo/engine/sycl.
2026-11-17 16:55:10 +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 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 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