GPU Infrastructure and Model Serving / Start Here

How this course works

Lesson 1 of 29. Open to read. No account needed.

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.

A course map in three rows. The core track runs from start here through why GPUs, the NVIDIA stack, sizing, serving with llama.cpp, measuring, quantization, vLLM, the engine landscape, multi-GPU and sharing, observability, capacity and cost and operations to the final challenge. A Kubernetes track with four lessons branches from the sharing module and rejoins before observability. An optional GPU track sits after the final challenge. A legend shows the four evidence kinds.

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:

KindWhat it means
Your own runYou ran it on your computer and are reading your output
CalculationYou computed it from stated inputs and can check it against a stated result or a measurement
Recorded NVIDIA runThe 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 outputQuoted 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

  1. Which track needs Docker, and what will that track show you that the core track cannot?
  2. A lesson shows an nvidia-smi table. What must the lesson state about that table before you rely on it?
  3. Your laptop measured 100 tokens per second. What does that number tell you about an H100, and what does the lesson say transfers instead?
  4. 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.

24 more lessons in the full course

Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

Get the full course

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy