sglang
Inference interview questions tagged sglang, across every topic.
4 questions · 1 unlocked for you
Concepts behind "sglang"
Concept pages for the mechanisms these questions lean on.
Advanced
SGLang's Radix Cache and Overlap SchedulerSGLang stores every cached prefix in a radix tree keyed by token ids, so a hit can end at any token rather than at a block boundary, and its overlap scheduler prepares the next batch while the GPU runs the current one. This page walks both through the v0.5.21 source: matching, lock references, leaf-first LRU eviction, the 128-request cutoff on prefix-aware scheduling, and memory defaults.⚙️ Serving Engines🔒 Premium
Advanced
Serving Engine Knobs and Their DefaultsA handful of engine settings decide how much KV fits, how long a step can get and how many requests run at once. This page lists the defaults in vLLM v0.31.0 and SGLang v0.5.21 as read from source, shows which knob binds first for Llama 3.3 70B on four H100s, and gives the order in which to tune them.⚙️ Serving Engines🔒 Premium