A live bootcamp on the two engines that serve open models
Live bootcamp · Starts Tuesday, 10 November 2026

vLLM & SGLang
Engineering:
End-to-End.

A twelve-lecture live course on serving large language models with vLLM and SGLang, taught by Dr. Sreedath Panat (MIT PhD). You read both engines, benchmark them, tune, quantize and scale each, and finish with a production endpoint on the engine your own numbers picked.

Starts10 Nov 2026DaysTue and ThuTime9 to 11 am ISTFormatLive on Zoom

Every session is recorded. Recordings included.

12
live lectures
6
weeks
2
engines
1
endpoint you ship
00One engine step

What an engine does every step

Requests arrive, the scheduler admits them, one decode step advances every sequence in the batch, and each sequence's KV cache is handed out and returned as it runs. vLLM and SGLang both run this loop. How each one schedules the step and stores the cache is what the course is about.

01Where the two engines come from

Two answers to the same question, both from Berkeley

vLLM started in 2023 at UC Berkeley, when Woosuk Kwon, Zhuohan Li and their collaborators asked why LLM serving wasted so much GPU memory. Their answer, PagedAttention, manages the key-value cache the way an operating system manages memory: in fixed blocks, allocated on demand, shared where two requests overlap. It became a community project with thousands of contributors, joined the PyTorch Foundation in 2025, and rewrote its core as the V1 engine.

SGLang came out of the same Berkeley groups a few months later, from Lianmin Zheng, Ying Sheng and the LMSYS team. It asked a different question: what if serving understood the program calling it? Its frontend language expresses multi-call, branching workloads, and RadixAttention keeps the KV cache in a prefix tree so every shared prefix across requests and turns is stored once. Both engines ship weekly today, and this course reads, benchmarks and deploys both as they are now.

02Why both engines

Why learn both, properly

Three reasons, in short.

01

These are the two engines you will meet

vLLM and SGLang are the two most used open-source inference engines, with over 92,000 and 36,000 GitHub stars and millions of downloads a month between them. If you serve open-weight models, one of them is your engine and the other is the one you are compared against.

02

The knobs decide the GPU bill

The same model on the same GPU can differ several times over in throughput depending on scheduler budgets, cache settings, quantization and parallelism, and the right settings differ between the two engines. This course teaches you to measure each one instead of copying a config.

03

The choice is a measurement, not an opinion

Which engine wins depends on the workload: shared prefixes, multi-turn agents, long prompts, mixture-of-experts models. You learn both well enough to run the comparison yourself and defend the answer.

03By the numbers

The two most used open-source inference engines

Both repositories from the public record, and how much each project ships each year.

92K+

GitHub stars on the vLLM repository

GitHub, Sep 2026
36K+

GitHub stars on the SGLang repository

GitHub, Sep 2026
21K+

Merged pull requests on vLLM since 2023

GitHub, Sep 2026
19K+

Merged pull requests on SGLang since 2024

GitHub, Sep 2026

Merged pull requests per year

How fast both codebases move, and why reading them is a skill

vLLMSGLang
533
2023
merged PRs
3,350
1,563
2024
merged PRs
8,640
6,849
2025
merged PRs
9,174
10,839
2026
to 23 Sep

Source: GitHub search, vllm-project/vllm and sgl-project/sglang, counted 23 September 2026.

04What changes

What the two engines change about serving

A plain generate loop pads a batch, preallocates the cache, and waits. Both engines schedule at the token level and manage the cache cleverly, but not in the same way. The table shows where they agree and where they differ.

How requests are batched
Plain loopA batch waits for its slowest request, and new requests wait for the whole batch to finish.
vLLMContinuous batching with a token budget per step, admitting and retiring requests every step.
SGLangThe same, plus an overlap scheduler that prepares the next batch while the GPU runs the current one.
Where the KV cache lives
Plain loopPreallocated per request at the maximum length. Most of it is never used.
vLLMPaged into fixed blocks, allocated on demand, shared across prompts with a matching prefix hash.
SGLangA radix tree of token sequences, so any shared prefix across requests or turns is stored and reused once.
What you write against it
Plain loopA generate call.
vLLMAn OpenAI-compatible API with structured outputs, tools and adapters.
SGLangThe same API, or a program with gen, select and fork that the runtime schedules as one job.
05The architecture

The request path you trace in lectures 1 and 2

Pick an engine. Each block is highlighted in turn with a note on what it does and which lecture goes deep on it.

stream tokensone step per loopAPI serverEngineCoreSchedulerKV cache managerModel runner (GPU)Sampler and detokenizer
Lecture 2

API server

The OpenAI-compatible frontend. It validates the request, applies the chat template, tokenizes, and streams tokens back as they are produced. Structured outputs and tool-call parsers live here.

06Three parts of an engine you tune

Three components you will read, measure and tune

Simplified views of three components, drawn the vLLM way. The ideas behind them are assumed knowledge. The lectures are about how vLLM and SGLang each implement them, where they live in the code, and which settings change the numbers.

Lecture 1

The KV cache: blocks or a radix tree

vLLM keeps a block pool with block tables and shares prefixes by hash. SGLang keeps a radix tree of token sequences and shares any common prefix. Lectures 1, 2, 6 and 7 cover what each buys you.

Lecture 4

The scheduler's step, in each engine

Both engines refill a freed slot at the next step within a token budget. vLLM tunes it with max_num_seqs and max_num_batched_tokens; SGLang adds an overlap scheduler that prepares the next batch while the GPU runs.

Lecture 7

Speculative decoding in both engines

A drafter (EAGLE, MTP, n-gram or a draft model) proposes, the target verifies in one pass, and the accepted prefix is kept. Both engines expose the acceptance rate, and lecture 10 measures whether it pays on each.

07Syllabus

Twelve lectures over six weeks

Two lectures a week. Most topics are taught as a pair: how vLLM does it, how SGLang does it, and what that changes in the numbers. Details may change as the material is finalized.

Week 1

Inside both engines

1
Lecture 1

vLLM architecture and the request lifecycle

Covers

What problem vLLM solves, the V1 engine (frontend, EngineCore, scheduler, KV cache manager, model runner, workers), PagedAttention, and how vLLM implements continuous batching and chunked prefill.

Hands-on

Build vLLM from source, trace one request through the code with logging, and run your first model.

2
Lecture 2

SGLang architecture: frontend language and the SRT runtime

Covers

What SGLang adds on top of serving: the frontend language for structured programs, the SRT runtime, its scheduler, RadixAttention and the radix cache, and how requests move from the HTTP server through the tokenizer manager to the workers.

Hands-on

Build SGLang from source, trace the same request through its runtime, and compare the two paths side by side.

Week 2

Serving on each

3
Lecture 3

Serving with vLLM

Covers

vllm serve and the OpenAI-compatible API, chat, completions and streaming, sampling parameters, structured outputs, tool-call and reasoning parsers, multi-LoRA serving, multimodal models, and serving Hugging Face checkpoints.

Hands-on

Deploy a server with several LoRA adapters and constrained JSON output, then build a small application on top of it.

4
Lecture 4

Serving with SGLang

Covers

sglang.launch_server and the OpenAI-compatible API, SGLang programs with gen, select and fork, structured outputs with xgrammar and llguidance, multi-turn and agentic workloads that reuse the radix cache, LoRA and multimodal serving.

Hands-on

Rebuild the lecture 3 application as an SGLang program and measure what the shared prefix cache saves on a multi-turn workload.

Week 3

Measure, then tune

5
Lecture 5

Benchmarking both engines with one harness

Covers

TTFT, TPOT, inter-token latency and throughput, request throughput versus token throughput, vllm bench and sglang.bench_serving, concurrency and load testing, GPU utilization and memory measurement, profiling with torch profiler and Nsight.

Hands-on

Design and run one benchmarking experiment against both engines, whose numbers you can defend, and keep it as the harness for the rest of the course.

6
Lecture 6

vLLM performance engineering

Covers

max_num_seqs, max_num_batched_tokens, gpu_memory_utilization, max_model_len, chunked prefill tuning, automatic prefix caching (hashing, eviction, hit rate), KV cache tuning, attention backends (FlashAttention, FlashInfer, Triton), CUDA graphs and torch.compile.

Hands-on

Tune a vLLM deployment against a latency target step by step, measuring every knob against the lecture 5 harness.

Week 4

Tune, quantize, fit

7
Lecture 7

SGLang performance engineering

Covers

The radix cache and its eviction, chunked prefill, the overlap scheduler and zero-overhead batch scheduling, mem-fraction-static and max-running-requests, attention backends (FlashInfer, FlashAttention 3, Triton), CUDA graphs and torch.compile in SGLang.

Hands-on

Tune the same deployment on SGLang against the same target, and explain every place the two engines needed different settings.

8
Lecture 8

Quantization and memory engineering on both engines

Covers

Which formats each engine supports on which hardware, the kernels behind them (Marlin, Machete, FP8 paths, W8A8), producing a checkpoint both engines load with llm-compressor, KV cache precision, memory calculations, context length versus concurrency.

Hands-on

Quantize a model to FP8 and INT4, serve it on both engines, and compare accuracy, memory and latency with the BF16 baseline.

Week 5

Scale and speculate

9
Lecture 9

Multi-GPU and mixture-of-experts serving

Covers

How each engine implements tensor, pipeline, data and expert parallelism, MoE kernels and DeepSeek-class models, multi-node serving with Ray and with SGLang's multi-node launch, and how to measure communication overhead.

Hands-on

Serve a large model across 1, 2, 4 and 8 GPUs on both engines, compare parallelism plans, and explain where the scaling stops.

10
Lecture 10

Speculative decoding and disaggregated prefill and decode

Covers

EAGLE, MTP, n-gram and draft-model speculation in vLLM and in SGLang, acceptance rate as the deciding metric, disaggregated prefill and decode: vLLM's KV connectors (LMCache, NIXL) and SGLang's PD disaggregation with Mooncake, and when either pays off.

Hands-on

Add speculative decoding on both engines, measure acceptance rate and speedup on a chat workload, and run one disaggregated deployment.

Week 6

Production and the choice

11
Lecture 11

Production: routers, Kubernetes, metrics and cost

Covers

Dockerizing each engine, Kubernetes and replicas, SGLang's cache-aware router versus vLLM's production stack and prefix-aware routing, autoscaling, Prometheus metrics and observability, failure handling, cost per token and capacity planning.

Hands-on

Deploy replicas of both engines behind a router on Kubernetes with dashboards and an autoscaling policy.

12
Lecture 12

Choosing, migrating, extending, and the capstone

Covers

Which engine for which workload, migrating a deployment between them, how to add a model, a plugin or a custom kernel to each, and how to read both codebases as they change.

Hands-on

Capstone: serve one model on vLLM and on SGLang, benchmark both, deploy the winner, and defend the choice with numbers.

08What you build

What you have built by the end

Everything lives in one repository that grows across the lectures. The benchmark harness from lecture 5 measures every change you make after it, on both engines, up to the capstone endpoint.

01

A benchmark harness that runs against both engines

TTFT, TPOT, and throughput under load, built in lecture 5 and run against every change you make afterwards, on vLLM and on SGLang.

02

A tuned single-GPU deployment on each engine

Scheduler budgets, cache settings and attention backends chosen from your own measurements, with a written account of where the two engines needed different settings.

03

A quantized model in production form

An FP8 or INT4 checkpoint you produced with llm-compressor, served by both engines, with the accuracy and latency difference documented.

04

A production endpoint, and a defended choice

Served across GPUs, containerized, behind a router on Kubernetes with metrics and autoscaling, on the engine your capstone benchmarks picked.

09Tools

The stack you work in, as it is used in production

Nothing here is a teaching substitute. These are the tools the labs run on.

vLLM

Engine one, V1

SGLang

Engine two, SRT runtime

FlashAttention / FlashInfer

Attention backends

llm-compressor

FP8 and INT4 checkpoints

xgrammar / llguidance

Structured outputs

LMCache / NIXL / Mooncake

KV transfer

SGLang router / vLLM production stack

Cache-aware routing

Docker + Kubernetes

Deployment

Prometheus + Grafana

Metrics

torch profiler + Nsight

Profiling

10Capstone

Ship an endpoint and defend the numbers

The last lecture is the capstone. You bring two deployments, one benchmark report, and the reasoning behind the engine you chose.

One model, both engines, one defended choice

Pick an open-weight model and a latency target. Serve it on vLLM and on SGLang, tune each one the way the lectures taught, decide whether quantization and speculative decoding pay off on each, and ship the winner with a router, metrics and autoscaling.

  • A written service level target: p50 and p99 latency, throughput, and cost per million tokens
  • A benchmark report that compares the two engines, baseline and tuned, on the same workload
  • A Kubernetes deployment of the chosen engine with Prometheus metrics and an autoscaling policy
  • A short presentation of what you tried on each engine, what helped, and why you chose one
11Who this is for

Who this course is for

  • Engineers who serve open-weight models and want to stop guessing which engine and which flags to use
  • ML engineers moving from training into inference and deployment
  • Platform and infrastructure engineers who own the GPU bill
  • Anyone who has learned inference fundamentals and wants to see those ideas inside two real engines
12What you leave with

What you will be able to do

  • Explain how a request moves through vLLM and through SGLang, and where the time goes in each
  • Benchmark both engines properly and tune either one to a latency or throughput target
  • Quantize a model, serve it on both, and measure what changed
  • Scale to multiple GPUs and choose the right parallelism plan on each engine
  • Deploy either engine on Kubernetes with a router, metrics, autoscaling, and a cost model
  • Choose between the two for a given workload, and defend the choice with numbers

You should be comfortable with Python and the command line and have run a model on a GPU before. Labs run on rented cloud GPUs; a budget guide is shared before the cohort starts.

Dr. Sreedath Panat, instructor

Dr. Sreedath Panat

MIT PhD · Vizuara AI Labs

13Your instructor

Taught by Dr. Sreedath Panat

Dr. Sreedath holds a PhD from MIT and is the co-founder and director of Vizuara AI Labs. An IIT Madras graduate and department gold medalist, he has built a 200K+ subscriber YouTube channel and co-authored a Manning book on building DeepSeek from scratch. He teaches every concept from first principles.

  • All 8 lectures personally delivered
  • PhD from MIT
  • IIT Madras graduate and department gold medalist
  • Winner of the Langmuir Award
  • 200K+ YouTube subscribers, 115K+ LinkedIn followers
Build a DeepSeek Model from Scratch, Manning
Co-author · Manning

Build a DeepSeek Model from Scratch

Raj Dandekar, Rajat Dandekar, Sreedath Panat, Naman Dwivedi

View on manning.com

Questions? Write to sreedath@vizuara.com

14Research Starter Kit

Start your research with a head start.

Do not start from scratch. Tell us your topic of interest and we will generate a personalised research roadmap and an initial version of your research paper, delivered asynchronously, so you can hit the ground running from day one.

What is in the kit

Personalised research roadmap (PDF)

You tell us your topic. We produce an 8-week plan with milestones, deliverables, and acceptance criteria for your inference or serving-systems research area: literature scope, experiment matrix, benchmark design, and manuscript timeline.

Initial research paper draft

A 6 to 8 page scaffold with the research questions framed, the method outlined, related work surveyed, and the experiment setup defined, so you never start from a blank page.

Curated paper reading list

12 to 15 papers chosen for your topic, with a reading order, key takeaways, and the connections between them, plus a literature matrix template.

Starter code template

A clean, documented codebase for an inference-systems research project: model loading, a serving harness for vLLM and SGLang, benchmark and trace collection, evaluation, and experiment config. Ready to run on day one.

Example research topics

Your roadmap is personalised to your background and goals. These are the kinds of topics the kit is built for.

Scheduling policies for mixed prefill and decode workloads

KV cache compression, quantization, and eviction strategies

Radix-cache and prefix-cache hit rates on agentic workloads

Speculative decoding drafters for domain-specific models

Disaggregated prefill and decode across heterogeneous GPUs

Quantization accuracy versus latency on small and mid-sized models

Cache-aware routing for multi-replica serving

Serving mixture-of-experts models with expert parallelism on few GPUs

15Pricing

Build your workshop

Select what you need. Everything adjusts instantly.

Step 1: choose your program

Step 2: or pick a bundle and save

Your selection

Select a program to get started.

Select a program to continue

EMI available at checkout. All sales are final.

Enrollment

Learn vLLM and SGLang from the source code to a production endpoint.

Twelve live lectures, a benchmark harness and deployments you build yourself, and recordings you keep.

Starts Tuesday, 10 November 2026 · Tuesdays and Thursdays, 9 to 11 am IST, for six weeks

16FAQ

Common questions

About the bootcamp

Engineers who run, or will run, open-weight models in production and want to understand vLLM and SGLang well enough to tune, scale, extend and choose between them. You should be comfortable with Python and the command line and have used a GPU before.

Because in practice you will meet both, and the choice depends on the workload. Most ideas are taught once as a pair: how vLLM does it, how SGLang does it, and what that changes in the numbers. Only the genuinely engine-specific material, such as SGLang's frontend language or vLLM's KV connectors, gets its own time.

Not in the live lectures. Prefill and decode, the KV cache, batching, quantization basics, parallelism basics and the idea of speculative decoding are covered in self-paced videos you watch before week 1. The twelve live lectures are about the two engines.

Every lecture is two hours and mixes both. The exact split depends on the material. Some lectures are mostly reading and tracing an engine, others are mostly benchmarking and deploying.

Live over Zoom, two lectures a week for six weeks. Every session is recorded and you keep access to the recordings, code, and notes.

Not your own. Labs run on rented cloud GPUs from your laptop. Most lectures need a single GPU. The multi-GPU lecture uses shared instances during the session. A budget guide is shared before the cohort starts.

The current release of each engine at the time of the cohort, vLLM on the V1 engine and SGLang on the SRT runtime. The course follows the source code, so version changes are part of what you learn to read.

After the bootcamp

A tuned, benchmarked deployment of a model of your choice on whichever engine fits, on one GPU or several, with a Kubernetes deployment and a cost estimate you can show to whoever pays for the GPUs.

Yes. Every participant gets a certificate of completion and a showcase page for their capstone endpoint.