This page is about strata launch, the command of the Strata project's Terminal. One command chooses a model, tunes it,
starts serving and opens a monitor. It also connects your coding apps. In this repository the command is
terminal/strata.py. It sets up Qwen3.8-Flash-Next on the Strata project's engine, which it fetches from that project's
signed update feed; PolyStrata's own models (strata-poly) are set up with START-HERE.bat or ./setup.sh
(INSTALL.md), not by this command. Text previews of the screens are in
docs/terminal-previews/ (launch-*.txt).
- Run
START-HERE.bator./setup.shonce, so thatterminal/.venvexists. The examples call the commandstrata; in the PolyStrata folder run it asterminal\.venv\Scripts\python terminal\strata.pyon Windows, orterminal/.venv/bin/python terminal/strata.pyon Linux. - Run
strata launchand follow the screens, or run a command without screens:
strata launch --plan --family qwen --model q2_0 # what would happen; nothing changes
strata launch --family qwen --model q2_0 --yes --no-tui # download, serve, print the address, return
strata launch --status # what is serving now
strata launch --stopstrata launch --help lists every flag with examples. An unknown model or flag gets a plain message with the closest match.
The command is terminal/strata.py, in the terminal folder of your PolyStrata copy. Setup installs its Python packages
into terminal/.venv, so nothing needs a separate install. The engine (the part that talks to your graphics card) comes
with the first model: strata launch fetches the engine for your card from the update feed (--feed, default:
STRATA_UPDATE_FEED, or the Strata project's signed feed), checks its signature and test-starts it before using it. That
feed and its engines are the Strata project's; they hold no strata-poly.
- Start: saved presets (name, model, context, parallel requests, tuned or not, last used), "Set up from the beginning" or "Use model files I already have".
- Model: the catalog the app and
setup.pyshare, with download size, what it needs (graphics memory and RAM) and "fits / tight / does not fit this computer". This is a warning, never a block. The n-gram table stays on your SSD and is not counted.opicks your own files (a folder or a.gguf). - Folder: where model files are stored, with free space. For a model that is already installed, including one the desktop app installed, it starts where the model is and lists only what is missing (the draft layer, about 5.2 GB; the picture reader, 0.9 GB).
- Context (8K to 512K, with the extra memory each costs) and the memory format (
m: 8-bit or 4-bit). - Pictures: only for models that can read them. They are on by default (
--vision offor "No" turns them off). The reader adds about 0.9 GB. It runs on the CPU for a card under 24 GB and on the graphics card from 24 GB (about 1 to 1.4 GB kept free). The rule is interminal/strata_control/vision_reader.py.--vision gpuor--vision cpuoverrides it per model. If the engine package has no picture reader, pictures default to off and the screen says so. - Parallel requests: "fit to your card" (12 GB: 1, 20: 2, 24: 3, 32 and more: 4; one when the DFlash2 drafter is used) or a number from 1 to 8, with a warning if it will not fit. Check the effective slots after startup.
- Tuning: quick (about 20 minutes), thorough (up to 2 hours) or skip. The screens suggest quick the first time; the
command line skips tuning unless you add
--tune. - Advanced (optional): every engine setting with its default, tuned value and your value. You can edit, reset, or add a
setting by name (checked against the engine's own list, with a warning instead of a refusal). It also shows the exact command and
the matching
strata launchflags. - Access: this computer only (127.0.0.1), your network (LAN address and key), a Cloudflare quick tunnel (needs
cloudflared) or Tailscale (needs it installed and connected). Also the port and an API key. Beyond this computer a key is recommended: PolyStrata makes one, andtturns it off. Without a key the server still starts and warns that anyone who can reach the port can use the model and its tools;--no-api-keydoes the same without screens, and the warning is stronger on a Cloudflare tunnel. - Save as preset and launch. Downloads show progress, then the engine starts and the monitor opens. No web page opens
unless you pass
--open.
Keys: arrows choose, Enter goes on, Esc goes back, ? explains the screen, q leaves.
With two or more usable graphics cards the Model step also asks for a role per card (M main, H helper, O off). On the command
line, --gpu-roles 1=main,0=helper does the same (MULTI_GPU.md).
strata launch --preset "IQ3_XXS 128K" # a saved preset (opens the monitor)
strata launch --family qwen --model iq3_xxs --context 128k --parallel 4 --vision off --tune quick \
--access lan --port 8080 --save-preset "Office" --no-tui
strata launch --model-path /data/models/IQ3_XXS --no-tui # files you already have
strata launch --preset Office --set prefill=65536 --set STRATA_PIN_BY_NEED=1 --no-tui
strata launch --family qwen --model q2_0 --context 64k --restart --no-tui
strata launch --list-presets
strata launch --show-key| Flag | What it does |
|---|---|
--preset NAME |
Start a saved preset. Other flags change that start only; add --save-preset to keep them. |
--family, --model |
The model family and size, for example qwen, q2_0. Any case. |
--model-path PATH |
Use model files you already have: a folder of shards or one .gguf. |
--data-dir DIR, --move-data |
Where new downloads go. --move-data also moves the models you already have. |
--context SIZE |
32k, 64k, 128k, 256k or a number of tokens. |
--kv FORMAT |
Conversation memory format: int8 (default), q4_0 (half the memory), k8v4, fp16. |
--vision off|on|gpu|cpu |
Picture reading. Default: on when the model and the engine can. |
--parallel N |
Requests answered at the same time, 1 to 8. Default: fit to your card; one at a time with DFlash2 (the Auto drafter where the engine has it). |
--mtp on|off |
The draft layer. off saves about 1 GB of graphics memory and is slower. Default: on. |
--drafting auto|mtp|dflash2|off |
Which drafter guesses ahead. dflash2 is for Qwen3.8-Flash-Next only and downloads its drafter once (0.34 GB for the models that have a tuned drafter, 0.52 GB on Intel Arc, else 1.2 GB). If it cannot run, MTP is used and the start says why. |
--gpu LIST, --gpu-roles LIST |
Which cards to use, and a role per card. |
--tune quick|thorough|skip, --tune-allow-small, --retune |
Tuning. --retune measures again; a model tuned before for the same choices on this computer reuses the stored result. |
--set KEY=VALUE |
An advanced engine setting or STRATA_* variable (repeatable). Unknown names get a warning. |
--pool-cores LIST |
Experimental: pin CPU workers to these logical processors, for example 2-14:2 (DETAILS.md). |
--access local|lan|address|cloudflare|tailscale, --port N |
Who can reach the server. address is one address of this computer (see --listen). |
--api-key KEY, --api-key-env NAME, --new-key, --no-api-key |
The key clients must send. |
--save-preset NAME, --list-presets, --delete-preset NAME |
Presets. |
--no-tui |
No screens: serve, print the address and return. |
--yes |
No questions. It never restarts a running model. |
--restart |
Stop a model that is serving other choices (or holds the port), then start these. |
--open |
Open the server's web page once it serves. |
--plan |
Show what would happen and exit. It lists the model, context, picture setting and what would download (0 when everything is here). |
--feed URL|DIR |
The signed update feed. Default: STRATA_UPDATE_FEED or the project's. |
--output human|json |
Output format. |
--status, --stop, --show-key |
Show, stop, or print the key of the running launch (add --preset NAME to pick one). |
Presets are small files in launch-presets/ beside the profiles folder. A run uses the shared profile launch-<name> and the shared
tuning presets (strata presets), so the app sees them too.
Which value an engine option has. The run config of a launch (launch/<name>.json in the state folder) is built again at every launch. For each
option the first of these four that has it wins, and the file, strata status and the engine's command line show the same value:
- Explicit launch values: what this command line says (
--set draft-conf=0.35,--context, ...). They hold for this launch and any launch given the same flags (a saved preset keeps its--setvalues). Leave a flag out next time and it is gone.--set KEY=offremoves the option. - Persisted overrides: the options you set by hand:
user_argsin the model's run config and changes you made toargsin the launch's file since it was written. - Calibrated values: what
strata engine calibrate --apply-resultmeasured for this model and context (calibratedin the file). A different model or context drops them. - Auto: what setup and the policies generate (drafter confidence from the card, cards, memory fit).
The Auto drafter policy rebuilds its options at every start and keeps only layers 1 and 2, so --set draft-conf=0.35 and --set spec=3 reach the engine as given.
--set draft-conf=off cannot remove an option the DFlash2 drafter needs: use --drafting off or --drafting mtp instead.
Launching while a model is serving. The same choices restart nothing and print the running addresses. Different choices
(another context, pictures, access, or another model on the same port) make the screens ask once, "Restart the model with these
settings? Answers in progress stop." With --no-tui the command refuses with one line naming the running model, its port and settings. Add
--restart or run strata launch --stop first. A different --port runs beside the first server; two big models may not fit in graphics memory together, and the launch says so.
Settings you want for every model and preset can go in one file, run-defaults.json, next to the launch-presets folder: ~/.config/strata/run-defaults.json on Linux and macOS, %APPDATA%\PolyStrata\run-defaults.json on Windows. Without the file nothing changes.
It holds one JSON object with server settings only: the keys of the web page's Settings view (sampling with temperature, top_p, top_k, min_p; reasoning_budget_tokens, fit_max_tokens, anthropic_thinking, effort_position, aliases, idle_unload_s, lazy_load, engine_silence_s, api_monitor) and undeclared_tool_calls ("text" or "call"). Each value is checked with the Settings view's rules; a key that is not allowed or has a wrong value is skipped and named at the start, the others still apply. Engine options and mtp do not go here.
{ "undeclared_tool_calls": "call", "sampling": { "temperature": 0.6 } }These are the lowest layer. A setting in the model's own config wins over them, as does a value you change in the Settings view or this launch's own choice (--set idle-unload=60). If you edit the file, the next launch uses the new values. strata launch says which defaults it used. The app does not read this file.
The monitor has seven views. Press 1 to 7 or use the arrow keys.
| Key | View |
|---|---|
| 1 | Overview: model state, speed, GPU load, VRAM, temperature, power, PCIe, CPU, disk, context fill, experts in VRAM, system RAM, recent requests. It reads the server's /metrics, like the browser Monitor. |
| 2 to 6 | Serving, Requests, Engine, Hardware, Logs |
| 7 | Connect: the address, the key (hidden until k) and the setup for each app |
In Connect, c copies a setup, w writes it after a backup and h checks it by sending one prompt and one tool call the way that
app sends them. The list keeps two columns apart. Vendor tested is the app version its maker tested the setup with.
This server is Not checked, Passed or Failed for your server after h.
q asks whether to keep serving in the background or stop. Stopping unloads the model and frees graphics memory.
With two or more cards the Overview shows the busiest card's load, all cards' memory, the hottest card, the total power and the
slowest card's PCIe link, and a "Cards" strip lists up to 4 cards with the link each one trained (5 opens Hardware). Each card
trains its own link, so a card in an x4 slot reads Gen5 x4 beside a card at Gen5 x8. A card that runs narrower than its own
card could go shows both numbers (Gen5 x8 of x16): that is what a card capped to x8 in a x16 slot, or trained down by the board,
looks like. The Power tile says whose power the number is (2 cards · limit 360 W); the Hardware page gives each card its own
ceiling (Power 180 W of 300 W).
The CPU tile shows sockets and cores.
Windows console. In the classic Windows 10 console the monitor switches that window's font to Cascadia Mono when it is installed
and draws the full look. Otherwise it draws a solid-block look and shows one line suggesting Windows Terminal. Nothing is saved and
Windows Terminal, Linux and macOS are never touched. STRATA_GLYPHS=unicode|ascii|solid forces a look.
strata connect lists OpenCode, Codex CLI, Claude Code, oh-my-pi (omp), pi, Hermes Agent, OpenClaw and the DeepSeek Harness
(built into the app).
strata connect opencode # print the file and environment, with address, key, model and context filled in
strata connect opencode --write # write it after asking; anything replaced is backed up
strata connect opencode --check # send one prompt and one tool call the way that app does
strata connect opencode --check --output json| Flag | What it does |
|---|---|
--url URL, --key KEY, --key-env NAME |
The server address and key. Default: the running launch, else http://127.0.0.1:8080. |
--model NAME, --context SIZE |
The model name the server reports and the context it started with. Default: the running launch's, else 32k. |
--preset NAME |
Take address, key and model from a saved preset. |
--yes, --show-key |
Do not ask before --write; print the real key instead of a masked one. |
With --output json the object has the file and environment fields, checks (one entry per check with name, ok, detail,
seconds) and checked_server. ok is true only when both checks passed. The exit code is 0 when both worked and 1 otherwise;
then error says which check failed or that the server could not be reached.
Each configuration was tested against a PolyStrata server at 32K context. Known limits are printed in plain words, for example:
Claude Code needs CLAUDE_CODE_MAX_CONTEXT_TOKENS; OpenCode needs limit.input; Hermes refuses windows under 64K unless set up
as the config does; OpenClaw needs Node 24.16 or newer.
strata models list looks in these places (one function, terminal/strata_control/discovery.py):
- the folder you name with
--install-dirorSTRATA_INSTALL_DIR(then only that one) - the Terminal's own folder
- folders earlier installs remembered in
settings.json - the desktop app's install folder, which the Terminal shares:
%LOCALAPPDATA%\PolyStrata\installon Windows,$XDG_DATA_HOME/strata/install(normally~/.local/share/strata/install) on Linux and macOS
The data folder is the one you set, else the app's (app-settings.json beside its install folder, else a Documents/PolyStrata that holds
models), else PolyStrata's default.
strata models import PATH --plan recognises the Gyro-S and Gyro-M files (TQK6/TQK7 and TQ2_T experts) and every file set setup
installs, also under another name when the header matches. It says which run config, prepared pack, draft layer and picture reader
already exist. Nothing is copied or moved.
strata models explain NAME (IQ3_S, iq3_s or qwen/IQ3_S) shows where strata launch looks for that model's files: the data folder it
uses, each folder name it tries under models/ (setup's spelling, the lower-case tag, the same name in other letter case) and whether it is there,
the folder it will use and the .gguf files in it. When none is there it names the folders that are. --data-dir FOLDER looks in another data
folder, --output json prints the same as JSON. It only reads folder names and file sizes.
strata launch does not refuse. It says "PolyStrata couldn't find an engine for this computer" with the reason, asks whether to go on
(Enter means yes; --yes skips the question), downloads the model, and ends with a message that names the problem and the next step.
The exit code is 0 and nothing is started.
- Intel Arc: the Terminal downloads the released Linux SYCL engine, but its model preparation for Arc is a container build that it does not
run. If the model's files and prepared pack are already on disk,
strata launchwrites the run settings itself. Otherwise it reports the preparation problem. Use Intel setup for the preparation route. - Mixed makes: one engine drives the cards of one make (CUDA: NVIDIA, HIP: AMD). Only those cards are offered, and a model is never split across makes. Two models at once, one per make, is not supported. If the other make has the bigger card, you get one line saying so.
- The model download uses
setup.pyin its control mode (no pip, no engine fetch, no compiler), as the desktop app does. It needs internet and room for the files. - The Linux SYCL package updates through
strata update. Do not copy it into the components folder by hand.