Książka Deep Dive into SGLang, Volume I Yin Yang

Deep Dive into SGLang, Volume I

Runtime, Scheduling, Memory, and Decoding

Autor: Yin Yang
Język: Angielski
Oprawa: Miękka
Dostępność: Dostępna u dostawcy
Wysyłamy za 14-21 dni
119.13
Deep Dive into SGLang, Volume I explains SGLang's runtime request path as a set of algorithms, data...

Informacje o książce

Autor
Język
Angielski
Oprawa
Książka - Miękka
Data wydania
2026
strony
544
EAN
9798182198233
Enbook ID
52994207
Waga
1247
Wymiary
216 x 280 x 28

Pełny opis

Deep Dive into SGLang, Volume I explains SGLang's runtime request path as a set of algorithms, data structures, and systems tradeoffs.

This volume focuses on the core inference-serving loop: tokenization, admission, prefill and decode scheduling, prefix lookup, KV-cache allocation, forward execution, sampling, streaming, and cleanup. Instead of treating SGLang as a catalog of commands, it builds a working model of the runtime state that makes modern LLM serving possible.

Volume I covers:

  • The inference serving problem and request lifecycle
  • Transformer inference cost models
  • SGLang's runtime as a distributed state machine
  • Continuous batching and chunked prefill
  • KV-cache memory management
  • RadixAttention and prefix reuse
  • Hierarchical caching
  • Attention backends and forward batches
  • Model architecture registration
  • Sampling and logits processing
  • Structured outputs, reasoning parsers, and tool-call parsing
  • Speculative decoding
  • Diffusion language models and blockwise decoding

Each chapter explains the systems problem before implementation details, then ties technical claims back to SGLang source files, tests, or benchmark artifacts. The book is written for readers who already know basic transformer and GPU-systems vocabulary and want a deeper, source-grounded understanding of how a production LLM serving runtime is organized.

This is Volume I of Deep Dive into SGLang. Volume II continues into quantization, distributed serving, kernels, hardware backends, benchmarking, correctness, multimodal serving, diffusion inference, and technical extension.

Independent explanatory guide. Not affiliated with or endorsed by the SGLang project.