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

Course overview

Serving Open-Weight Models

Free · sign in to start and track progress

1 · What the server does with your GPU

  • 1Inside an inference engine
  • 2GPU sizing arithmetic
  • 3Serving your adapter

2 · Smaller, faster, still correct

  • 4Quantisation with evidence
  • 5Latency, throughput and honest benchmarks
  • 6Speculative decoding in practice
  • 7Structured outputs and tool calls

3 · Ship it and run it

  • 8What self-hosting makes you responsible for
  • 9Deployment and rollout
  • 10Observability and operations

    Exercise answers

    • Answer: Dashboard, alerts and a capacity plan, with no GPU
    • Answer: Simulate prefix-aware routing across two replicas
CapstoneShip the triage endpointReference implementation

Module 3 · Ship it and run it · Lesson 10

Observability and operations

The 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.

90 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvDocker and Docker ComposeThe Quillmoor triage kit

By the end of this lesson you can

  • Scrape the engine's Prometheus metrics by their exact names and read what each one says about the scheduler
  • Define SLOs for TTFT, ITL, availability and parse rate, compute the error budget, and alert on leading signals rather than lagging ones
  • Diagnose "TTFT exploded", "ITL exploded" and "parse rate dropped" from metric snapshots and name the first action for each
  • Build a capacity plan from the measured knee, Little's law and the traffic forecast, with a written replica trigger
  • Decide between round-robin and prefix-aware routing across replicas, and say when prefill/decode disaggregation pays

On this page

  • Intuition: the gauges on the kiln
  • What the engine exports
  • SLOs, error budgets and what to alert on
  • The diagnosis tree
  • Capacity planning from the knee
  • Routing across replicas, and when disaggregation pays
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the gauges on the kiln
  2. 02What the engine exports
  3. 03SLOs, error budgets and what to alert on
  4. 04The diagnosis tree
  5. 05Capacity planning from the knee
  6. 06Routing across replicas, and when disaggregation pays
  7. 07Misconceptions and limits
  8. 08Connections
  9. 09Summary

Sources & further reading

  • Preble: Efficient Distributed Prompt Scheduling for LLM ServingPaper · Srivatsa, He, Abhyankar, Li, Zhang · 2024Prefix-aware scheduling across replicas: why routing on shared prompt prefixes beats load balancing alone, and the load-versus-locality trade-off the stretch exercise simulates. ICLR 2025.
  • Mooncake: A KVCache-centric Disaggregated Architecture for LLM ServingPaper · Qin, Li, He, Zhang, Wu et al. · 2024A production account of KV-centric disaggregation at scale, with the traffic characteristics that make it pay; read it to see what Quillmoor's load is not.
  • LLM Inference Benchmarking: Fundamental ConceptsLab research · NVIDIA · 2025The definitions of TTFT (including queueing), ITL, TPOT and end-to-end latency that the SLOs here use, and why two tools can report different inter-token numbers for the same run.
  • Metrics (vLLM design)Docs · vLLMThe metric families the engine exposes on /metrics (running and waiting requests, KV-cache usage, prefix-cache queries and hits, token counters, the TTFT, ITL, per-output-token, queue, prefill, decode and end-to-end histograms), the model_name label and the finished_reason label.
  • vLLM V1 metrics logger (source)Docs · vLLMWhere each `vllm:` name is declared, including the preemption counter the design page describes but does not name; Prometheus appends _total to every counter on exposition.
  • Prometheus and Grafana (vLLM example)Docs · vLLMThe docker-compose pattern the exercise follows: Prometheus on 9090 scraping the engine every 5 s, Grafana on 3000 with a dashboard import. Versioned URL; the latest-docs path is not served.
  • Disaggregated Serving (NVIDIA Dynamo)Docs · NVIDIAPrefill and decode pools, KV transfer between them, the router and the planner, and the sentence that decides for Quillmoor: at low concurrency an aggregated worker often does better.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks