FDEInterviews logoFDE/Interviews

ML Infrastructure & GPUs

46 questions
0 of 46 done · 10 unlocked for you
DONEUNLOCKEDLOCKED

ML Infrastructure & GPU Interview Questions

GPU/TPU workloads, distributed training and parallelism, inference serving (vLLM, batching, KV cache), cluster scheduling and scaling API gateways: the infra depth NVIDIA, Google and the AI labs probe.

Grounded in real Forward Deployed Engineer interview loops and written to a senior-engineer editorial bar.

You have 10 free answers unlocked here.Sign in free for 10 more · 26 are premium.
01–19Foundationsthe vocabulary every loop assumes you already have0/19 done
20–36Core loopsthe questions every loop actually asks0/17 done
37–46Field scenariosthe messy, half-specified problems from real deployments0/10 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
Sign in
GPU Memory and VRAMVRAM is the budget that decides which models you can actually run. It is spent on three things: model weights, the KV cache, and activations. Knowing the back-of-envelope arithmetic (a 7B model at fp16 is roughly 14GB of weights) is what separates a candidate who has deployed an LLM from one who has only read about it.
Core
Sign in
QuantizationQuantization stores model weights (and sometimes activations) in fewer bits, fp16 down to int8 or 4-bit, which cuts memory and speeds inference. The quality hit is usually small at int8 and larger at 4-bit. Knowing post-training quantization versus quantization-aware training, and when each is acceptable, is standard FDE interview ground.
Core
Sign in
Knowledge DistillationDistillation trains a small student model to mimic a large teacher, learning from the teacher's full output distribution rather than just hard labels. The soft targets carry extra signal about how the teacher 'thinks', so the student keeps much of the quality at a fraction of the size and latency. Knowing when distillation beats quantization or pruning is standard FDE ground when you have a latency or cost budget to hit.
Core
Sign in
Inference Serving (vLLM, TGI)Serving LLMs at high throughput under a latency SLO is its own engineering problem. Continuous batching keeps the GPU busy across requests of different lengths, and PagedAttention stops the KV cache from wasting memory. Naive one-request-at-a-time serving leaves most of an expensive GPU idle, which is why purpose-built runtimes like vLLM and TGI exist.
Advanced
🔒 Premium
Continuous BatchingStatic batching runs a fixed group of requests to completion together, so a batch of one short reply and one long reply makes the GPU idle while it waits on the longest. Continuous batching adds and evicts sequences from the running batch every decode step, keeping the GPU saturated and multiplying throughput. It is the scheduling trick at the heart of vLLM and every modern LLM serving stack.
Advanced
🔒 Premium
PagedAttentionAllocating each sequence's KV cache as one contiguous block forces you to reserve space for the maximum possible length, which fragments GPU memory and wastes most of it. PagedAttention borrows OS-style paging: it stores the KV cache in fixed-size non-contiguous blocks tracked by a per-sequence block table, so memory is packed, grown on demand, and shareable across sequences. It is the core memory trick that lets vLLM pack far more concurrent sequences into the same VRAM.
Advanced
🔒 Premium
Speculative DecodingDecoding is slow because each token needs a full forward pass through a huge memory-bound model. Speculative decoding has a small fast draft model propose several tokens at once, then the large target model verifies them all in a single forward pass and keeps the longest correct prefix. A careful accept rule makes the output provably identical to sampling from the target model, so you get lower latency for free, not an approximation.
Advanced
🔒 Premium
Distributed Training (FSDP, Parallelism)When a model or its training state will not fit on one GPU, you split the work across many. Data parallelism replicates the model and splits the batch; tensor parallelism splits a single layer's math across GPUs; pipeline parallelism splits the layer stack into stages; and FSDP/ZeRO shard the parameters, gradients, and optimizer states themselves. Each buys memory by spending network bandwidth, so the real skill is composing them to fit the model while keeping the GPUs busy.
Unlock all 46 answers · ₹2,000 / $25