Learning resources

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
Drafted with AIMostly for developers

What it does

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.

Who it's for

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.

Can I use it without coding?

Developers only. The README asks for fluent Python, PyTorch and some math, and most chapters involve writing code. New to this? Start here.

Can I run it?

Cost
FreeNothing to pay or sign up for.
Runs on
Web browser, Linux, Cloud
Computer
An ordinary computer is fine
API key
Not needed

Try it

  1. Open the course's online reading page and choose English or Chinese.
  2. Start with Part 0 and Part I, which explain the concepts and need no graphics card.
  3. Use a computer or cloud machine with a graphics card for the later build chapters and performance tests.

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • Plain-AyI is an independent guide and doesn't host or review the software it lists. Please check each project's official page before installing.
  • No license stated. The code is public, but its maker hasn't said how it may be reused. Check the GitHub page before using it for business.
  • More on staying safe