Simulate Continuous Batching

hard
Unit 25 · Inference III0/0 to milestone

Static batching waits for the slowest request in a batch before starting new ones. Continuous batching (vLLM, TGI) adds new requests as soon as any slot frees up.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Simulate Continuous Batching · TechGradify