{ "lesson": "06-sglang-radixattention", "title": "Prefix-Cache Serving — RadixAttention and KV Reuse", "questions": [ { "stage": "pre", "question": "What core data structure backs SGLang's KV cache reuse?", "options": [ "A radix tree where each node owns a token range and its KV blocks", "A skip list keyed by request id", "A hash table keyed by full prompt", "A B-tree of attention scores" ], "correct": 0, "explanation": "" }, { "stage": "check", "question": "Why is FCFS scheduling wrong for prefix-heavy traffic on SGLang?", "options": [ "FCFS is the recommended SGLang policy", "FCFS can evict a hot prefix branch before the next long-prefix request hits, breaking radix-tree reuse", "FCFS only works on AMD GPUs", "FCFS is incompatible with PagedAttention" ], "correct": 1, "explanation": "" }, { "stage": "check", "question": "What eviction granularity does SGLang's cache-aware scheduler use to match radix shape?", "options": [ "Per-request only", "Random eviction", "Single tokens", "Whole branches, starting from shortest-used leaves" ], "correct": 3, "explanation": "" }, { "stage": "check", "question": "What is the most direct engineer's lever for keeping the radix-tree shared prefix discoverable?", "options": [ "Always use static batching", "Fix prompt-template ordering so immutable content (system, tools, schemas) is always first", "Lower the GPU memory utilization knob", "Disable continuous batching" ], "correct": 1, "explanation": "" }, { "stage": "post", "question": "Which workload pattern does the lesson NOT expect RadixAttention to win on?", "options": [ "Agents with shared tool schemas", "Single-shot generation with unique prompts and no shared system prompt", "RAG with a shared retrieval preamble", "Voice workloads with repeated preambles" ], "correct": 1, "explanation": "" }, { "stage": "post", "question": "ProjectDiscovery's deployment moved from 7% to 74% prefix-cache hit rate by doing what?", "options": [ "Increasing GPU count from 8 to 16", "Disabling continuous batching", "Moving dynamic content out of the cacheable prefix", "Switching from vLLM to SGLang without any prompt changes" ], "correct": 2, "explanation": "" } ] }