#7272nd of 171 in Learning and cookbooks

zero-to-sglang

Course on LLM inference: build a mini-sglang, then read SGLang source

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
2.4k
License
no license
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 13 weeks+2,373
26 Aug 2026: 35 stars2 Sept 2026: 44 stars9 Sept 2026: 664 stars16 Sept 2026: 952 stars23 Sept 2026: 1,281 stars30 Sept 2026: 1,369 stars7 Oct 2026: 1,427 stars14 Oct 2026: 1,493 stars21 Oct 2026: 1,576 stars28 Oct 2026: 1,667 stars4 Nov 2026: 1,731 stars11 Nov 2026: 2,102 stars18 Nov 2026: 2,305 stars25 Nov 2026: 2,408 stars

35 on 26 Aug 20262,408 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

A written course from Datawhale and RadixArk that explains LLM inference (KV cache, prefill/decode, benchmarking) and then walks through building a mini-sglang step by step. Part II adds continuous batching, paged KV cache, RadixAttention, tensor parallelism and speculative decoding. Later parts cover the real SGLang source, including attention backends, quantization and prefill-decode disaggregation, plus the PR workflow. Available in English and Chinese.

Who it is for: Python and PyTorch engineers who want to learn how LLM inference engines work

Strengths

  • Part II builds an engine incrementally: KV cache, HTTP serving, batching, paged cache, RadixAttention
  • Part III covers real SGLang internals: attention backends, quantization, hierarchical cache, DP/EP/PP
  • Part I needs no GPU; most of Part II can be debugged on CPU
  • Co-launched with RadixArk; several chapters written by SGLang core members

Weaknesses

  • Companion video series is unfinished; links are not yet added
  • CC BY-NC-SA 4.0 license bars commercial use of the material
  • Reference mini-sglang code lives in a separate sgl-project repository
  • Citation author field is still a TODO

What it needs

  • GPU optional
  • Needs PyTorch, SGLang
  • Models: Qwen3-0.6B

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Learning and cookbooks

See all 171
Also in Learning and cookbooks
RankProjectScore
#70pinecone-io/examplesJupyter notebooks and sample apps for building with Pinecone vector databases3k starsMIT52 out of 100
#71tutorialsJupyter tutorials for medical imaging with MONAI and PyTorch2.6k starsApache-2.052 out of 100
#73machine-learning-zoomcampFree ML engineering course from regression to Kubernetes deployment15k stars+177 (+1.2%) in 30 daysno license51 out of 100
#74microduck-build-tutorialBuild guide and code for a Raspberry Pi biped robot walking with an ONNX policy1.9k stars+327 (+21%) in 30 daysMIT51 out of 100
#75langchain-courseCourse code for building LangChain and LangGraph agents in Python1.8k starsApache-2.051 out of 100