Inference prep
Study plan
Day 6 of 13 · Dec 3, 2026

Find the batching limit

Throughput can rise as queues grow. Pick an operating point by counting successful requests that also satisfy the latency target.

Before you start

Yesterday’s CSV and Day 1 targets. Read the PagedAttention paper’s memory-management design if block tables are unfamiliar.

Read and predict 1 hour including video

Inference Engineering · §4.3.1 pp. 106–107; §4.5 pp. 112–115; §7.2.1 pp. 186–187

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.

Baseten · Inference Engineering · Orca · OSDI ’22 · vLLM · serving benchmark CLI

USENIX OSDI · Orca

20 min. Pause at the iteration-level scheduling example. Draw the batch membership before and after a short request completes.

Play lecture
Open original lecture

Build and test 3 hours

Start one vLLM worker on a compatible GPU if available. Sweep arrival rate and compare short and long prompts using the benchmark notebook.

  1. Sketch a batch

    Draw three requests needing 1, 2 and 4 decode steps. After each step, cross out finished requests and admit a waiting request.

  2. Collect a baseline

    Use the first command in Benchmarks to start vLLM. Warm it up, then run the benchmark at one request/s. Without a GPU, record a mock latency baseline and label it simulated.

    CPU path: hold the simulated worker delay fixed and increase arrivals until queue wait rises. GPU path: hold model and token lengths fixed and change offered requests/s. Only the GPU path measures inference-engine batching.

  3. Change just one variable

    Keep output length fixed and increase prompt length. Record p95 first-token latency, per-token latency and errors for both runs.

Open benchmarks
Troubleshooting

If the table is empty, send one direct request and check endpoint, model alias and readiness before load testing.

Save your result 1 hour

Save a three-row rate sweep and one plot of offered rate versus SLO-good requests/s. Tag the run as mock or GPU.

Explain from memory 1 hour

Suppose 200 requests arrive in 40 s, 180 finish, and 150 meet both targets. What is goodput?

Check your reasoning

150 / 40 = 3.75 requests/s. Report 180/200 completed as a separate figure.

Report TTFT, TPOT, output tokens/s and failures. Identify a load where throughput rises while user experience worsens.