All Insights
AI Hardware & Infra9 min read•2026-11-23•Hiring.ai Research

The Technical Interview Guide for Inference Engineers: vLLM, TensorRT-LLM, KV Cache & Speculative Decoding

A comprehensive systems breakdown of what top AI infrastructure teams test: continuous batching, PagedAttention, KV cache eviction, FP8/INT4 quantization, and speculative decoding.

The Technical Interview Guide for Inference Engineers: vLLM, TensorRT-LLM, KV Cache & Speculative Decoding

Inference engineering is currently the highest-paying software domain per year of experience.

Top AI labs and infrastructure startups (Anthropic, Baseten, Groq, Cerebras, Together AI) regularly offer **\$280,000 to \$450,000 base salaries** for engineers who understand how to extract maximum tokens per second per dollar from high-end GPU and accelerator clusters.

If you are preparing for AI Systems and Inference interviews in 2026, here is the exact technical roadmap.

---

1. The Core Bottleneck: Memory Bandwidth vs. Compute

Every inference candidate must instinctively understand the difference between the two LLM phases:

1. **Prefill Phase (Prompt Processing):** - **Compute-bound.** The model processes all input tokens in parallel. - High arithmetic intensity. Matrix multiplications fully saturate Tensor Cores. 2. **Decode Phase (Token Generation):** - **Memory-bandwidth bound.** The model generates tokens sequentially, one by one. - Every single token generated requires reading billions of model parameters and the entire Key-Value (KV) cache from high-bandwidth memory (HBM) into SRAM. - Arithmetic intensity is near zero.

**Interview Question:** *"Why does generating 100 tokens take dramatically longer than processing a 1,000-token prompt?"* > **Strong Answer:** Prefill saturates matrix units via parallel GEMMs, while auto-regressive decode is throttled by memory bus transfer speed (e.g., 3.35 TB/s on an H100 SXM5).

---

2. Five Systems Concepts You Will Be Grilled On

A. PagedAttention & Continuous Batching Traditional static batching forces all sequences in a batch to wait for the slowest generation to complete, wasting up to 60–80% of GPU memory on internal fragmentation. - **Continuous Batching (Orca/vLLM):** Iteration-level scheduling where completed requests immediately exit the batch and new requests join dynamically. - **PagedAttention:** Managing the KV cache in virtual memory pages (like an OS paging table), eliminating external fragmentation entirely.

B. KV Cache Compression & Eviction For long-context models (128k to 1M tokens), the KV cache quickly dwarfs the weights of the model itself. - Expect questions on **Flash-Decoding**, **StreamingLLM**, and rolling-buffer window attention. - Quantizing KV caches from FP16 to **FP8** or **INT4** without degradation on needle-in-a-haystack recall benchmarks.

C. Speculative Decoding - Running a small, fast "draft model" (e.g., 1B parameters) to generate $K$ candidate tokens at high speed, followed by a single forward pass of the larger "target model" (e.g., 70B) to verify all $K$ tokens in parallel. - Mathematical acceptance criteria based on rejection sampling.

D. Quantization Formats (FP8 vs. AWQ vs. GPTQ) - Understanding modern hardware support: NVIDIA Ada Lovelace / Hopper / Blackwell native FP8 Tensor Cores. - Weight-only quantization (W4A16) vs. Weight-and-Activation quantization (W8A8).

E. Tensor Parallelism vs. Pipeline Parallelism - How **NCCL All-Reduce** operations coordinate weights split across multiple GPUs on an 8-way SXM board. - The latency cost of inter-GPU communication across NVLink versus cross-node InfiniBand RDMA.

---

3. Sample Live Coding & Systems Design Prompts

1. **Design a Dynamic Batching Queue:** Write a Python/C++ scheduler that maximizes GPU utilization while enforcing a strict 50ms time-to-first-token (TTFT) SLA. 2. **Calculate KV Cache Memory:** Given a 70B parameter model with 64 layers, 8 KV heads, and hidden dimension 8192, calculate the exact memory required to store the KV cache for a batch of 64 requests with 4,096 tokens each in FP16. 3. **Debug a CUDA Kernel:** Identify memory coalescing issues or bank conflicts in a custom Softmax or RoPE (Rotary Position Embedding) kernel.

---

4. Target Companies Hiring Inference Engineers

Browse active roles currently hiring across our curated network on Hiring.ai: - **Foundational Labs:** Anthropic, OpenAI, Mistral AI - **Specialized Cloud & Serving Platforms:** Baseten, Together AI, Fireworks AI - **Custom Silicon Teams:** Groq, Cerebras Systems, Etched

Active AI Hardware & Infra Roles Referenced in this Teardown

Verified open positions synced directly from company ATS feeds.

View all roles
Anthropic•Hardware & Infra•On-site

Systems Engineer, Inference Infrastructure

$280k - $380kApply
Baseten•Hardware & Infra•Remote (US)

Senior AI Infrastructure Engineer, Model Serving

$210k - $300kApply
Groq•Hardware & Infra•Remote (US)

Lead LPU Kernel Compiler Engineer

$240k - $340kApply
The Tuesday Morning Dispatch

Signal Over Noise for AI Engineers

Join 8,400+ inference engineers, AI researchers, and founding builders. Every Tuesday: 10 curated unadvertised roles, deep tech stack teardowns, and verified salary benchmark data.

✓ Zero recruiters spam•✓ Unsubscribe anytime•✓ 100% Signal
The Technical Interview Guide for Inference Engineers: vLLM, TensorRT-LLM, KV Cache & Speculative Decoding | hiring.ai Insights | hiring.ai