AI MOOC
✦ Grow togetherInvite 3 friends, earn 1 month of membership · Up to 12 monthsInvite friends →

Free learning library / Datawhale · RadixArk

Zero to SGLang: A Hands-on LLM Inference Course

Study inference fundamentals and KV cache, then explore engine design through mini-sglang.

Online tutorial · PDF · LLM inference and inference engines · Chinese and English; web, repository and PDF versions may differ

Who it is for

For developers familiar with Python, PyTorch and LLM basics who want to understand inference and serving performance.

What you can learn

Distinguish prefill from token-by-token decoding and study KV cache; then follow mini-sglang examples on request handling, continuous batching and cache management before exploring SGLang.

Try it first

Map prefill, decoding and cache reuse for one input. Note how input and output lengths affect stored cache, then compare your model with the tutorial code.

Free access and conditions

Chinese and English web chapters are free to read without an account. The authors provide PDFs dated 2026-11-12; these may lag the website and repository. Some exercises can be debugged on CPU, while performance tests and advanced labs may need a GPU or paid cloud resources. The English home-page status differs from the repository; check each chapter.

Author-provided Chinese and English PDFs (expand Assets) ↗

Source and rights

The author’s PDF release identifies the course license as CC BY-NC-SA 4.0, which restricts commercial use; no repository-wide license file was found. Check rights for code, images and other material separately.

Source: Datawhale · RadixArk

Related learning resources

Continue learning: Free courses on AI MOOC

Read now