Inference prep
Study plan
Day 10 of 13 · Dec 7, 2026

Decide whether to separate prefill and decode

Combine the KV bytes from Day 2 with measured bandwidth and queue times. Calculate how much waiting the split must remove to pay for the transfer.

Before you start

Your cache calculation and TTFT breakdown. Use DistServe’s figures to compare workloads and objectives.

Read and predict 1 hour including video

Inference Engineering · §4.4 pp. 111–112; §5.3.2–5.3.3 pp. 139–141; §5.5 pp. 148–151

Use the printed page numbers. In the supplied PDF, add two to reach the viewer page. Write a prediction for the question below before opening its answer.

DistServe · OSDI ’24 · Baseten · Inference Engineering · NVIDIA Dynamo · architecture

USENIX OSDI · DistServe

20 min. Use the talk or its slides to find the goodput objective. Draw the data transferred between pools and mark where it can queue.

Play lecture
Open original lecture

Build and test 3 hours

Draw co-located and split designs. For 512 MiB KV at 25 GiB/s compute a 20 ms transfer floor; add queue and network overhead. Vary prompt length.

  1. Draw the two pools

    Put prompt processing in one box and token generation in another. Label the KV transfer between them.

  2. Price the transfer

    Convert 512 MiB to 0.5 GiB, divide by 25 GiB/s and convert seconds to milliseconds. Add measured or assumed waiting time.

  3. Choose a design

    Compare transfer cost with the queueing delay avoided. Write the break-even inequality for short and long prompts.

Open gateway
Troubleshooting

If both workloads give the same answer, vary prompt length or link bandwidth and recalculate.

Save your result 1 hour

Save two diagrams and a sensitivity table at 5, 25 and 50 GiB/s for 512 MiB of KV state. Label bandwidth and queue assumptions.

Explain from memory 1 hour

At 25 GiB/s, can eliminating 12 ms of waiting alone pay for a 512 MiB transfer on the critical path?

Check your reasoning

Transfer alone costs 20 ms before overhead. Revisit only if overlap, throughput gains or a different workload change the objective.

Defend a workload that benefits and one that loses. Label modeled comparisons separately from GPU measurements.