Skip to content
English

Switch theme

// Stage 6 · Inference, Deployment & Efficiency

Serving Engines

PagedAttention, continuous batching, prefix caching, speculative decoding, prefill/decode disaggregation and gateway routing.

about 8 hours7 algorithms4 paperslesson text in progress

01Goals

Do these first: Decoding, Sampling & KV Cache

02Algorithms to master

Each card has the original paper, prerequisites and resources.

03Must-read papers

04Courses & videos

05Hands-on: project, code & exercises

Free, official or author-published pages. Most run in the browser or on a free Colab GPU.

PROJECT

Deploy an open model with vLLM, load-test throughput and first-token latency at different concurrency, then compare with speculative decoding on.

  1. 1
    docs.vllm.ai ↗Official docs

    Serve an OpenAI-compatible endpoint with vLLM and load-test throughput and TTFT.

  2. 2
    sgl-project/sglang ↗Reference code

    Run the same load test on SGLang and compare the effect of prefix caching.

06Self-test

Answer in your head, then open to check.

What is TTFT?

Time to first token.

Does speculative decoding change the output distribution?

Not when implemented with standard rejection sampling.

What core problem does PagedAttention solve?

Fragmentation and waste in KV-cache memory.

On these routes: Application Developers · Product Managers & Leaders

Data updated: AI algorithms & curriculum(UTC+8)