CLI reference
Every option for the strataflow and strata-pack command-line tools.
strataflow
strataflow --model <path> [options] [-- <prompt>]| Option | Description |
|---|---|
--model PATH | Model file (.gguf or .strata). Required. |
--prompt TEXT | Prompt text. You can also pass it after --. |
--max-tokens N | Generation cap (default 64) |
--vram-gb X | VRAM budget in GiB (0 = auto) |
--ram-gb X | RAM budget in GiB (0 = auto) |
--cache-gb X | Cap resident expert RAM to X GiB (0 = auto from free RAM) |
--expert-slots N | Hold N expert bundles (0 = auto). Fewer than the model's expert count forces bounded streaming. |
--target-ram-gb X | Fit the projected peak within X GiB, or refuse and name the achievable floor. Overrides --ram-mode. |
--ram-mode auto|max | auto (default) leaves headroom for other apps; max dedicates the machine |
--max-performance | Alias for --ram-mode max |
--device cpu|cuda|metal|vulkan|hip | Preferred compute backend (default cpu). Uses a GPU only on a GPU build with a GPU present; otherwise falls back to CPU. |
--async-prefetch on|off | Overlap the next layer's expert reads with compute (default on) |
--plan | Print the placement plan and exit |
--version | Print the version and exit |
-h, --help | Show help |
Environment variables
| Variable | Effect |
|---|---|
STRATAFLOW_ENGINE_KV_WINDOW | Bound the KV cache to this many columns. See Memory tuning. |
Output
| Line | Contents |
|---|---|
plan: | The placement plan, including compute=<backend> |
prompt: / output: | Your prompt and the streamed generation |
stats: | Resident model weights, peak RSS, time to first token (TTFT) and the bytes streamed from disk |
Errors are printed to standard error and return a nonzero exit code.
strata-pack
strata-pack [--compress <codec>] <in.gguf> <out.strata>Converts a GGUF checkpoint into the .strata format, with verbatim weight bytes and aligned expert blobs.
| Option | Description |
|---|---|
--compress none | Store expert blobs verbatim (default). Byte-for-byte identical to earlier packers. |
--compress lz | Compress each expert bundle with the built-in lossless LZ codec |
--compress can appear before or after the file arguments.