Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

  1. AI Academy
  2. /
  3. Serving Open-Weight Models
AdvancedFree course

Serving Open-Weight Models

Put the model you fine-tuned behind a production endpoint: inference engines, GPU sizing, quantisation, latency tuning, structured outputs, rollout and operations.

3 modules · 10 lessons~32 hoursUpdated 2026-11-13Certificate included

See the curriculum
  • Lessons10
  • Quizzes10
  • Sources71
  • Of study~32h

About this course

About this course

You arrive with a LoRA adapter on a small open-weight model and an eval suite, and leave with a dependency other services can call. The course explains what an inference engine does with your GPU during prefill and decode, how to size and quantise a model with evidence from your own evals, how to hit a latency target under load, how to get guaranteed JSON and tool calls from an open model, and how to deploy, roll out and run the endpoint with metrics, SLOs and a capacity plan. Every lesson has a GPU path (Modal, Kaggle or your own NVIDIA card) and a CPU path through llama.cpp, so you can finish without a GPU.

About the running example

The examples follow Quillmoor, a fictional project-management SaaS whose operations team fine-tuned a small open model to triage support tickets and draft reply outlines, and now has to serve it to the help desk, the help-centre chat and a nightly backlog job. It is the same company as in Fine-Tuning and RL for Agents, and the exercises serve an adapter for the base you choose (your own, or any LoRA adapter for that base from the Hub) or the base alone; the course ships its own tickets and fixtures and stands alone. Worked numbers use Qwen3-4B-Instruct-2507 on one L4 GPU. All tickets, accounts and numbers are synthetic.

Outcomes

What you'll learn.

  1. 1Explain what an inference engine does during prefill and decode, and predict from weights, bandwidth and batch size whether a step is memory- or compute-bound and what that does to time to first token and tokens per second
  2. 2Size a GPU for a model, context length and concurrency from weights times precision plus KV cache per token, and choose between one GPU, tensor parallel and pipeline parallel with a written memory budget
  3. 3Quantise a fine-tuned model to W4A16, FP8 or GGUF, and measure what it costs with your own eval suite and a KL-divergence check before shipping it
  4. 4Tune a vLLM or SGLang endpoint to a TTFT, inter-token latency and goodput target with concurrency sweeps, chunked prefill, prefix caching and speculative decoding, and benchmark it honestly
  5. 5Serve guaranteed JSON and tool calls from an open model with server-side guided decoding, and serve one or many LoRA adapters without merging
  6. 6Deploy the endpoint in a container with health checks, warm-up, autoscaling and a shadow-then-canary rollout, run it against SLOs with engine metrics, and write a capacity plan and a runbook
Curriculum

3 modules, 10 lessons.

14h 10m of lessons

  1. Module 1 · 3 lessons · 4h 10m

    What the server does with your GPU

    How an inference engine turns weights and a KV cache into tokens, how much GPU that takes, and how your adapter gets in.

    1
    1. 1Inside an inference enginePrefill and decode are different workloads, and an inference engine's whole job is keeping a memory-bound decode loop busy with many requests at once through iteration-level batching, paged KV memory, chunked prefill and prefix caching.1h 25m7-question quiz7 sources
    2. 2GPU sizing arithmeticA GPU budget is four numbers (weights times bytes per parameter, KV bytes per token times tokens in flight, activations and graph headroom, and what is left) and the engine flags that implement it; the same three numbers give the speed floors and decide between one GPU, tensor parallel and pipeline parallel.1h 20m7-question quiz7 sources
    3. 3Serving your adapterA LoRA adapter can be merged into the base weights or served beside them with per-request selection; either way it needs a pinned base revision, the right chat template and a registry entry, because the two classic failures load cleanly and answer wrongly.1h 25m7-question quiz7 sources
  2. Module 2 · 4 lessons · 5h 45m

    Smaller, faster, still correct

    Quantisation you can defend with evals, latency tuning you can benchmark, speculative decoding, and guaranteed structure from the server.

    2
    1. 4Quantisation with evidenceQuantisation trades bits for memory bandwidth, so it is the biggest latency and cost lever you own; the only acceptable proof that it didn't break your model is a paired run of your own evals plus a KL check against the full-precision weights.1h 30m7-question quiz8 sources
    2. 5Latency, throughput and honest benchmarksTime to first token, inter-token latency and goodput pull against each other; the knobs are the token budget per scheduler step, the sequence cap, chunked prefill and prefix caching, and a benchmark is only as good as the load shape and the fields its report states.1h 30m7-question quiz7 sources
    3. 6Speculative decoding in practiceA cheap drafter proposes several tokens and the model verifies them in one memory-bound step; rejection sampling keeps the output distribution exactly the target's, the win is real at low concurrency, and it fades when the GPU is already busy.1h 15m6-question quiz7 sources
    4. 7Structured outputs and tool callsThe server can mask every token that would break your schema or grammar, which guarantees a parse but not a correct answer; tool calling on an open model is the same machinery plus a parser for the model's call format.1h 30m7-question quiz7 sources
  3. Module 3 · 3 lessons · 4h 15m

    Ship it and run it

    What you take on when you self-host, how to deploy and roll out, and how to run the endpoint against SLOs.

    3
    1. 8What self-hosting makes you responsible forSelf-hosting buys control, privacy and predictability, and in exchange you own the licence terms, the data path, the security of an open port and every upgrade; this lesson turns each of those into a written policy a linter can check.1h 15m7-question quiz7 sources
    2. 9Deployment and rolloutAn inference container is slow to start and expensive to idle, so deployment is about cached weights, warm-up, a health check that means "ready", an autoscaling policy chosen from the traffic shape, and a rollout you can judge with your evals and reverse in one command.1h 30m7-question quiz7 sources
    3. 10Observability and operationsThe engine already exports the numbers that explain every incident, queue depth, KV-cache usage, preemptions, prefix hit rate and the latency histograms; this lesson turns them into SLOs with error budgets, alerts on the leading signals, a diagnosis tree, a capacity plan from the measured knee and Little's law, and the routing decisions that come with a second replica.1h 30m7-question quiz7 sources
Capstone

Ship the triage endpoint

Take a fine-tuned triage model from an adapter on disk to a production endpoint with evidence at every step, from a quantised artefact proven by evals to a benchmarked, structured, canaried and monitored service with a capacity plan and a runbook.

Open the project brief
Certificate · free

Finish it. Get certified.

Complete every lesson of Serving Open-Weight Models and you get a certificate with your name on it. Free, like the course.

  • A public page with a certificate ID anyone can check
  • Download it as a PDF
  • Add it to LinkedIn in one click
Sample
FAQ

Serving Open-Weight Models, answered.

Is Serving Open-Weight Models free?

Yes, for everyone: all 10 lessons, 10 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.

Do I get a certificate?

Yes. Finish every lesson of Serving Open-Weight Models and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.

How long does Serving Open-Weight Models take?

About 32 hours: 3 modules and 10 lessons, at your own pace. Your progress is saved to your account, on every device.

Which roles is it for?

It's on the Machine Learning Engineer roadmap: the courses those jobs ask for, in the order to take them.

What do I need before I start?

Fine-Tuning and RL for Agents: you have, or can train, a LoRA adapter on a small open model, and a frozen test split with graders. LLM Cost Engineering, especially Self-hosting break-even (the cost-per-token maths is not repeated here), and LLMs for Engineers, especially Context windows, KV cache and caching. Scaling AI Systems, especially Load testing and capacity planning, or equivalent experience load-testing a service. Comfortable with Python, a Linux shell, Docker basics and reading JSON configs. A Modal account with a budget, your own NVIDIA GPU with 16 GB or more, or a free Kaggle GPU for the heavier exercises; a laptop with 8 GB of RAM is enough for the llama.cpp path.

Role roadmaps

Part of this roadmap

  • Become a Machine Learning Engineer

Before you start

Prerequisites

  • Fine-Tuning and RL for Agents: you have, or can train, a LoRA adapter on a small open model, and a frozen test split with graders
  • LLM Cost Engineering, especially Self-hosting break-even (the cost-per-token maths is not repeated here), and LLMs for Engineers, especially Context windows, KV cache and caching
  • Scaling AI Systems, especially Load testing and capacity planning, or equivalent experience load-testing a service
  • Comfortable with Python, a Linux shell, Docker basics and reading JSON configs
  • A Modal account with a budget, your own NVIDIA GPU with 16 GB or more, or a free Kaggle GPU for the heavier exercises; a laptop with 8 GB of RAM is enough for the llama.cpp path