Files
leleka/desktop

Strata desktop preview

Shared Avalonia 12.1.3 / .NET 10 UI with an independent Rust 1.99 core. The preview reads local hardware and evaluates explicit memory requirements. It does not start inference, download a model, or change a running server.

Build and run

From the repository root:

cargo build --locked --manifest-path desktop-core/Cargo.toml
dotnet restore desktop/Strata.Desktop.csproj --locked-mode
dotnet build desktop/Strata.Desktop.csproj --no-restore
dotnet desktop/bin/Debug/net10.0/Strata.Desktop.dll --self-check
dotnet run --project desktop/Strata.Desktop.csproj --no-build

The headless integration check invokes the actual app-local Rust executable. STRATA_DESKTOP_CORE may override it with an absolute trusted executable path. CLI users do not need .NET:

desktop-core/target/debug/strata-desktop hardware
desktop-core/target/debug/strata-desktop plan desktop-core/examples/requirements.json

For a local macOS application bundle, run sh desktop/package-macos.sh. The result is artifacts/desktop/Strata Preview.app. This is a developer build, not a signed/notarized release. It includes the .NET runtime and Rust helper. Windows and Linux have a CI build/headless integration job; their GUI and packaging still require native verification. Hosted CI has not run yet.

What the numbers mean

Requirements schema v1 uses runtime allocation bytes, not compressed file size. The example is synthetic, explicitly labelled, and describes no real model. KV = bytes per token per request × context × concurrency. CPU memory includes weights, KV, workspace, load scratch and host overhead. Dedicated GPU candidates check both RAM and VRAM, retaining a host weight copy when requested. Weight offload candidates are emitted only with explicit backend support in the profile. Shared memory is counted once, with an independent device allocation ceiling. Unknown limits remain unknown. A fit is an estimate, never proof of backend compatibility, quality or speed; available memory must be rechecked before load.

Inventory currently covers CPU/RAM and runtime CPU features, macOS display inventory and NVIDIA via nvidia-smi on Windows/Linux. NPU/provider capabilities and non-NVIDIA GPU probes on Windows/Linux are not implemented. A missing probe result must not be interpreted as absent hardware.

The helper launches fixed probes without a shell, limits their output and time, and collects no prompts, process list, credentials or hostname. UI closes cancel its helper; they have no relation to the user's inference process.

Verification, 2026-10-04

On Apple M3 / macOS / 24 GiB: 11 Rust tests, strict Clippy, desktop build and headless hardware/plan integration passed. Real UI hardware cards, example planning and native JSON picker were exercised. Synthetic tests cover 8/16 GiB, offload, shared/unknown memory, retained copies, concurrency and overflow. No inference code changed; no speed or model-quality claim is made.

Next delivery units

  • STRA-40: actual model metadata, resumable acquisition and preparation.
  • STRA-42: backend capability probes including CPU/GPU/NPU.
  • STRA-44: opt-in comparable benchmarks and measured recipe selection.
  • STRA-50–53: remote SSH preflight, provisioning, tunnel and UI lifecycle.
  • STRA-47: signed platform distributions and native release gates.

See product architecture for boundaries.