← Questions

Request scheduler for an LLM inference engine

0
AnthropicCodingLast asked Aug 2026

A coding interview question asked in Anthropic's coding round, last asked Aug 2026. It tests scheduling, llm inference and batching.

Inside a provided Python project, implement the scheduler of an LLM inference engine. Each step of the engine runs one batch, and the scheduler decides what goes in it: prefill work (processing a new request's prompt) or decode work…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Anthropic · Coding · Last asked Aug 202655 min · Live coding on a realistic, multi-part problem, a different one from the screen · No AI

What it tests

scheduling · llm inference · batching

Your code and the AI tutor open when you unlock this question.