On this page
- What teams actually test
- Stage 1: the physics (2 to 3 weeks)
- Stage 2: engines (2 to 3 weeks)
- Stage 3: techniques (4 to 6 weeks)
- Stage 4: measurement (1 to 2 weeks, then forever)
- Stage 5: GPU kernels (4 to 8 weeks)
- Stage 6: production (ongoing)
- How long it takes
- Adapting the route to your background
- Six projects that prove you can do the job
- Interview questions to practise
- Primary sources worth reading
- Mistakes that slow people down
- FAQ
- A structured route
Inference engineering sits between machine learning, systems programming and infrastructure. That's why it feels hard to break into: no single background covers it. The good news is that the core is smaller than it looks. A few ideas, a couple of engines and a habit of measuring carefully will take you most of the way.
This is a roadmap in the order that makes each step easier than the last. If you're not sure what the job is yet, read what is inference engineering first.
#What teams actually test
Look across job posts for inference engineer, ML performance engineer and AI infrastructure engineer, and the same skills come up:
| Skill | What "good" looks like in an interview |
|---|---|
| Performance reasoning | Estimate tokens per second and memory for a model on a GPU, on a whiteboard |
| Serving engines | Explain how vLLM or SGLang batch requests and manage the KV cache |
| Optimisation techniques | Say when quantisation, speculative decoding, prefix caching or parallelism helps, and what each costs |
| Measurement | Design a load test, read percentiles, and spot a misleading benchmark |
| GPU fundamentals | Explain memory hierarchy, why kernels fuse, what a profile shows |
| Production | Size a deployment from traffic and SLOs, and plan for failure |
You don't need all of it on day one. You need the first three solidly, and enough of the rest to show you can learn it.
#Stage 1: the physics (2 to 3 weeks)
Learn to predict before you measure:
- Tokens, prefill and decode. Why the first token is slow and the rest are fast (prefill vs decode).
- VRAM maths. Weights plus KV cache plus overhead (how much VRAM do you need).
- The roofline model. Arithmetic intensity and the balance point of a GPU (roofline lesson).
- The KV cache. How big it is per token and why it limits concurrency (KV cache explained).
Checkpoint: given a model and a GPU, you can estimate decode speed at batch 1 within a factor of two, and say how many 8K-token conversations fit in memory.
#Stage 2: engines (2 to 3 weeks)
Run vLLM or SGLang yourself. A single rented GPU or even a consumer card is enough. Learn:
- Continuous batching and why it beats static batching (continuous batching explained).
- PagedAttention and prefix caching (PagedAttention explained).
- The knobs that matter: maximum concurrent sequences, maximum batched tokens, GPU memory fraction, chunked prefill.
- How engines differ (vLLM vs SGLang, llama.cpp vs vLLM).
Checkpoint: you can serve a model, load test it at several concurrency levels, and explain the throughput and latency curve you get.
#Stage 3: techniques (4 to 6 weeks)
This is the bulk of the job. For each technique, learn what it changes, when it helps and what it costs:
| Technique | Helps when | Costs |
|---|---|---|
| Quantisation (FP8, INT4, FP4) | Memory or bandwidth bound, which is most decode | Some quality; needs validation |
| Speculative decoding | Low batch, latency matters, predictable outputs | Extra compute; little gain at high batch |
| Prefix caching | Shared system prompts, multi-turn chat, agents | Memory for cached blocks |
| Tensor parallelism | Model too big for one GPU, or latency-critical | Communication every layer |
| Disaggregated prefill and decode | Long prompts hurting decode latency | More moving parts and KV transfer |
| Mixture of experts | Large models with low per-token compute | Memory for all experts; expert routing |
Each has an explainer on this blog: quantisation for serving, speculative decoding, parallelism, disaggregation, MoE.
#Stage 4: measurement (1 to 2 weeks, then forever)
Most published LLM benchmarks are misleading in some way. Learn to do it properly:
- Open-loop load at a fixed arrival rate, not a fixed number of users in a loop.
- Percentiles (P50, P95, P99) for time to first token and inter-token latency.
- Goodput: requests per second that met the latency target, not raw throughput.
See how to benchmark an LLM server and LLM serving metrics explained.
#Stage 5: GPU kernels (4 to 8 weeks)
You don't need to beat cuBLAS. You do need to read a profile and understand why a kernel is slow, and it helps a lot to have written a few. Learn CUDA first (threads, warps, shared memory, coalescing), then Triton, then Nsight. See CUDA vs Triton and what is a GPU kernel.
#Stage 6: production (ongoing)
Capacity planning from traffic and SLOs, autoscaling, observability for GPU services, and failure handling. The worked example in how many GPUs do you need to serve an LLM is the kind of question senior interviews ask.
#How long it takes
At about 10 hours a week, the stages above add up to roughly four to six months to be interview-ready for a first inference role, less if you already work on backend or ML systems:
| Stage | Weeks at 10 hours a week |
|---|---|
| 1. The physics | 2 to 3 |
| 2. Engines | 2 to 3 |
| 3. Techniques | 4 to 6 |
| 4. Measurement | 1 to 2 |
| 5. GPU kernels | 4 to 8 (can overlap with stage 6) |
| 6. Production | ongoing |
The projects below are where most of that time should go. Reading without building rarely sticks.
#Adapting the route to your background
| You come from... | You already have | Spend extra time on |
|---|---|---|
| Backend or infrastructure engineering | Systems thinking, load testing, production operations | Stage 1 physics and stage 3 techniques |
| ML engineering or research | Models, PyTorch, training | Stages 2 and 4: engines and honest measurement |
| HPC or CUDA development | GPU architecture and kernels | Stages 2, 3 and 6: engines, techniques, production |
| Data science | Python, statistics | Stage 1 and the systems side of stages 2 and 6 |
| Student | Time and curiosity | All stages in order, with every project written up |
#Six projects that prove you can do the job
Projects beat certificates. Each of these produces something you can link to:
- A speed predictor. A small script that predicts decode tokens per second and max concurrency for any model and GPU, then compare it with real measurements on one GPU. Write up where the gaps come from.
- An engine tuning report. Take one model on one GPU, tune vLLM or SGLang for a stated workload, and report baseline versus tuned goodput with error bars.
- A quantisation study. Compare BF16, FP8 and a 4-bit format on speed and on a quality benchmark that matches a real task.
- A speculative decoding experiment. Measure acceptance rate and speed-up across batch sizes, and show where it stops helping.
- A fused kernel. Write a fused RMSNorm or SwiGLU in Triton, test it against PyTorch, and benchmark it against
torch.compile. - A capacity plan. Given a traffic profile and latency targets, size a deployment, then load test a scaled-down version to check your maths. The platform design capstone is a worked example of the full write-up.
Write each one up clearly: setup, method, results with spread, what you'd try next. A good write-up is half the value.
#What a strong write-up looks like
Take project 2, the engine tuning report. A reviewer should be able to find, in under a minute:
- The question: "How much more chat goodput can one L4 GPU serve for an 8B model at P95 TTFT under 1 s and TPOT under 60 ms?"
- The setup: GPU, engine and version, model and precision, the exact command line.
- The workload: prompt and output length distributions, and where they came from.
- The method: open-loop arrival rates, warm-up, run length, repetitions (how to benchmark an LLM server).
- The result: baseline and tuned goodput, with the spread across runs, and a latency-versus-load chart.
- The explanation: why each change helped, tied back to the physics (memory, batching, prefill interference).
- What didn't work, and what you'd try next.
Point 6 is what separates a strong candidate from someone who tried flags until a number went up.
#Interview questions to practise
These come up again and again. You should be able to answer each on a whiteboard, with numbers:
- Why is decode memory-bandwidth bound, and prefill compute bound? (prefill vs decode)
- Estimate tokens per second for a 70B model in FP8 on one H200 at batch 1.
- How big is the KV cache for a given model and context length, and how many users fit? (KV cache explained)
- What problem does PagedAttention solve? (PagedAttention explained)
- Why does continuous batching beat static batching? (continuous batching)
- When does speculative decoding help, and why does it fade at high batch? (speculative decoding)
- Tensor parallelism or more replicas: how do you decide? (parallelism)
- What's the difference between TTFT, TPOT and goodput, and why use percentiles? (serving metrics)
- Size a deployment for a given traffic level and latency target (how many GPUs).
- What does FlashAttention change, and what doesn't it change? (FlashAttention explained)
The interview questions page has more, by topic.
#Primary sources worth reading
Blog posts and courses summarise; the original papers and docs are worth reading once you know the basics:
- PagedAttention (the vLLM paper, 2023): KV cache memory management.
- Orca (2022): iteration-level scheduling, the origin of continuous batching.
- FlashAttention (2022) and FlashAttention-2 (2023): IO-aware attention.
- Speculative decoding (two independent papers from Google and DeepMind, 2022 and 2023): the acceptance rule.
- GQA (2023): grouped-query attention and converting MHA models.
- SmoothQuant, AWQ and GPTQ: the main quantisation methods.
- DistServe and Splitwise (2024): disaggregated prefill and decode.
- The vLLM and SGLang documentation, especially the sections on scheduling, metrics and tuning.
#Mistakes that slow people down
- Skipping the maths. Without the roofline and KV maths, every experiment is a guess.
- Learning ten engines shallowly. Know one deeply; the others are variations.
- Benchmarking with closed loops and averages. They hide the latency your users feel.
- Writing kernels too early. Most performance comes from configuration and architecture choices first.
- No write-ups. Work nobody can see doesn't help you get hired.
#FAQ
Do I need a GPU of my own? No. Cloud GPUs by the hour (or free notebook GPUs) are enough for every project above. A consumer GPU or a Mac helps for local experiments but isn't required.
Do I need a degree in machine learning? No. Most of the job is systems engineering applied to models. What matters is being able to reason about memory, compute and measurement, and to show it in your projects.
Which engine should I learn first? vLLM or SGLang. Learn one deeply; the ideas carry over (vLLM vs SGLang).
Is this field going to be automated away? The tools improve constantly, but every new model, GPU and workload brings new trade-offs. Someone still has to decide, measure and explain them.
#A structured route
If you'd rather follow a sequence than assemble one, the Inference Engineering course covers stages 1 to 4 with labs, and GPU Kernels for Inference covers stage 5. The inference engineering roadmap puts it week by week, and the interview questions page lets you test yourself on each topic.
inference-engineeringcareersroadmap
Found this useful?
Send it to someone who is learning the same thing.
Preparing for an interview?
Next: learn it step by step, free
Prefill, decode and the roofline
The first idea every inference engineer learns, and the one interviewers check first. A free lesson with step-through diagrams and a quiz.