A GPU running one request at a time is mostly idle. Batching is where the throughput comes from, and where the tail latency goes to die, because a request that waits for a batch to fill has paid for someone else's throughput.
Write form_batches(arrival_times, max_batch, max_wait) returning a list of batches, each a list of request indices.
Requests arrive in the order given, at non-decreasing times. A batch is dispatched as soon as either condition is met:
max_batch requests, ormax_wait seconds have passed since its first request arrived.Anything arriving after a batch is dispatched belongs to the next one. Every request appears in exactly one batch, and indices stay in order.
Build the architecture on a canvas: place the components, configure them, connect them into a data flow, and write a short reason for each one. The AI reviewer grades your design against a rubric written specifically for this problem.
Minimum 5 components · needs a wide desktop screen