Inference prep

Study resources

Assigned lectures

David Beazley · Build Your Own Async

Optional, 15 min. Follow the first scheduling example. Point to the line where another job can run while the first job waits.

Play lecture
Open original lecture

Stanford CS336 · Inference

20 min from the inference resource-accounting discussion. Derive a lower bound on the time to read weights once. Say which assumption changes when batch size increases.

Play lecture
Open original lecture

MIT Missing Semester · Debugging and Profiling

Optional, 15 min. Use the logging and profiling examples to identify one observation that distinguishes waiting for a worker from spending CPU time in Python.

Play lecture
Open original lecture

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

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

Books, papers and documentation

Core book sections cover latency targets, inference mechanics, memory, benchmarking, caching and production. Use chapter 6 for a follow-up on a specific modality. Kernel selection, speculative decoding and model training are outside the core lab.

Orca · OSDI ’22

Draw three requests of unequal length. Show which batch slots change after each iteration.