Inference Engineer
Serve language models on GPUs fast, cheap and reliably: KV cache, batching, quantization and serving.
Must know You will not get hired without it.Good to know An extra plus.Specialist Only for special roles.
Prerequisites
Know these before stage 1. The stages below build on them.
RoadmapSenior Python DeveloperDeep Python, web services, working with data and concurrency.Math for MLVectors, dot product, matrices, matrix multiply, shapes and softmax; just enough to read a modelNeural network basicsLayers, weights and parameters, activations, the forward pass, training versus inferenceTransformers and attentionTokenizer, embeddings, attention with query, key and value, heads and layers, next-token prediction and samplingHow a GPU worksMany cores, HBM memory and bandwidth, memory-bound versus compute-bound, FP16, BF16 and INT8, CPU to GPU copiesPyTorch for inferenceTensors, dtype and device, loading a model, inference_mode, generating text and timing correctly on a GPU
How a model writes an answer
The prefill and decode steps, the KV cache, and the numbers that show speed.
Fit the model on the GPU
Count GPU memory, make the model smaller, and split it over several GPUs when it does not fit.
Serve many users at once
Continuous batching, prefix caching and the tricks that get more work out of each GPU.
Run it in production
Serving engines, load tests, autoscaling, speed targets and the cost of a million tokens.
Must know: Running LLM serving in productionvLLM, SGLang and TensorRT-LLM, realistic load tests, speed targets (SLOs), autoscaling, cold starts, cost per million tokensGood to know: Metrics and alertsPrometheus, Grafana and good alertsGood to know: KubernetesPods, deployments, HPA and graceful shutdown
Keep the quality
Every speed trick can lower quality. Prove with evals that it did not.
Advanced inference
For senior and specialist roles: speculative decoding in depth, and running a model over many GPUs and machines.
Specialist: Speculative decoding in depthAcceptance rule, speed-up math, number of guessed tokens, draft models, n-gram, EAGLE and Medusa, measuring on real trafficSpecialist: Distributed inferenceTensor and pipeline parallelism in depth, all-reduce, many machines, expert parallelism, separate prefill and decode