Baseten Software Engineer Interview Guide 2026: Practical Coding, GPU Serving, and Inference Reliability
Quick Overview
Prepare for a Baseten software engineer interview with two carefully attributed 2026 candidate accounts, a worked diagnosis of slow first tokens, and a practical dispatch coding exercise. Learn what Baseten documents about inference and autoscaling, which metrics separate replica startup from GPU work, and what to practice for your team.
For a Baseten software engineer interview, prepare one coding problem with precise failure behavior and one systems problem you can diagnose from measurements. If you are applying for Dedicated Inference, practice explaining why a customer can wait longer for the first token even when the model itself runs at the same speed. If you are applying as a generalist, give backend coding and system design equal attention until you know the team. Two public 2026 candidate accounts describe quite different design problems, and neither establishes a standard loop.
This guide gives you two original exercises that fit together: diagnose a slow streaming endpoint, then define exactly which requests are still eligible to run when a worker becomes free. Start with the Baseten Software Engineer questions if you want to see how practical coding and design prompts are framed before attempting the drills.

What to prepare for a Baseten software engineer interview
Official role evidence: Baseten’s engineering careers page lists roles in Dedicated Inference, Cloud Platform and Site Reliability Engineering. Its public inference stack description covers routing, continuous batching and the option to run prefill and decode separately. That is useful evidence about the work. The pages do not give candidates a round-by-round format or a scoring rubric.
Candidate reports: An August 2026 General SWE applicant described implementing a parser that grew in stages, designing a system for emitting and querying logs, and discussing a past project. A June 2026 senior SWE candidate described a CI/CD platform design, with a follow-up on fairness in a shared build queue. These are separate self-reports. The candidates did not identify a common team or a common sequence.
Preparation inference: Before the recruiter confirms your scope, rehearse how you handle changing requirements. For a general SWE round, this could mean extending a parser without changing existing error behavior or keeping one team’s work from blocking a shared queue. For a role that owns inference, use the same reasoning with a replica that is starting up, a caller with a deadline, and a stream that may already have sent output. Ask your recruiter whether your design round emphasizes backend systems, inference, or the team’s specific area. If the round is backend-focused, spend the session on error handling and shared queues. If it is inference-focused, use the same hour to practice diagnosing the first-token path.
Follow the first token before changing the GPU
Official technical context: Baseten’s latency and throughput chapter separates time to first token (TTFT), the wait before the first output token arrives, from inter-token latency (ITL), the gap between subsequent tokens. Prefill processes the input context and builds the key-value cache that holds model state for reuse. Once generation begins, decode uses that state to continue the response token by token. End-to-end TTFT can include queueing and network time as well as on-GPU work. Keep the measurement boundary explicit: a server emitting the first token and a client receiving it are different events.
A simple whiteboard sketch starts with a queue, then prefill, then decode. Put a mark at the first token and draw a separate bracket from request arrival to that mark. Put yourself in the customer’s seat: a stream that starts promptly and then stalls feels different from a blank reply box that stays empty for a full second. The same overall request duration could hide either failure.

Worked case: a burst arrives after idle time
Original practice scenario, with illustrative numbers. You own a streaming text endpoint with a client-observed TTFT target of 500 ms at the 95th percentile. A weekday traffic burst follows a quiet period. The model version, hardware type and prompt-length mix are unchanged in the scenario. Your first dashboard shows stable average GPU utilization. A teammate suggests enabling more aggressive batching. Before agreeing, ask where the extra time appears.
| Measurement | Steady traffic | Burst after idle |
|---|---|---|
| Client TTFT, p95 | 360 ms | 1,040 ms |
| Server queue wait, p95 | 45 ms | 690 ms |
| Prefill, p95 | 215 ms | 225 ms |
| Inter-token gap, p95 | 32 ms | 34 ms |
| Ready replicas at window start | 4 | 1 |
The separate p95 values are a clue; adding them does not yield the p95 of the end-to-end request. Pull a slow trace and reconcile its own timestamps. In this example, request R waited 700 ms in the server queue, spent 230 ms in prefill, and took 110 ms total across the remaining measured overhead before the client saw the token. That is 1,040 ms for that request. It is an example trace, not necessarily the request at the exact percentile boundary. Next, check whether slow requests cluster before replicas become ready. Compare the same prompt-length bucket during the burst and after capacity is ready.
Inference from the case: The first hypothesis to test is lack of ready capacity at burst onset. Prefill and the gaps between later tokens barely changed, while queue wait rose sharply. Average GPU utilization can look calm even when the one replica that is ready has no admission slots left. Check per-replica concurrency, queued requests and readiness timestamps. If readiness was healthy throughout, revisit routing: one replica or tenant queue may be overloaded while other capacity sits idle.
To check for a cold start, align the increase in requested replicas, the time each replica becomes ready, and the point when the queue begins to drain. A desired replica count is a control-plane decision; it does not say when a worker can accept requests. If the gap spans most of the burst, break it down into provision, model load, and readiness where those events are available. If the queue remains long after the new replicas are ready, investigate whether requests are reaching them. Ask for those timestamps before you describe the fix.
State the smallest change you can test
Replay the burst twice with the same load shape, model version and prompt-length mix. Give the second run more ready capacity ahead of the burst. Compare client TTFT, queue wait, ITL, completed requests, rejected or timed-out requests, and replica time. A lower p95 because more callers were rejected is a bad trade. A lower p95 obtained by keeping extra GPUs warm all day may be too expensive if the burst is predictable and short.
Baseten’s autoscaling documentation describes replica limits, a scaling window and concurrency settings. It explicitly distinguishes target utilization of request slots from GPU utilization. In the practice case, a higher minimum or scheduled prewarming, if your stack supports it, is a more direct test of the readiness hypothesis than making batches more aggressive. If the result fails to move queue wait, discard the hypothesis and look at routing or admission limits before reaching for a larger GPU.
Be ready for a changed signal. If prefill rises mainly for long prompts, compare length buckets and look at how those requests enter batches. If first tokens arrive on time but ITL worsens, test contention on active decoding streams. If the API reports a fast emission and the client still waits, inspect the gap across the network and any buffering proxies. Name the measurement that would change your next move.
Coding drill: dispatch jobs before their start deadline
Original practice exercise. Implement a dispatch function for the queue in the incident above. Each call handles one free worker slot. Its job is to protect the hot worker from starting requests that are already too old. Each queued record has an ID, model version, and expiry timestamp, an exclusive upper bound on when it can start. The worker is warm for exactly one version. On each dispatch call, expire queued jobs whose deadline is at or before the current time. Then start the first still-eligible request for the warm version in arrival order. Keep other valid requests in their original order. Assume one clock, a monotonic series of calls and unique IDs. The function is called only when the worker has a free slot.
| Queue order | Job | Model version | Expires at |
|---|---|---|---|
| 1 | A | v2 | 15 ms |
| 2 | B | v1 | 20 ms |
| 3 | C | v1 | 50 ms |
| 4 | D | v2 | 60 ms |
At 20 ms a worker warm for v1 frees up. A and B expire, C starts, and D stays queued. When a worker warm for v2 frees up at 45 ms, D starts. If the next call is instead at 60 ms, D expires. Say the boundary aloud before coding: “A request that reaches its deadline cannot start.” This fixture catches two mistakes: allowing work to start at equality, and silently keeping expired requests because their model version is different from the warm worker’s.
Start with a single pass over the pending records. Drop and record expired items regardless of version; store the first dispatchable item separately; rebuild the pending queue in the same order. Return the selected ID and expired IDs, plus the new queue if you choose a pure function. That takes linear time and up to linear extra space. It also gives you a clean place to test a version mismatch, an empty queue and a second compatible job, which must remain queued. Keep expiry and ordinary rejection distinct when you record metrics; one means a request waited too long, the other can mean it never entered the queue.
Then handle one follow-up: two workers become free at once. Protect selection and removal as one operation so a request cannot be dispatched twice. With much higher volume, you could index pending requests by version and use a deadline heap to find expirations. You would then need a consistent way to remove an item from both indexes, or skip stale entries before dispatch, and you would still need a queue bound. Start with the version that is easy to prove correct. Introduce indexes only after you can explain which measured cost they solve.
There is a fairness decision even in the simple version. A job for v2 can sit at the front while several v1 jobs start. The rule keeps each worker productive, but it cannot promise that v2 ever gets a warm slot. In an interview, name what owns that decision: for example, a separate controller that provisions capacity or rejects work when it cannot start in time. Keep that policy out of the first implementation so the dispatch result stays easy to predict.
Finally, distinguish the start deadline from a completion deadline. Even a request that starts before expiry can time out or lose its worker after the first token. A production design needs an explicit response for a broken stream. Automatically retrying after partial output can duplicate visible text or hide which version produced it. Explain what kind of failure the client can safely retry, and which event tells the on-call engineer that output had already started.
Five questions for focused Baseten practice
These are practice records, not predictions of your interview. The first two are Baseten-tagged. The others are from Anthropic and are included because they extend a specific part of the original serving exercise.
| PracHub question | What to rehearse |
|---|---|
| One-pass S-expression parser with nested lists and precise error handling | Add nested input while preserving the first error position. |
| Design an observability logging system for emitting and querying logs | Make one slow request traceable without letting a spike in logs choke ingestion. |
| Design a Model Inference API and Optimize Its GPU Usage | Specify the stream, overload response and what happens after partial output. |
| Design GPU inference request batching | Decide when it is worth waiting for compatible jobs and when to dispatch immediately. |
| Design an inference routing and scheduling layer | Explain how one busy tenant affects others and what protects their queue time. |
For your next session, cover the outcome under the queue table. Say out loud which job runs at 20 ms, then check the result against the fixture. For a general SWE loop, pick the parser from the Baseten Software Engineer questions and test the exact error at the boundary. If the recruiter confirms an inference focus, redraw the burst trace and explain what would make you abandon your first hypothesis.
Sources and Further Reading
- Baseten Engineering Careers — official role context.
- The Baseten Inference Stack — official description of the hosting and runtime stack.
- Baseten Inference Engineering: Measuring Latency and Throughput — official metric definitions.
- Baseten documentation: Autoscaling — official replica and concurrency controls.
- August 2026 Baseten General SWE interview experience — applicant account curated by PracHub.
- June 2026 Baseten SWE onsite report — public candidate account of a senior system design round.
Comments (0)