ML Infrastructure & GPUs
65 questionsDONEUNLOCKEDLOCKED
GPU/TPU memory, distributed training and parallelism, quantization, inference serving (vLLM, batching, KV cache), and scaling API gateways: the infra depth the labs and NVIDIA probe.
Grounded in real Applied AI Engineer interview loops and written to a senior-engineer editorial bar.
You have 10 free answers unlocked here.Sign in free for 10 more · 45 are premium.
01–26Foundationsthe vocabulary every loop assumes you already have0/26 done
27–49Core loopsthe questions every loop actually asks0/23 done
50–65Field scenariosthe messy, half-specified problems from real deployments0/16 done
The concepts behind ML Infrastructure & GPUs
The vocabulary and mental models these questions assume, from our curriculum. Start with the foundations free; the deeper, interview-defining ideas are part of premium.
Core
Quantization and Low PrecisionQuantization stores and computes model weights (and activations) in fewer bits, FP16/BF16, FP8, INT8, INT4, instead of FP32, cutting memory and speeding inference at some accuracy cost. It is the main lever to fit a large model on a given GPU and to serve it cheaply, and it underlies QLoRA fine-tuning and KV-cache compression. Applied-AI interviews probe it because 'how do you serve a 70B model affordably?' usually starts with quantization, and knowing the precision ladder and its trade-offs is essential.Sign in
Foundational
GPU Memory and the Serving StackServing an LLM is mostly a memory problem: the GPU must hold the model weights plus a KV cache that grows with sequence length and batch size, and inference splits into a compute-bound prefill and a memory-bandwidth-bound decode. Knowing the memory math (weights plus KV cache), why decode is bandwidth-bound, and the levers (quantization, batching, paged attention) is the foundation of LLM serving. Applied-AI interviews probe it because 'will this model fit and how fast will it run?' is a constant production question.Core
Knowledge DistillationKnowledge distillation trains a small student model to imitate a larger teacher, using the teacher's soft probability distribution (or internal features) as a richer training signal than hard labels. A student trained this way typically beats an identical model trained from scratch on the same data, because the soft targets encode the teacher's learned similarity structure. Applied AI interviews probe it because it is the main lever for shrinking a capable model into something cheap to serve, and because reasoning distillation and the legal terms around teacher outputs are live issues in 2026.Sign in
Core
Continuous BatchingGPUs are efficient on batches, but LLM requests arrive at different times and finish after different numbers of tokens, so static batching wastes the GPU waiting for the slowest request. Continuous (in-flight) batching adds and removes requests from the running batch at each decoding step, keeping the GPU full and dramatically raising throughput. Applied-AI interviews probe it because it is the single biggest throughput lever in LLM serving and explains why one replica can serve many concurrent users.Sign in
Core
FlashAttention and IO-Aware KernelsNaive attention is slow not because of the matmuls but because it writes the full N-by-N attention matrix to GPU high-bandwidth memory and reads it back, which is memory-bandwidth bound. FlashAttention fuses the whole attention computation into one kernel that tiles the inputs in fast on-chip SRAM and never materializes the full matrix, using an online-softmax trick to stay exact. Applied-AI interviews probe it because it is why long-context training and serving became affordable and a clean test of GPU memory-hierarchy reasoning.Sign in
Core
PagedAttentionThe KV cache is the memory bottleneck in LLM serving, and naively reserving a contiguous block per request (sized for the maximum length) wastes most of it to fragmentation and over-allocation. PagedAttention borrows virtual-memory paging: store the KV cache in fixed-size non-contiguous pages allocated on demand, so memory is used only as tokens are generated. This packs far more concurrent requests onto a GPU, raising throughput. Applied-AI interviews probe it because it is the key memory innovation behind modern serving (vLLM).Sign in
Advanced
Disaggregated Prefill/Decode and Prefix CachingLLM inference has two phases with opposite hardware profiles: prefill is compute-bound (it processes the whole prompt in parallel) while decode is memory-bandwidth bound (one token at a time). Running both on the same GPU pool makes them fight, so long prefills stall ongoing decodes and you miss either the time-to-first-token or the time-per-output-token SLO. Disaggregation runs them on separate GPU pools and transfers the KV cache between them, and prefix caching reuses KV for shared prompt prefixes. Applied-AI interviews probe it because it is the current frontier of serving architecture and a real latency-SLO tradeoff.🔒 Premium
Core
Speculative DecodingDecoding is sequential and memory-bound, so generating each token one at a time underuses the GPU. Speculative decoding uses a small, fast draft model to propose several tokens ahead, then the large model verifies them all in a single parallel pass, accepting the longest correct prefix. It speeds up generation with no change to output quality, since the big model still validates every token. Applied-AI interviews probe it because it is a clever, widely-used latency optimization that exploits the memory-bound nature of decode.Sign in
