AI

Inference Engineering roadmap

Serve language models quickly and cheaply: memory, batching, quantisation, GPUs and the systems that keep them running.

  • About 4 to 6 months
  • 8 to 10 hours a week
  • 5 stages

Tick each stage as you finish it. Your progress stays on this device.

Start stage 1

Time needed

About 4 to 6 months

8 to 10 hours a week. A step beyond using AI through an API. Hands-on GPU work costs money, so start with small models and short rentals.

Before you start

  • You are comfortable with Python and Linux
  • You know what a language model is and have called one through an API
  • You can use Docker

Not covered here

Training models from scratch and research on new model designs. This path is about running existing models well.

  1. Stage 13 weeks

    Understand what happens during inference

    Know where the time and memory go when a model answers.

    Learn

    • Tokens, and the two phases: reading the prompt and writing the answer
    • The key-value cache and why memory often limits you
    • Latency, time to first token and throughput
    • GPU memory, memory speed and compute
    • Estimating the memory a model needs

    Tools

    • Python
    • Hugging Face Transformers
    • GPU monitoring tools

    Build

    • Measure time to first token and tokens per second for a small model at different prompt lengths
    • A note that estimates the memory a model needs for a given context length

    CheckpointYour memory estimate lands close to what the GPU actually shows.

  2. Stage 23 weeks

    Serve a model

    Put a model behind an API and learn how it behaves under load.

    Learn

    • Inference servers and OpenAI-compatible APIs
    • Streaming responses
    • Continuous batching
    • How paged memory for the cache works, at concept level
    • Load testing
    • Choosing a GPU

    Tools

    • vLLM
    • llama.cpp or Ollama
    • A load-testing tool such as k6 or Locust

    Build

    • Serve an open model behind an API and load test it with 1, 10 and 50 users
    • A chart of response time against number of users

    CheckpointYou can say where the server starts to slow down and why.

  3. Stage 34 weeks

    Make it faster and smaller

    Cut cost and delay, and measure what you give up.

    Learn

    • Quantisation and its quality trade-offs
    • Prefix caching
    • Speculative decoding, at concept level
    • Splitting a model across several GPUs
    • Smaller and distilled models
    • Measuring quality loss

    Tools

    • Quantisation tools for your chosen server
    • An evaluation harness
    • A profiler

    Build

    • Quantise a model and compare speed, memory and answer quality with the original on 50 test questions
    • A table of every setting you tried and its result

    CheckpointYou can show a change that cut cost or delay, with a quality check beside it.

  4. Stage 44 weeks

    Run it in production

    Keep the service up, scaled and observable.

    Learn

    • Running GPU workloads on Kubernetes
    • Scaling on queue length
    • Model loading time and cold starts
    • Routing and fallback to another model
    • Watching tokens, queues and GPU use
    • Rate limits and sharing between customers

    Tools

    • Kubernetes
    • Prometheus and Grafana
    • An API gateway or router

    Build

    • A deployment that scales up under load and down when idle, with a dashboard
    • A runbook for the three most likely failures

    CheckpointUnder a load test your service scales, and you can state the cost per million tokens.

  5. Stage 5Ongoing

    Cost, hardware and specialising

    Decide what to run yourself and what to rent, and build a reputation.

    Learn

    • Running your own GPUs versus a managed API
    • Choosing GPUs and memory sizes
    • Interactive work versus batch work
    • An introduction to optimised GPU code
    • Following the open-source inference projects
    • Writing benchmarks that are fair

    Tools

    • Cloud GPU price pages
    • Benchmark scripts
    • Open-source inference repositories

    Build

    • A fair benchmark report comparing two serving setups, with method and caveats
    • A detailed bug report or small contribution to an open-source inference project

    CheckpointSomeone else can repeat your benchmark and get similar numbers.

Afterwards

Roles this prepares you for

All career paths

Tools and model names change quickly. Treat the names here as examples, and check each tool's own documentation for what is current.