‹ Field Guide

Letter 32 · The kite that waited

Michi can see the first word of her order from the launch tower. Koko is across the ravine with the decode worker. The word after it is late. Nimbus, the port’s storm kitten, has tied four clock tags to the cable. Follow the tags to see where the time went. Play Cloudberry Balloon Port

Who sends the first word?

In the port’s split layout, P reads all eight prompt tokens in 2 ms, samples the first output token and streams it to the guest. For a longer reply, D needs the prompt’s cached keys and values, the token that was sampled, and the matching request and position. Feeding that token through the next decode step produces token two. If the order calls for one token, Michi closes the order at P.

The DistServe authors isolate prefill and decode so each phase can be provisioned against its own latency target. The vLLM connector interface is one practical implementation of a handoff between instances. The game gives its requests a fixed output length and models payload time from prompt KV alone. It assumes control metadata travels at negligible cost. DistServe paper and presentation · vLLM disaggregated prefilling

What goes in the basket?

The toy model keeps four layers, two KV heads per layer and four elements per head. Each element occupies two bytes. Eight prompt tokens therefore need 2 × 4 × 8 × 2 × 4 × 2 = 1,024 bytes. The first factor counts keys and values. Four 256-byte crates fit. With one shared KV head, two crates fit. Grouped-query attention lets several query heads share a KV head, which changes the cache size. Real caches also have allocation, layout and metadata costs. GQA paper · Mooncake paper and talk

Two hangars, two clocks

Both layouts have two identical GPUs and one model copy on each. The colocated dispatcher assigns a new guest to the worker with the fewest live requests and breaks ties toward G0. Each worker can decode one token per active request in a batch. When it mixes a prompt chunk with a decode batch, both finish at the slower of the two toy step times. The optional decode-first policy postpones a prompt while an older decode is ready. Chunked prefill helps control interference in real scheduling systems. Sarathi-Serve

In the festival convoy, colocated A emits at 2, 3, 4, 6 and 8 ms. Its first-token wait is 2 ms and its average post-first gap is 1.5 ms. The split board emits A at 2, 3.5, 4.5, 5.5 and 6.5 ms, an average gap of 1.125 ms. Under the game’s two thresholds, two colocated guests pass and all three split guests pass. A quiet two-token guest experiences the opposite trade-off. It gets tokens at 4 and 5 ms locally, or 4 and 6 ms after a split handoff. Different hardware and placement strategies can change the trade-off. Splitwise · DistServe author talk

A quarter millisecond of cargo

At 2 KiB/ms, X occupies the cable from 32 to 40 ms. Y queues at 33 ms with a 512-byte parcel. Y waits 7 ms in the queue, transfers for 0.25 ms, waits 0.75 ms for the decode worker and computes for 1 ms. The second token arrives at 42 ms. Its nine-millisecond gap includes all four intervals. Speeding up the link to 4 KiB/ms gives Y a five-millisecond gap. The game starts each transfer after its entire prompt and models a single FIFO link. Mooncake explores more sophisticated cache movement, placement and reuse in a production architecture. Mooncake author presentation

Earn the Sunrise Compass

The weather desk runs a fixed festival pattern at five offered loads. It excludes four warm-up convoys and follows all 36 measured orders to completion. One order passes if its first token arrives within 5 ms and its average subsequent gap is at most 1.25 ms. A one-token reply has no subsequent gap. Under the default split setup and a 90% target, the largest tested passing offer is 375 requests per second, or 187.5 per GPU. A higher untested offer could also pass. These are classroom simulation results. The original paper benchmarks real models, placements, hardware and traffic. DistServe engineering article

In the finale, choose the stronger layout for each convoy and steer to three named events on its trace. A friend can open your weather flag to fly the same manifests. Save the JSON ledger after landing and run node examples/replay-cloudberry.cjs flight.json in the source checkout to verify the route, repairs and final reward. Fly the rally