[vLLM & SGLang Engineering] Foundations thumbnail

[vLLM & SGLang Engineering] Foundations

SSreedath Panat
44 lessons12 topicslive

About this course

vLLM & SGLang Engineering: End-to-End is a twelve-lecture live bootcamp on serving large language models with the two leading open-source inference engines. Over six weeks, with two lectures a week and two hours per lecture, you read both engines and trace a request through each, build an OpenAI-compatible server on vLLM and an SGLang program with structured outputs and LoRA adapters, benchmark both with one harness, tune vLLM's scheduler and KV cache manager and SGLang's radix cache and overlap scheduler against a latency target, quantize a model to FP8 and INT4 and measure what changed on each engine, scale across GPUs with tensor, pipeline, data and expert parallelism, add speculative decoding and disaggregated prefill, and finish by deploying a production endpoint on Kubernetes with a cache-aware router, metrics, autoscaling and a cost model.

The inference fundamentals (prefill and decode, the KV cache, batching, quantization basics, parallelism basics, the idea of speculative decoding) are covered in self-paced videos you watch before week 1, so every live hour is spent inside the two engines.

You work in one repository that grows across the lectures: the benchmark harness from lecture 5 measures every change you make after it, on both engines. The capstone serves one model on vLLM and on SGLang, benchmarks both, and defends the choice. Notes, slides, notebooks, cloud GPU scripts, assignments and quizzes are included. Sessions are live on Zoom and recorded; you keep lifetime access to the recordings, code and notes, and receive a certificate on completion.

Suitable for engineers who serve, or will serve, open-weight models and are comfortable with Python, the command line and a GPU.

Course curriculum

12 topics • 44 lessons

Zoom link for Nov 25th Wednesday 7.30am1 items
  1. Zoom link for Nov 25th Wednesday 7.30am
Discord invite link1 items
  1. Join the Discord server for this course using the link below
Course syllabus1 items
  1. Syllabus
Session 0: How LLM inference works on a GPU8 items
  1. Session 0 recording
  2. Session 0 slides
  3. Session 0 slides: direct link and PDF
  4. Session 0 Colab notebook
  5. Zoom transcript and chat
  6. Assignment 1: How many chats fit, and what makes decode slow
  7. Assignment 1: How many chats fit, and what makes decode slowassignment
  8. Back-of-envelope calculator (interactive)
Session 1: vLLM architecture10 items
  1. Session 1 recording
  2. Session 1 slides
  3. Session 1 slides: direct link and PDF
  4. Session 1 Colab notebook
  5. Zoom transcript and chat
  6. Assignment 2: The vLLM scorecard for a different model and GPU (by hand)assignment
  7. Assignment 3: Turn vLLM's knobs in the Session 1 Colab labassignment
  8. Back-of-envelope calculator (interactive)
  9. The journey of a request (interactive)
  10. Session 1 whiteboard notes (Miro)
Session 1.5: Tiling, how SMs multiply big matrices (bonus lecture)5 items
  1. Session 1.5 recording
  2. Session 1.5 slides
  3. Tiling explorer (interactive)
  4. Session 1.5 slides PDF and transcript
  5. Session 1.5 whiteboard notes (Miro)
Session 2: SGLang architecture9 items
  1. Session 2 recording
  2. Session 2 slides
  3. Session 2 slides: direct link and PDF
  4. Session 2 Colab notebook
  5. Zoom transcript and chat
  6. The journey of a request through SGLang (interactive)
  7. Radix tree builder (interactive)
  8. Session 2 whiteboard notes (Miro)
  9. Assignment 4: Read SGLang's numbers in the Session 2 Colab labassignment
Pre-course material5 topics
Pre-read material: start here1 items
  1. A note from Sreedath: what to watch and why
1. Transformers architecture mastery (7 hours)2 items
  1. Lecture video: Transformers architecture mastery
  2. Miro notes and Colab code
2. KV cache and Grouped Query Attention2 items
  1. Lecture video: KV cache and GQA
  2. Interactive website: KV cache
3. Lightning lesson 1: How LLM Serving Works3 items
  1. Lecture video: How LLM Serving Works
  2. Lecture slides
  3. Interactive website: serving simulator (a simple server vs vLLM/SGLang on one H100)
4. Lightning lesson 2: Journey of a token in vLLM and SGLang5 items
  1. Lecture video: Journey of a token in vLLM and SGLang
  2. Lecture slides
  3. Interactive website: one request through vLLM, step by step
  4. Interactive website: the same request through SGLang
  5. Animations: KV cache, batching, PagedAttention and RadixAttention