StrataFlow overview
A local inference engine that runs very large Mixture-of-Experts models on the hardware you already own, by streaming experts from disk.
StrataFlow runs very large Mixture-of-Experts (MoE) models, quantized or full-precision, on everyday hardware without a GPU, in a bounded RAM budget. The full model stays on your SSD; only the parts each token needs are held in memory.
It's a Coaade Inc. project, source-available on GitHub and free for personal, non-commercial use.
Why it exists
An MoE model is huge on disk but uses only a small slice of its weights for each token. StrataFlow keeps the always-used trunk and the currently active experts in memory and streams the rest from disk on demand. A model far bigger than your RAM can then run on a normal laptop or desktop CPU.
More memory buys speed, not capability. The output is identical at every memory size.
What makes it different
- Its own forward pass over ggml. StrataFlow builds and runs the compute graph itself, so it decides exactly which weights are in memory and when. It isn't a wrapper around another engine.
- One tiered weight store across VRAM, RAM and SSD, with one caching policy.
- True per-expert streaming. Each layer's router runs first; only the top-k experts it picks are loaded before the expert computation.
- Automatic tuning. It sizes the expert cache from your free RAM and the model's layout. No hand-tuning needed.
- Prefetching. A predictor warms the next layer's likely experts on a background I/O thread while the current layer computes.
- Byte-identical output. Bounded streaming decodes the same tokens as running the whole model in memory.
Proof points
- A real Mixtral-8x7B-Instruct Q3_K_M (about 19 GB on disk) runs end to end on a free Colab CPU machine with 12 GB RAM and no GPU, with coherent output.
- Peak process memory stays flat as models grow: a 785 MiB and a 1,177 MiB model both run in about 132 MiB peak RSS.
Supported today
| Supported | |
|---|---|
| Architectures | llama-arch Mixture-of-Experts (such as Mixtral), dense llama |
| Weight types | F32/F16; Q8_0, Q4_K and Q6_K validated; others run unvalidated |
| Model files | .gguf, and the streaming-friendly .strata format |
| Platforms | Linux (GCC, Clang), macOS, Windows (MSVC) |
| Compute | CPU. GPU backends can be compiled in; see Status. |