← Questions

Inference loop with continuous batching over a mock model

0
SpaceXAICodingLast asked Sep 2026

A coding interview question asked in SpaceXAI's technical phone screen, last asked Sep 2026. It tests llm serving, batching and queues.

You are given a mock language model that advances a batch of sequences by one token. Each call takes the full token prefix of every sequence in the batch and returns one next token per sequence, in the same order.

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

What it tests

llm serving · batching · queues

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