forked from rohitg00/ai-engineering-from-scratch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.json
More file actions
78 lines (78 loc) · 2.58 KB
/
Copy pathquiz.json
File metadata and controls
78 lines (78 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"lesson": "06-sglang-radixattention",
"title": "SGLang and RadixAttention for Prefix-Heavy Workloads",
"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 hash table keyed by full prompt",
"A skip list keyed by request id",
"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 only works on AMD GPUs",
"FCFS is the recommended SGLang policy",
"FCFS is incompatible with PagedAttention",
"FCFS can evict a hot prefix branch before the next long-prefix request hits, breaking radix-tree reuse"
],
"correct": 3,
"explanation": ""
},
{
"stage": "check",
"question": "What eviction granularity does SGLang's cache-aware scheduler use to match radix shape?",
"options": [
"Per-request only",
"Whole branches, starting from shortest-used leaves",
"Single tokens",
"Random eviction"
],
"correct": 1,
"explanation": ""
},
{
"stage": "check",
"question": "What is the most direct engineer's lever for keeping the radix-tree shared prefix discoverable?",
"options": [
"Lower the GPU memory utilization knob",
"Fix prompt-template ordering so immutable content (system, tools, schemas) is always first",
"Always use static batching",
"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",
"Voice workloads with repeated preambles",
"RAG with a shared retrieval preamble",
"Single-shot generation with unique prompts and no shared system prompt"
],
"correct": 3,
"explanation": ""
},
{
"stage": "post",
"question": "ProjectDiscovery's deployment moved from 7% to 74% prefix-cache hit rate by doing what?",
"options": [
"Moving dynamic content out of the cacheable prefix",
"Increasing GPU count from 8 to 16",
"Switching from vLLM to SGLang without any prompt changes",
"Disabling continuous batching"
],
"correct": 0,
"explanation": ""
}
]
}