Skip to Content
coaadedocs

CLI reference

Every option for the strataflow and strata-pack command-line tools.

strataflow

strataflow --model <path> [options] [-- <prompt>]
OptionDescription
--model PATHModel file (.gguf or .strata). Required.
--prompt TEXTPrompt text. You can also pass it after --.
--max-tokens NGeneration cap (default 64)
--vram-gb XVRAM budget in GiB (0 = auto)
--ram-gb XRAM budget in GiB (0 = auto)
--cache-gb XCap resident expert RAM to X GiB (0 = auto from free RAM)
--expert-slots NHold N expert bundles (0 = auto). Fewer than the model's expert count forces bounded streaming.
--target-ram-gb XFit the projected peak within X GiB, or refuse and name the achievable floor. Overrides --ram-mode.
--ram-mode auto|maxauto (default) leaves headroom for other apps; max dedicates the machine
--max-performanceAlias for --ram-mode max
--device cpu|cuda|metal|vulkan|hipPreferred compute backend (default cpu). Uses a GPU only on a GPU build with a GPU present; otherwise falls back to CPU.
--async-prefetch on|offOverlap the next layer's expert reads with compute (default on)
--planPrint the placement plan and exit
--versionPrint the version and exit
-h, --helpShow help

Environment variables

VariableEffect
STRATAFLOW_ENGINE_KV_WINDOWBound the KV cache to this many columns. See Memory tuning.

Output

LineContents
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.

OptionDescription
--compress noneStore expert blobs verbatim (default). Byte-for-byte identical to earlier packers.
--compress lzCompress each expert bundle with the built-in lossless LZ codec

--compress can appear before or after the file arguments.

On this page