Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Let the Next Request In Without Overfilling the Cache

Why a Batch Should Not Wait for Its Longest Answer

BOTIE

Batching several requests can make a model’s hardware do more useful work at once. A fixed batch becomes awkward when the requests need different numbers of output tokens. A short answer finishes, but the longest answer is still being generated. If the membership of the batch cannot change, another request waits outside while that place is unused.

Orca’s 2022 iteration-level scheduling addressed this problem by choosing the participating requests again between generation steps. This is the idea behind the changing batch we will build. A real runtime must also decide how much work and memory each step can accept. Our smaller model admits requests in queue order and reserves their full token allowance, so we can inspect those two decisions without implementing a serving engine.

Sources for this history