Commit Graph
22 Commits
Author SHA1 Message Date
Niko1221 cc06e2d26d GitHub's Windows checks: four tests read source files with \n and failed on a CRLF checkout; the diagnostic step used the old path
GitHub's windows-2022 runner checks out with core.autocrlf=true, so every source file has CRLF line ends there. Four tests read a source file and match it with \n and failed only there since the 0.2.16 push (main run 44412709932 and later):
- app/host/tests/agent-mcp-model-timeout.test.mjs, "the host hands the model's setting to the agent" (server/index.mjs, server/native-control.mjs)
- app/host/tests/monitor-gpu-load-hint.test.mjs, "the web Monitor shows the same sentence on its GPU load label" (terminal/serve/web/app.js)
- app/host/tests/shell-languages.test.mjs (src-tauri/src/shell.rs)
- terminal/serve/test_web_history.js, run by serve.test_web_history.HistoryInNode (serve/web/app.js)
They now read the file with CRLF turned into LF. Reproduced on the owner PC with a checkout made under core.autocrlf=true: the same three host tests and the same history case fail there and pass with LF and, after this change, with CRLF. The product code is not involved; it is the same text.

.github/workflows/check.yml: the diagnostic step imported ./apps/host/server/hardware.mjs (ERR_MODULE_NOT_FOUND since the layout move); it is app/host now.
2026-11-20 07:11:56 +01:00
Niko1221 efd0c98ba0 CI: the Metal workflow's Configure and Build steps are separate steps again (#6206)
From PR #6206 (TJ-WANG-OK; its commit aa2d74b2d), author kept. The Build step's "- name:" line was glued to the end of
the Configure step's last line, so the workflow had one step too few and two `run:` keys in one step. The line is
split. The PR's change, redone by hand because the file's text moved (metal/ -> engine/metal/).
New test (ours, the PR had none): terminal/tests/terminal/test_workflow_steps.py reads every workflow as plain text
and fails on a step that starts in the middle of a line or has two `run:` keys; it fails on the old
metal-build.yml (2 cases) and passes with the fix.
2026-11-19 13:12:17 +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
Niko1221 be73f45bee snapshot workflow: the Windows runner gets twice tools/check's 900 s for the config snapshot
snapshot.yml "windows-2022" failed on 09b603886 and baf16363b with "timed out after 900 s" after 43 and 45 of 51 tests. Not a hang:
the suite grew in 0.2.14 (the drafting round trips and the fresh-install tests simulate about 1,000 launches) and the runner is slow
on this kind of work. Measured on the owner PC (Windows 10, Python 3.13, tools/check --only snapshot, nothing else running):
51 passed in 3m20s; tests 1-45 take about 185 s of it, so the runner is about 5x slower here (its py-tools step takes about as long
as the owner PC's). Linux CI runs all 51 in 4m25s-5m15s.

The Windows job passes --timeout-scale 2 (1800 s for the step) and the job's limit goes from 30 to 45 minutes; Linux and every
local run keep 900 s. No test is skipped or shortened.
2026-11-15 22:53:09 +01:00
Niko1221 f40f8cacaa Build the engine without llama.cpp's MMQ kernels by default
STRATA_MMQ now defaults to OFF. -DSTRATA_MMQ=ON still builds the old path
(llama.cpp's MMQ prompt kernels and strata_kq) for A/B runs; nothing is
removed in this release.

What changes for whom:
- A fresh source build (cmake with no STRATA_MMQ given): the engine has no
  MMQ kernels and no strata_kq library. On HIP, STRATA_PREFILL_MMQ=ON alone
  no longer builds MMQ; it needs STRATA_MMQ=ON too.
- setup re-runs that compile the engine (CUDA build/ and build-cuda12/, HIP
  build-hip/): setup passes -DSTRATA_MMQ=OFF itself, because a build folder
  configured before keeps STRATA_MMQ=ON in its CMake cache. On ARM64
  (DGX Spark) setup passes ON: not measured without MMQ, kept as in 0.2.13.
  After the CUDA build, setup's existing step removes an older strata_kq
  library from the engine folder.
- Packages: the Linux CUDA package (build_cuda_linux.sh), the Windows CUDA
  zip (build_cuda_windows.py), the HIP Linux package (build_hip_linux.sh),
  the gfx1103 package (build_hip_gfx1103.sh) and the Windows HIP build
  (tools/hip/build_windows.bat) name -DSTRATA_MMQ=OFF and ship no strata_kq
  library. STRATA_CMAKE_EXTRA=-DSTRATA_MMQ=ON comes after it and builds the
  old path.
- The linux-aarch64 package (spark/build_engine.sh, used by
  build_cuda_linux_aarch64.sh) names -DSTRATA_MMQ=ON: unchanged.
- The Docker source image builds the targets the tree has
  (packaging/engine_targets.sh) instead of naming strata_kq, which no longer
  exists by default.
- CI (backends.yml, CUDA job) builds the strata target only.
- The split engine (build_split_hip.sh) is unchanged: its targets do not use
  the MMQ libraries.

Tests: test_build_cuda_windows.py pins the new configure line and the
override order; test_setup_stale_stamp.py checks that setup names the value
(OFF on x86_64, ON on ARM64).
2026-11-14 20:01:14 +01:00
Niko1221 e5806740a6 DeepSeek out (6/7): the DeepSeek engine's sources, tests, lab and CMake go
- src/dsv41, include/strata/dsv41, tests/dsv41, tools/dsv41_lab and data/dsv41 are deleted (no other target
  compiled or included them: checked with git grep for includes and CMake references).
- CMake: the STRATA_BUILD_DSV41 block of cmake/strata_gpu_engine.cmake (strata_dsv41_kernels, strata-dsv41, the
  ds4_* benches and tests, the hip_extra.h force-include), the CPU-only bench macro (cpu.cmake, CMakeLists.txt),
  the DeepSeek default architectures of cuda.cmake and the BMI2-off branch of strata_ggml.cmake. All were behind
  STRATA_BUILD_DSV41 (default OFF; the release scripts pass their architectures), so every other target is
  configured as before.
- Mac, the two pieces that cannot wait: metal/CMakeLists.txt no longer builds strata_ds4 (it compiled src/dsv41),
  and metal/src/engine/exl3_legacy_stub.cpp goes (a member of the strata_metal_kernels glob that included
  include/strata/dsv41/exl3.hpp). The other DeepSeek Metal files stay for the separate Metal commit.
- CI: the Metal job builds strata only.
- data/settings-register.json: the 42 names only the DeepSeek engine read go; STRATA_FORCE_AVX2,
  STRATA_METAL_KEEP_FREE_GB and STRATA_METAL_LEAVE_SHARE keep their other readers. Every other entry is unchanged
  (tools/settings_register.py --check: no difference).
- tests/quant/check_no_ggml.sh: no ds4_gg_cpu pattern.
2026-11-11 11:44:22 +01:00
Niko1221 ffb3d9b31b Merge main (87dfca0e7) into f-own-int: the 0.2.14 app branch, fixtures and CI fixes, the Qwen4-readiness tools, the shape-engine build scripts
Conflicts (each resolved by keeping both sides):
- .gitattributes: f-own-1b's LF rules for third_party/strata-gguf-py and
  third_party/strata-llama, and main's *.jinja LF rule.
- packaging/build_cuda_linux.sh: f-own-1b's optional STRATA_GGML_DIR
  override ($ggml) and main's shape_setup line; the cmake line is
  $ggml ${STRATA_CMAKE_EXTRA:-} $shape_cmake (no third_party/llama.cpp path).
- packaging/build_hip_linux.sh: ${GGML[@]+...} (the optional override) plus
  main's $shape_cmake.
- spark/build_engine.sh: $ggml plus main's ${STRATA_CMAKE_EXTRA:-} $shape_cmake.
packaging/build_sycl_linux.sh, setup.py and tools/test_setup_choices.py
merged by themselves.
2026-11-10 08:37:32 +01:00
Niko1221 2e25954e57 ci: a diagnostic step on the Windows host job shows what Windows PowerShell 5.1 children return under a PowerShell 7 parent (hardware probe, setup cpu_info) 2026-11-10 00:32:25 +01:00
Niko1221 80cde871b9 ci: the macOS check jobs keep their logs and upload them on a failure, as Linux and Windows do 2026-11-09 22:05:44 +01:00
Niko1221 e43ff9885c release scripts, Docker, CI, Mac setup: ggml is the vendored third_party/strata-ggml, nothing passes STRATA_GGML_DIR by default
build_cuda_linux.sh, build_hip_linux.sh, build_split_{cuda,hip}.sh, build_dsv41_{cuda,hip_linux}.sh, build_dsv41_windows.bat, mac/build_dsv41_engine.sh,
spark/build_engine.sh and metal/setup_mac.py take an optional STRATA_GGML_DIR / GG / LLAMA override (kept for two releases) and no longer require or fetch a
llama.cpp tree for the engine. Docker: the Terminal stage no longer downloads llama.cpp (gguf-py is in the Terminal archive; the image checks it) and
docker/entrypoint.sh no longer links a seed. backends.yml and metal-build.yml drop the llama.cpp fetch and the override. strata-vision still builds from llama.cpp's
own tree in these scripts until it is vendored (next commit).
2026-11-08 23:26:43 +01:00
Niko1221 b3f696ecad link check: tools/check_links.py for the current pages (a docs step in tools/check, a docs.yml workflow, a test), a baseline report for the archived pages, and the one broken anchor it found 2026-11-07 23:37:51 +01:00
Niko1221 456b07cbe7 backends.yml: SYCL job on oneAPI 2026.1 from Intel's apt repo (the engine does not compile with 2025.3.2) 2026-11-07 14:12:13 +01:00
Niko1221 b6769b7f9a GitHub Actions: fast checks, config snapshot and backend compile-only workflows
check.yml: tools/check steps as one job each on Linux and Windows (a macOS job that reports and does not block until its first green run), path filters that include the shared contracts and packaging/.
snapshot.yml: the config snapshot on Linux and Windows.
backends.yml: CUDA 12.9 and 13.0, HIP (ROCm 7.2) and SYCL (oneAPI 2025.3) compile-only in the vendors' containers, Metal strata and strata_ds4 on a macOS runner; llama.cpp at the commit pinned in setup.py, ccache caches. The existing workflows are unchanged.
2026-11-07 13:25:01 +01:00
Niko1221 df20d77845 Docker docs, compose defaults, scripts and the file test name the 0.2.7 image tags (0.2.7-cuda13 and the other flavors) 2026-10-27 01:25:46 +01:00
stuchapin909 6c09a1929c CI: build the Metal engine on macos-26 (#3870, #3824)
metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 (macOS 26 SDK) and MTLCompileOptions.mathMode (macOS 15 SDK) behind @available, a run-time check;
the names must still exist in the SDK the engine is compiled against, so the metal-link job failed on the macOS 14 SDK on every pull request that
touched src/, include/ or metal/. The job now runs on macos-26 (the runner-images repository lists a macos-26 image). Ported from PR #3870
by stuchapin909. A GitHub Actions run cannot be made here: the author ran this workflow on his fork; the first run after the merge proves it.
#3824 changes the same line with macos-15 and an Xcode 26.0.1 path pin, and is not taken.
2026-10-26 18:57:30 +01:00
Niko1221 6f8800aefe Version bump for 0.2.3: app 0.2.3, engine and Control 0.1.48
Cargo.toml and Cargo.lock, desktop and host package.json and lock, PRODUCT_VERSION, CMake project and Metal STRATA_VERSION, build_hip_linux PKGVER default, About comments, tests that pin the number, Docker image tags and docs (0.2.3-<flavor>), download names in the READMEs, AMD_HIP.md and UPDATES.md, AGENTS.md, the bug report placeholder. The engine moves too: it shares the CMake number and its source changed since 0.2.2 (DFlash2, verify and prefill paths). A new test checks every place agrees and that a 0.2.2 install (Control 0.1.47) is offered Control 0.1.48.
2026-10-22 23:33:15 +02:00
Niko1221 e6dbbc312a metal: no expert-cache loan for the prompt path (Prefill::relayout and the refill into given-back allocations), auto expert cache capped at 1500 slots; CI: Metal build job on a macOS runner 2026-10-22 12:55:09 +02:00
Niko1221 1c9bfd2a6e Version bump for 0.2.2 (proposed): app 0.2.2, engine and Control 0.1.47
Cargo.toml and Cargo.lock, desktop and host package.json, PRODUCT_VERSION, CMake project and Metal STRATA_VERSION, build_hip_linux PKGVER default, About comment, tests that pin the number, Docker image tags and docs, download names in the READMEs, AMD_HIP.md and UPDATES.md.
2026-10-21 02:57:22 +02:00
Niko1221 578bb6aa7a Docker: publish the images from 0.2.1 (workflow, signed-feed fetch, local script)
- .github/workflows/docker-images.yml: manual only (workflow_dispatch) with the release tag as input; a plan job lists the flavors the
  release has an engine package for; one job per flavor builds the image and, only with push on, pushes ghcr.io/niko1221/strata:<version>-<flavor>
  and latest-<flavor> with GITHUB_TOKEN (packages: write).
- docker/fetch-engines.py: downloads the engine package from the release and checks it against the signed update feed (feed signature, archive
  size and SHA-256, manifest hash, package signature, every file), the same code as `strata update`. Flavors cuda13, cuda12, rocm-gfx120x,
  rocm-gfx110x, rocm-gfx1151 (the halo package), sycl (only if the feed lists one).
- docker/publish.sh: the same steps by hand (fetch, build, start check, push only with --push).
- Fix: docker/build.sh did not copy docs/TERMINAL_LAUNCH.md, which package_terminal.py needs; no image could be built from a clean tree.
- Dockerfile: OCI source/url/documentation labels (ghcr links the package to the repository).
- Compose files and docs/DOCKER.md name the 0.2.1 tags on ghcr.io; DOCKER.md has a maintainers section. Tests for the scripts, the workflow and the fetch.
2026-10-19 20:57:22 +02:00
Niko1221 eac694ae4c Issue and PR reset bot: intake check, /reopen, 5-day sweep, with node tests 2026-10-19 16:10:26 +02:00
Niko1221 046bdc83d9 Titles start with their area: Area dropdown and title prefix in the issue forms, a benchmark form, a PR template line, a title-area workflow 2026-10-19 07:42:27 +02:00
Niko1221 64a91dcdc0 terminal: strata_cli, strata_control, bin/strata and the terminal tests
The command-line and TUI client with profiles, doctor, monitor, serve, calibrate,
bench, the runtime owner, component registry and offline policy, plus tests/terminal,
the component/offline tests, the smoke tools, the terminal CI workflows and the
terminal docs. Tuning and Time-skip modules of strata_control follow in their own
commits (strata_cli/cli.py imports them lazily).

From the owner's rebuild branch strata/rebuild-2026-10 (1e4171e2, based on 296b59d2).
README.md and tools/calibrate.py applied as small 3-way patches.
2026-10-15 10:23:23 +02:00