Documented tree replacement (the history has no git-subtree metadata): 3-way merge of the old subtree (570201a:engine/strata) against upstream 41cf05a06a25dd29103b7b27a2279a3f60c21876 (2026-10-25), merge base = the old pin d9ab8435 (tree-identical to upstream 5b734e42; d9ab8435 is not an ancestor of upstream main). Local patches re-applied by hand where they conflicted (15 files): STRATA_CUDA_STATIC profile, experimental KAR experts and KAR PLE arms, keyless V-only arm (now beside upstream's K8V4 hybrid KV and fused norm+rope). Details, conflict table and left-out files are in docs/upstream.md. Left out (weights, captures, logs, media): new bench/results (2022 files), binary media and app assets (61), docs/work/evidence (24), *.bin / *.gguf data files, and the 7 files the first import already left out. scripts/build-cpu.sh: build the 11 CPU tests upstream registered since the old pin (they ran as "Not Run"). Checked: build-cpu.sh 16/16 ctest in WSL; sm_86 CUDA objects of the patched files compile, also with the KAR macros on. No GPU run, no quality gate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
101 lines
5.2 KiB
Markdown
101 lines
5.2 KiB
Markdown
# Terminal quick start
|
||
|
||
This page is for people who already have a model and want to read a running server, rerun it from a saved profile, or measure it.
|
||
To set up and serve a new model, use [`strata launch`](TERMINAL_LAUNCH.md).
|
||
|
||
The commands use the `strata` command from the [Terminal install](INSTALL.md#the-terminal), which carries its own Python.
|
||
In a source checkout, type `python strata.py` in place of `strata`, from the repository root. These commands read, prepare
|
||
and rerun a model you already have; they do not download one. All options, permissions and limits are in [TERMINAL.md](TERMINAL.md).
|
||
|
||
## Read a running server
|
||
|
||
With Strata already serving locally, get one machine-readable snapshot:
|
||
|
||
```sh
|
||
strata status --url http://127.0.0.1:8080 --json
|
||
```
|
||
|
||
The interactive monitor comes with the installed Terminal. Open the one-screen Overview:
|
||
|
||
```sh
|
||
strata monitor --url http://127.0.0.1:8080
|
||
```
|
||
|
||
The Overview puts serving state, prompt and answer speed, batch/queue pressure, four selected GPU rows, requests and activity on one screen. Press `1`–`7` for the views (`7` is Connect), `Space` to freeze the display, `r` to refresh, and `q` to detach. Detach leaves the server running. On a machine without a terminal, use `status --json` or `monitor --once --json`.
|
||
|
||
For a remote server, use HTTPS or a local SSH tunnel. A saved connection stores only the credential environment variable's **name**:
|
||
|
||
```sh
|
||
strata connection create work --url https://example.invalid --credential-env STRATA_TELEMETRY_KEY
|
||
strata monitor --connection work
|
||
```
|
||
|
||
Set `STRATA_TELEMETRY_KEY` in the environment before connecting. Replace `example.invalid` with your own server root. The monitor client never needs a management credential.
|
||
|
||
## Prepare and rerun a local model
|
||
|
||
Use the run config written by setup. Start by reviewing its components and effective launch; neither command starts an engine:
|
||
|
||
```sh
|
||
strata doctor --profile /absolute/path/to/strata-model.json --components --output json
|
||
strata serve --profile /absolute/path/to/strata-model.json --plan --output json
|
||
```
|
||
|
||
For repeatable local management, create a named profile from that config. Review changes before saving them:
|
||
|
||
```sh
|
||
strata profile create four-gpu --from-config /absolute/path/to/strata-model.json
|
||
strata profile set four-gpu parallel=8 batch_groups=auto max_queue=32 queue_timeout=15 batch_telemetry=true --plan
|
||
strata profile set four-gpu parallel=8 batch_groups=auto max_queue=32 queue_timeout=15 batch_telemetry=true
|
||
strata profile show four-gpu --effective --output json
|
||
strata runtime start --profile four-gpu --plan --output json
|
||
strata runtime start --profile four-gpu
|
||
strata runtime verify --profile four-gpu --output json
|
||
```
|
||
|
||
Choose slot and queue settings for the actual model and card memory. A requested `parallel=8` does not prove the engine loaded eight effective slots. Check the reported values after start. To change a running profile, save the edit, review the restart, then execute it:
|
||
|
||
```sh
|
||
strata profile set four-gpu parallel=4 --plan
|
||
strata profile set four-gpu parallel=4
|
||
strata runtime restart --profile four-gpu --plan --output json
|
||
strata runtime restart --profile four-gpu
|
||
```
|
||
|
||
The restart is an explicit operation. `profile set` alone does not restart or retune a running model. `runtime stop --profile four-gpu` stops only the owned instance; `q` in Monitor does not. The desktop app starts its models through the same runtime host on every system.
|
||
|
||
## Check cards, calibrate and benchmark
|
||
|
||
Read installed components without launching the engine. The `--live` forms also probe host GPUs:
|
||
|
||
```sh
|
||
strata components verify --profile four-gpu --output json
|
||
strata doctor --profile four-gpu --live --output json
|
||
```
|
||
|
||
Calibration is separate from serving. Review the plan and measure a decode sweep only when the selected devices are available for exclusive use. Measuring writes a report but does not apply settings:
|
||
|
||
```sh
|
||
strata engine calibrate --profile four-gpu --plan --output json
|
||
strata engine calibrate --profile four-gpu --measure --exclusive --out /absolute/path/to/calibration.json
|
||
strata engine calibrate --profile four-gpu --review-result /absolute/path/to/calibration.json --output json
|
||
```
|
||
|
||
After reviewing the report, applying and rolling back remain separate explicit actions. Both require exclusive device access:
|
||
|
||
```sh
|
||
strata engine calibrate --profile four-gpu --apply-result /absolute/path/to/calibration.json --exclusive
|
||
strata engine calibrate --profile four-gpu --review-rollback /absolute/path/to/calibration.json --output json
|
||
strata engine calibrate --profile four-gpu --rollback-result /absolute/path/to/calibration.json --exclusive
|
||
```
|
||
|
||
Check the candidate report and owner state before either action. The full preconditions and rollback behavior are in [TERMINAL.md](TERMINAL.md).
|
||
|
||
After the model is loaded, save an explicit serving benchmark report:
|
||
|
||
```sh
|
||
strata bench run --profile four-gpu --suite serving-smoke --concurrency 4 --out /absolute/path/to/new-bench-report
|
||
```
|
||
|
||
The benchmark writes into a new output directory and does not publish its result. Synthetic screenshots and local fake-engine tests do not establish performance on a four-card host. Capture the exact GPU generation, model, driver and workload before comparing real runs.
|