Quickstart
Pack a GGUF model into .strata and run it in bounded RAM with StrataFlow.
This guide runs a model with StrataFlow and reads its memory report. You need a StrataFlow build and a GGUF model of a supported architecture: llama-arch MoE (such as Mixtral) or dense llama.
Qwen2-MoE and DeepSeek-MoE use different architectures that StrataFlow doesn't support yet. Don't point it at them.
Pack the model
Convert the GGUF file into the streaming-friendly .strata format:
cd build/release
./bin/strata-pack /models/mixtral-8x7b-instruct.Q3_K_M.gguf /models/mixtral.strataThe .strata file is about the same size as the GGUF, so make sure you have the disk space. Add --compress lz for optional lossless compression of the expert blobs.
Look at the plan
./bin/strataflow --model /models/mixtral.strata --planThe plan: line shows how StrataFlow will place the model on your machine: the number of expert slots, whether experts stream or stay resident, the compute backend and the projected peak memory.
Run it
./bin/strataflow --model /models/mixtral.strata --max-tokens 64 --prompt "The city of"You can also pass the prompt after --:
./bin/strataflow --model /models/mixtral.strata -- "Write a haiku about disks"StrataFlow prints the prompt, then streams the output.
Read the stats
After generation, a stats: line reports:
- resident model weights: how much of the model was in memory
- peak RSS: the process's peak memory
- TTFT: time to first token
- streamed: how much was read from disk while streaming experts
Run in less memory
Cap the RAM used for experts, or set a ceiling for the whole process:
# Keep at most 4 GiB of experts resident
./bin/strataflow --model /models/mixtral.strata --cache-gb 4 --prompt "Hello"
# Fit the whole run under 8 GiB, or fail with the smallest achievable size
./bin/strataflow --model /models/mixtral.strata --target-ram-gb 8 --prompt "Hello"See Memory tuning for every option.
Run a GGUF directly
strataflow also loads .gguf files. Packing to .strata is what gives you bounded RAM: with .strata, only the trunk is held in memory and experts stream from disk.