Skip to Content
coaadedocs

Run on Google Colab

Build StrataFlow on a free Colab CPU runtime and run a real model in bounded RAM, with no GPU.

The repository includes a Colab flow that proves the "big model, bounded RAM, no GPU" path on a real machine. It lives in colab/.

Before you start

  • Use a CPU runtime (Runtime → Change runtime type → CPU). StrataFlow's engine runs on the CPU; a GPU runtime isn't used.
  • The first build compiles llama.cpp and ggml, which takes a few minutes.
  • Free Colab has about 12 GB RAM and 70 to 100 GB of temporary disk. Disk, not RAM, is the limit: the model and its packed .strata copy both need to fit.

Two flows

FlowWhat it does
Generated demo (default)Generates a larger-than-toy F32 MoE and streams it. Needs no download.
Real model (--real-model)Downloads a real quantized GGUF from Hugging Face, packs it to .strata, runs it bounded and records the output, tokens per second and peak RSS.
# Generated demo
python3 colab/strataflow_colab.py --layers 24 --experts 32 --max-tokens 16

# A real quantized MoE
python3 colab/strataflow_colab.py --real-model --is-moe

The script prints the placement plan, runs the model with a bounded --expert-slots, and reports the results.

Benchmarks

colab/strataflow_bench.py runs a matrix of configurations and reports tokens per second, time to first token, peak RSS, resident weights, on-disk size and bytes read per token, with JSON and CSV output.

What to expect

A real Mixtral-8x7B-Instruct Q3_K_M (about 19 GB on disk) has run end to end on a free Colab CPU box with coherent output. On the free tier, throughput is limited by disk reads; automatic expert residency and async prefetch target exactly that, and settled throughput numbers are still being measured.

On this page