zero-to-sglang
A free course that teaches how AI language models produce answers, by building a small inference engine step by step.
- Coding needed
- Developers only
- Cost
- Free
- Runs on
- Web browser, Linux, Cloud
- Computer
- An ordinary computer is fine
A free course that teaches how AI language models produce answers, by building a small inference engine step by step.
This is an online course about "inference", the stage where a trained AI language model actually answers requests. It explains ideas like the KV Cache (a memory trick that saves repeated work) and why some steps are limited by computing power while others are limited by memory.
In the middle part, learners write their own small version of SGLang, an open-source engine for serving AI models, adding one feature at a time. The last part walks through how the real SGLang works and how to submit a first code contribution to it.
The course is made by Datawhale and RadixArk, which the README describes as the company founded by the SGLang team. It is available in English and Chinese and can be read online, and the README says companion videos are being published.
Programmers who know Python and PyTorch and want to understand how AI models are served quickly and cheaply. The first concept chapters may also interest curious readers without a graphics card.
Developers only. The README asks for fluent Python, PyTorch and some math, and most chapters involve writing code. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?