AI Infra Interviews logo

Modal LLM Inference & Serving interview questions

Modal’s cold-start guidance is especially relevant to model serving because readiness includes loading usable model state. Measure that startup path separately from token generation. Questions tagged to Modal appear first, followed by additional practice from our LLM Inference & Serving track. Company tags indicate preparation relevance, not confirmed interview appearances. Confirm the current interview format with your recruiter.

Diagnose the first slow response

  1. Split the latency measurement. Record worker startup, model readiness, queueing and inference execution separately. A good steady-state generation rate does not explain a slow first response after idle time.
  2. Validate the mitigation. Compare a warm-worker setting or reusable initialization with the baseline using the same traffic trace. Retain it only when the latency improvement justifies its idle cost and preserves request isolation.

Sources: Modal cold-start performance. Reviewed .

Start with the first company-tagged practice question · Continue through the full topic track. Check each resource’s access level.

LLM Inference & Serving questions tagged to Modal

3 questions · 0 unlocked for you

Additional LLM Inference & Serving practice

These questions cover the same topic and are not tagged to Modal. Use them to practise applying the ideas in a different situation.

15 questions · 10 unlocked for you

Concepts for LLM Inference & Serving preparation

These concept explanations cover the ideas used in the questions. Check each card for its access level.

Foundational
Prefill vs DecodeFollow one prompt through its first prediction and later decode steps, then separate GPU work from the wait a user sees. Learn why batch size and context change the likely bottleneck.
Foundational
The KV CacheThe KV cache saves attention keys and values from processed tokens. Follow one decode step, calculate its memory cost, and see why longer conversations reduce the number of requests a GPU can hold.
Core
Sign in
Continuous BatchingContinuous batching changes which requests run between model iterations. Learn how a waiting request joins, why an empty slot is not enough, and how to balance throughput against each user’s token latency.
Advanced
🔒 Premium
PagedAttentionFollow a token position through a block table, watch a cache grow, and trace a shared tail through copy-on-write. Separate memory saved from throughput gained.
Advanced
🔒 Premium
Chunked PrefillFollow a long prompt through a shared token budget, including its final partial chunk. Learn why chunking can reduce stream pauses without guaranteeing a fixed token gap or a universal throughput gain.
Advanced
🔒 Premium
Speculative DecodingA draft proposes tokens; the target checks them with a sampling rule that preserves its distribution. Work through the correction after rejection, count accepted drafts separately from emitted tokens, and decide whether the measured round cost earns a speedup.
Advanced
🔒 Premium
Disaggregated Prefill and DecodeSeparate prefill and decode to control phase interference, then budget the KV handoff. A short isolated transfer can still overload a shared path; cancellation stops generation before it necessarily releases transfer buffers.
Advanced
🔒 Premium
Prefix Caching and KV ReusePrefix caching reuses compatible attention state for leading tokens. Calculate shared memory and token reuse, then weigh cache identity, block ownership and routing delay before expecting a latency gain.
MODAL LLM INFERENCE & SERVING FAQ

This collection includes practice questions such as "Design an autoscaler for GPU inference replicas that reacts to load without thrashing.", "A new replica has to load a 70B model and serve traffic in under a minute. Where do the seconds go, and how do you get there?", "nvidia-smi shows 30 percent utilization on our serving fleet. Is that a problem, and what would you look at instead?". Company tags describe relevance to preparation; they do not confirm that Modal asked these questions. Check each question for answer access.

Other topics for Modal preparation

Explore the other topics mapped to Modal in our preparation guide.

Continue your Modal interview preparation

Continue with related questions and the concept curriculum. Free questions are available in every track; check pricing for full access.

Independent and not affiliated with Modal. All trademarks belong to their owners.