What You Will Learn
A model is only useful once something can call it, and calling a large model fast enough and cheaply enough is an infrastructure problem: which hardware, how much memory, how many requests at once, what to measure, what to buy and what breaks. This course teaches that problem from the hardware up. You will size memory and concurrency for a model, serve a small model on your own computer with a production-style server, measure it under load, compare the serving engines, decide how to split or share GPUs, schedule GPU workloads on Kubernetes, read the metrics that matter, plan capacity and cost, and diagnose the failures that serving actually hits. The last lesson is a bounded challenge that uses all of it.

Figure: the sixteen modules in order. Follow the top row; the Kubernetes module needs Docker and kind; the GPU track at the end is optional and chargeable if you rent a GPU. The legend names the four kinds of evidence a lesson can show.
The Three Tracks
The core track runs on any 64-bit computer with 8 GB of memory and about 5 GB of disk: macOS 14 or later, Windows 10 or 11, or Linux. You install llama.cpp, a small open-weight model file (491 MB, Apache-2.0) and two Python libraries, and everything else is a script you save from a lesson. No GPU is needed. On an Apple silicon Mac, llama.cpp uses the Metal GPU by default, so you will see real GPU offload; on an NVIDIA machine it can use CUDA; everywhere else it runs on the CPU. The mechanics you practise (routes, slots and batching, cache sizing, measurement, metrics, scheduling rules) are the same on every one of them. The numbers are not, and no lesson pretends they are.
The Kubernetes module (four lessons) adds Docker, kubectl and
kind, which creates a Kubernetes cluster inside Docker. You will
advertise a pretend GPU resource on that cluster and watch the scheduler
enforce the real rules. It shows scheduling, not device access; the
lesson says so each time.
The optional GPU track (the last lesson) repeats the serving, vLLM, metrics and scheduling work on an NVIDIA GPU you own or rent by the hour. It is separated from every core outcome, and it sets a budget before anything is created.
How Evidence Is Labelled
The author has no NVIDIA GPU, and most learners will not either. So every output you see in this course is one of four kinds, and lessons say which:
| Kind | What it means |
|---|---|
| Your own run | You ran it on your computer and are reading your output |
| Calculation | You computed it from stated inputs and can check it against a stated result or a measurement |
| Recorded NVIDIA run | The author ran it on an NVIDIA GPU in a session with a stated date, GPU, driver and versions; none exists yet, and the lesson says so where it would apply |
| Cited vendor output | Quoted from a named vendor or project page with its date |
A number measured on a laptop says nothing about a data-centre GPU. When a lesson shows the author's laptop numbers it labels them illustrative; what transfers is the shape of a result, not its value.
The Three Views
Every lesson has the same identity in three views, chosen in the reader:
- Full Course teaches the lesson: the problem, the concepts, a worked example, the task step by step with its expected result, what differing results mean, an independent task and a check of your understanding.
- Revision helps you reconstruct the reasoning afterwards: the ideas, the decisions and the common mistakes, with a few retrieval questions.
- Quick Reference is the sheet you keep open while working: option tables, formulas, route and metric names and diagnostic cues, each with the context it needs to be used safely.
Read the Full Course first. The other two are not shortcuts past it.
Where Files Go and How Cleanup Works
The setup lesson creates one folder, ~/gpu-serving-practice, with the
Python environment in .venv and the model files in models. Each
exercise works in its own folder under it, for example
~/gpu-serving-practice/slots-and-continuous-batching, and writes only
there. Cleanup at the end of a lesson removes only that exercise folder;
the environment and the models stay for the next lesson. Every server a
lesson starts is stopped in the same lesson with Ctrl+C, and every
Kubernetes cluster is deleted in its module. On Windows, use PowerShell;
lessons give the differing commands where they differ.
Servers bind to 127.0.0.1, your own machine, in every core lesson. A
lesson that exposes a port says why and what protects it.
What Completion Means
Lessons end with checks you assess yourself against stated success criteria. Nothing is graded automatically, and marking a lesson complete records that you finished it, not that you can do it. The course makes no claim of mastery, job readiness or certification. Treat the checks as the honest measure: if you cannot predict a result before running it, the lesson is not done.
Versions You Will Use
The course was written against llama.cpp 0.7.0 (build 11669), the
huggingface_hub 2.2.0 and httpx 0.28.1 libraries, Python 3.12 to
3.15, and the Qwen2.5-0.5B-Instruct model in GGUF form. Package managers
track newer llama.cpp releases, so the version you print may be newer;
each lesson tells you what to check when it matters. Every fact that
depends on a version cites its source and date.
Check Your Understanding
- Which track needs Docker, and what will that track show you that the core track cannot?
- A lesson shows an
nvidia-smitable. What must the lesson state about that table before you rely on it? - Your laptop measured 100 tokens per second. What does that number tell you about an H100, and what does the lesson say transfers instead?
- Where do exercise files go, and what does cleanup never remove?
Answers: (1) The Kubernetes module; it shows the scheduler enforcing the
GPU resource rules on a pretend resource, which is scheduling, not device
access. (2) Which kind of evidence it is: a recorded run with its date,
GPU, driver and versions, or cited vendor output with its date; no
recorded NVIDIA run exists at the time of writing. (3) Nothing about an
H100's speed; the shape of a measured result (how throughput and latency
move with concurrency) transfers, the value does not. (4) Under
~/gpu-serving-practice/<exercise>; cleanup never removes .venv or
models.
Next
The setup lesson builds the environment, downloads the model and sends the first request. It is the only lesson whose downloads take a while: plan for 10 to 20 minutes per file on a slow connection.