okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
4 folders29 files

files

locks/
mac/
notices/
templates/model-release/
ENGINE-COMPONENT.md16.7 KiB
README.md12.4 KiB
UPDATES.md29.2 KiB
acceptance_matrix.md314 B
binary_deps.py14.3 KiB
build_cuda_linux.sh5.6 KiB
build_cuda_linux_aarch64.sh2.7 KiB
build_cuda_windows.py11.0 KiB
build_hip_gfx1103.sh2.7 KiB
build_hip_linux.sh9.4 KiB
build_split_cuda.sh2.3 KiB
build_split_hip.sh4.1 KiB
build_sycl_linux.sh5.7 KiB
build_vision_mac.sh2.4 KiB
build_vision_windows.bat4.2 KiB
collect_libs.py12.1 KiB
engine_targets.sh1.1 KiB
feed_tool.py33.9 KiB
install.ps114.2 KiB
install.sh9.4 KiB
lock_wheels.py7.5 KiB
make_local_feed.py6.8 KiB
make_model_release.py31.7 KiB
monitor_bundle.py18.5 KiB
package_engine.py21.0 KiB
package_terminal.py30.1 KiB
shape_build.sh2.3 KiB
smoke_terminal.py11.6 KiB
stage_tuning.py3.4 KiB

Strata packaging: targets, recipes and locks

This page is for developers who build the desktop app, the Terminal archive and the engine packages. To install Strata, use docs/INSTALL.md. It describes the current release (app and Terminal 0.2.15, Control 0.1.61, engines 0.1.60). How packages are signed and published is in UPDATES.md, and the package format is in ENGINE-COMPONENT.md.

Release assets show what was published; the platform guides and retained reports show what was tested. A published package does not qualify every GPU, model or feature on its platform.

Quick start

I want toSee
Build the desktop appDesktop app
Build an engine packageENGINE-COMPONENT.md
Build the Terminal archiveThe Terminal archive
Sign and publish a releaseUPDATES.md
Test an update against a local feedUPDATES.md

The target matrix

Each row is an OS, CPU ABI and backend. A row is qualified only after the acceptance checklist (below) has run on it.

TargetApp artifactEngine package recipeStatus
macos-arm64-metal.app and .dmg (Tauri)Metal strata, bundled with strata-vision (packaging/build_vision_mac.sh)Built. Self-test passes from the mounted DMG. Inference measurements are in MAC.md. Signing: packaging/mac/sign-and-notarize.sh (mac/README.md).
darwin-arm64 Terminalself-contained .tar.gzanyBuilt and verified. Runs from a moved directory with no system Python.
windows-x86_64-cudaNSIS .exe (Tauri)cuda13 and cuda12Built and tested on a Windows PC with an NVIDIA card: silent install with a System32-only PATH, a real model, an agent chat.
windows-x86_64-hipNSIS .exe (Tauri)tools/hip/build_windows.batPublished. Strix Halo inference is recorded in STRIX_HALO.md. This does not qualify every discrete Radeon card (AMD_HIP.md).
linux-x86_64-cudaAppImage (Tauri)packaging/build_cuda_linux.sh, built in a glibc 2.35 chrootcuda13 built and tested on RTX 3060 and RTX A4000 (app in the browser, a real model, a picture). cuda12 built.
linux-x86_64-hipAppImage (Tauri)packaging/build_hip_linux.shrx9070 (gfx1200 / gfx1201) built and tested on a Radeon AI PRO R9700. rx7900 (gfx1100 / 1101 / 1102) built, not run on an RX 7000 card. rx6000 (gfx1030 / 1031) built, not tested on a real RX 6000 card.
linux-aarch64-cudanone (no AppImage for arm64)packaging/build_cuda_linux_aarch64.sh, built on the DGX Spark (cuda13, sm_121)The engine package and the Terminal archive built and tested on one DGX Spark (DGX_SPARK_LINUX.md). Not tried on any other arm64 machine.
linux-x86_64-syclnonepackaging/build_sycl_linux.sh (one JIT package for Alchemist and Battlemage)Engine package built and tested on an Arc A750. Battlemage is supported and untested by us.
windows-x86_64-syclnonenoneGated. No native Windows SYCL path exists upstream.
macos-x86_64-*nonenoneUnsupported. The macOS engine is Apple Silicon only.

Cross-compilation is not attempted for the desktop app. Tauri bundles are per OS, and the Windows installer is built on Windows. The Python contracts, the owner transport, the checks and the engine build recipes are portable.

The private Node runtime

The desktop bundle ships a pinned standalone Node beside the App Host, so an end user supplies no runtime. It is not committed (about 117 MB, an input rather than source). Fetch and verify it:

apps/desktop/scripts/fetch-node.sh                 # host platform
apps/desktop/scripts/fetch-node.sh --target linux-x64
apps/desktop/scripts/fetch-node.sh --check         # verify what is installed

The script refuses an archive whose SHA-256 differs from the digest recorded for that target. The digests come from nodejs.org's SHASUMS256.txt for the pinned version. To bump the version, change STRATA_NODE_VERSION, add the new digests and run --check. fetch-node.ps1 is the Windows equivalent.

Desktop app

cd apps/desktop
./scripts/fetch-node.sh                                                      # the sidecar (once)
npm install --prefix ../host && npm --prefix ../host run build                # the UI
cargo tauri build --bundles app                                              # macOS: Strata.app
./scripts/make-dmg.sh                                                        # macOS DMG (headless; Tauri's default step needs a Finder session)
cargo tauri build --bundles nsis                                             # Windows, on Windows: per-user NSIS installer
cargo tauri build --bundles appimage deb                                     # Linux, on Linux

The Windows installer is per-user and needs no elevation (installMode: currentUser in tauri.conf.json). Models, profiles and sessions live outside the install directory (~/.strata and the platform state directories), so uninstalling the app does not remove them.

Build boxes build without a signing key: the default tauri.conf.json has createUpdaterArtifacts: false. Signing happens on the release PC (UPDATES.md).

Strata Control and the engine in the installed app

The installer carries Control, and on a Mac the Metal engine too. Neither fetches anything when it runs.

Control (<install>/control, built by apps/desktop/scripts/stage-control.py) is the same bundle as the Terminal archive: the pinned CPython 3.12.15, the hash-locked wheels, strata_control, strata_cli and serve, plus a BUNDLE.json with the interpreter and lock digests. The host finds it beside itself or through STRATA_CONTROL_DIR, runs it on its own interpreter (PYTHONNOUSERSITE=1, no PYTHONHOME or PYTHONPATH) and starts a model with strata profile create|use-config and strata runtime start. The engine then runs under the owner runtime (loopback TCP and a 256-bit token on Windows, a private socket elsewhere; a Job Object or process group; leases), and a second client such as the Terminal can attach to the same instance.

The app starts each engine with runtime start --die-with-pid <host>, so the engine ends with the host. The host ends with the shell (a kill-on-close Job Object on Windows; the host watches its parent everywhere). The app is a single instance: a second launch focuses the open window. One app can run several engines (profiles app-1, app-2, ...). Every close path is in docs/CLOSING.md.

The engine. The Windows and Linux installers carry no engine. On the first start the app shows the engine for the card with its size and one Download button (with progress and resume), or installs an engine file the person already has ("I already have the file"). The Mac dmg keeps its small Metal engine in <install>/engine-bundle/<package folder>. Either way the engine ends up in the per-user component folder, after the package is checked against its manifest (%LOCALAPPDATA%\Strata\components, $XDG_DATA_HOME/strata/components, or STRATA_COMPONENTS_DIR), where Control finds it like any engine that strata update installed:

components/engine/<version>-<platform>-<backend>[-<variant>]/
    engine-component.json     the manifest (see ENGINE-COMPONENT.md)
    strata[.exe]  *.dll | *.so   the binary and the GPU runtime libraries beside it

A run config names it as "exe": "component:strata-engine". At start, strata_control/engine_component.py picks the package for this PC (platform, then the backend its GPU needs, found with nvidia-smi, rocminfo or sycl-ls, or STRATA_ENGINE_BACKEND), checks every file's size and SHA-256 and puts the package folder first on the library path. A mismatch is EngineIntegrityError and nothing starts.

When no package matches, strata serve ends with exit 5 and "No engine for this PC was found". It never fetches. Before that point everything is a warning: strata launch says it could not find an engine, asks whether to go on, downloads the model and ends with the next step (exit 0, nothing started). The app shows the same warning with an "Update engine" button in Settings. packaging/package_engine.py makes a local package from a build folder.

No acquisition at run time. STRATA_NO_ACQUIRE=1 (set by the Tauri shell for the host, and by the host for Control) makes strata_control/acquisition.py refuse pip, downloads and compiles. On the host side server/acquisition.mjs refuses the llama.cpp and cloudflared fetches (a connector placed in components/cloudflared/ is used as it is). Models the user chooses to download are a separate, explicit action. apps/host/tests/no-acquire.test.mjs fails on any outbound request or installer process. apps/desktop/scripts/installed-flow.mjs drives an installed app end to end.

The Terminal archive

The Terminal bundles a private Python and its dependencies for windows-x86_64, linux-x86_64, linux-aarch64 (DGX Spark) and darwin-arm64 (package_terminal.py --target ..., built on the target OS).

What a platform must produce before it is qualified

  1. The app launches and the window serves the supplied UI from the host's origin.
  2. The owner transport works: one owner per installation, a second client attaches, a stale owner can be recovered, and no client can stop a process it does not own.
  3. Real inference on a supported pack, with the engine build hash and the model hashes recorded.
  4. A qualification run on that platform, with raw evidence kept. The Mac-first run in October 2026 is the earlier example: history/docs/work/QUALIFICATION-KIT.md.

Release checks and gaps

History / older measurements