Transformer Systems Lab
Serving and decoding station
Carry the Long Context checkpoint into deployment pressure: a prompt can be usable and still fail as product behavior when prefill, decode, residency, scheduling, or token support breaks.
W = prompt, output, requests, pages, decode_modelong-context generation workload
usable context vs served behavior
name the bottleneck first
prompt, output, requests, blocks, decode
TTFT, TPOT, residency, support
serving is a coupled system
speculative verification
Carry-in contract
A context window becomes product behavior only after serving survives.
The route already separated cache bytes from reliable retrieval. Serving and decoding add a new boundary: the same workload must meet latency, residency, scheduling, and token-support constraints.
Operable Station 07
Serving and decoding
- 01Text to one update
- 02Tokens and position
- 03Attention routing
- 04RoPE phase
- 05KV memory
- 06Long-context pressure
- 07Serving and decoding
- 08Speculative decoding
- 09Evaluation and falsification
- 10Capstone systems claim
Carry-in from Long Context
Usable context becomes a workload only when serving constraints hold.
Long Context separated fitting tokens from using them. This station keeps that boundary and asks what the product pays when the same case is prefilling, decoding, batching, and sampling for real users.
Selected object
One long-context generation workload under latency constraints
route:ai-lab/transformers/serving-decoding#serving-decoding-stationThe object is a workload, not a model slogan: prompt tokens, output tokens, concurrent requests, KV page size, and decoding mode move together.
Prediction checkpoint
When this same long-context case is served to multiple users, which pressure becomes the first bottleneck?
Manipulation instrument
Move workload size, page size, and decoding mode; watch different costs answer.
The metrics are deterministic local estimates. They are designed to expose the shape of the tradeoff, not to benchmark a vendor stack.
Route spine
After serving pressure, the route tests acceleration honestly.
Speculative decoding is the next station because it can reduce target-model work only when draft tokens verify under the target distribution. That makes it a perfect transfer check after basic serving pressure.
Route memory
Save the invariant, then continue from memory.
The station writes a browser-local checkpoint with the workload object, first prediction, evidence ledger, source caveats, and next repair. The route can resume from the Study Memory surface.
Open Study Memory