mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #686] [CLOSED] Add a tiny zero-dependency terminal launcher for Strata #2766
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2766
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/686
Author: @Ayshinko
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:feature/minimal-strata-tui📝 Commits (10+)
b0dda4bAMD: gfx1101 (RX 7800 XT, #254 by jhohertz) and gfx1200 (RX 9060 XT, #256 by Efeisot) as community-validated cardscc97fcdsetup: AMD layer splits with --gpus (every chosen card a supported AMD arch; the engine compiled for each)e9e2ba3pinned (#243 follow-up): the shared-memory-budget cap on the sliced pin is opt-in (STRATA_ARENA_PIN_GIB=auto) - by default the arena pins as in 0.1.30; on this 64 GB PC the cap pinned 26 instead of 30 GiB and cost ~20% prompt speed and 2-4% IQ3_S decodecacffa9CS-T speed: the file tier fetched in parallel, PCIe planning without file reads, a partial pin of the RAM tier, bit-exact AVX2 multi-token kernels for Q4_K / Q5_1 / Q8_0 experts, decode-only tier statsa348c7aMerge branch 'f-131-srv' into r131-q4b93a00cMerge branch 'f-q4-on242' into r131-q48f5148cCS-T: the partial pin at most 24 GiB (STRATA_PARTIAL_PIN_GIB), the Q4_K/Q5_1/Q8_0 multi-token kernels from two tokens on5ffda19CS-T: the GGUF-in-place prefetch asks Windows for all of a layer's missed slices at once (PrefetchVirtualMemory)ed6c124#253: the 8 GiB arena pin cap only under WDDM; STRATA_ARENA_PIN_GIB; the split's prompt chunk steps down450149d--split-skip-if-fits (opt-in): an auto split runs on the main card alone when it holds every profiled expert + KV📊 Changes
3 files changed (+1702 additions, -0 deletions)
View changed files
➕
START-TUI.bat(+9 -0)➕
start-tui.sh(+4 -0)➕
tools/strata_tui.py(+1689 -0)📄 Description
A small interface, not another layer
This adds an optional terminal launcher for Strata with one deliberately narrow goal: make the existing setup / prepare / start workflow easier to use without building another management stack around it.
It is intentionally small.
There is no second server, no reverse proxy, no daemon, no frontend framework, no background dashboard, and no additional Python dependency.
The launcher is essentially a thin terminal view over functionality Strata already owns.
What it does
From one compact terminal screen a user can:
Prepare, start and stop automatically switch to an operation-log view, so there is no constantly repainting dashboard in the background.
Press Esc/B and you are back at the model list.
Strata remains the source of truth
A key design constraint was to avoid creating a second compatibility database.
The launcher reuses the current Strata checkout for model support and GGUF handling instead of trying to teach a UI its own version of Strata.
Where available it consumes the existing definitions/helpers from
setup.pyand uses Strata's owntools/gguf_reader.py.That means model discovery can validate the GGUF metadata and tensor directory — including architecture, split/shard information and routed expert tensors — without reading tens of gigabytes of tensor payload just to identify a model.
If Strata changes its supported families or formats, the launcher is designed to follow Strata rather than maintain a parallel handwritten whitelist.
The launcher also follows whether the current checkout still has Strata's custom
--variantbuilds: on a checkout without them, variant labels and flags are simply not offered.READY means actually ready
An installed config is shown as READY only when the artifacts the current Strata actually needs exist (the engine binary, the prepared pack's completion markers and tokenizer, the tokenizer directory, every GGUF shard the config points at, and the
--mtpdraft runtime). Only file existence is checked — never the multi-GB payloads.If a prepared pack was deleted, the config is never shown as READY: the raw GGUF is offered again as PREPARE and Enter re-runs the current
setup.py; if the source GGUF is gone too, the config is shown as BROKEN with the reason.What it deliberately does not do
This PR does not introduce:
If the launcher is never opened, normal Strata operation is unchanged.
The idea is closer to a small installer/menu utility than an application layered on top of Strata.
Why
Strata already has the difficult parts: model validation, preparation, runtime configuration, the server, Chat and Monitor.
This PR adds only the small missing interface between those pieces and a user sitting at a terminal.
The path is deliberately short:
model -> prepare -> start -> logs
I previously experimented with a significantly larger manager UI.
That experiment made the trade-off clear: for this job, less is better.
This version takes the opposite approach:
small surface area, existing Strata logic, zero extra runtime architecture.
Nothing in this PR is required for existing users. It is simply an optional convenience for users who prefer a compact terminal workflow.
Files
tools/strata_tui.py— the launcher (no third-party dependencies; run withpy -3 tools\strata_tui.py)START-TUI.bat/start-tui.sh— tiny Windows/Linux launchers (same style asSETUP.bat/setup.sh)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.