A short film · 0:42

Disk inference, in motion.

How QueueLLM runs a model larger than memory, and how context is managed around it: a layer at a time off the disk, a window at a time out of the corpus, one read per batch.

The model is 58 GB on disk. The machine has 24 GB of memory. So the model stays where it is.

● available nowmeasured: gpt-oss-120b (117B parameters, 5.1B active) writing coherent text on a 24 GB M5 Pro

0:00 / 0:42

The drawing is a diagram of the mechanism: its plate count, counters and timing are drawn to teach. The two sizes it quotes are read from QueueLLM's benchmark ledger, stamp cc2d1c75.

The storyboard

  1. 01 · On disk

    The model is 58 GB on disk. The machine has 24 GB of memory. So the model stays where it is.

    ● available nowmeasured: gpt-oss-120b (117B parameters, 5.1B active) writing coherent text on a 24 GB M5 Pro

  2. 02 · The queue

    QueueLLM reads one layer off the disk, runs it, and releases it. What sits in memory is a layer, while the model waits its turn on disk.

    ● available nowlayer-by-layer streaming from NVMe, with the resident set bounded by the largest layer

  3. 03 · Context, managed

    Context is cut to fit the question: a routed pack of terms per window, in place of the whole corpus. Each window's working state stays in memory while the layers come and go.

    ● available nowDDaC context routing inside one World · per-window state held by the engine

  4. 04 · One read, one batch

    The disk read is the expensive step, so a batch shares it: one read per layer, then every window in the batch runs against that layer.

    ● available nowon the MLX path — a window's tokens are byte-identical alone or co-batched, gated at B=1 and B=4

Dictionary →