Files
Rohit Ghumare dda194f840 fix(quiz): correct answer is always in the same position (slot B) (#381)
Every "Test Your Understanding" quiz placed the correct answer in option B.
Across the 2026 questions in 338 quiz files the correct answer sat at index 1
in 61.5% of cases (uniform would be ~25%), and 107 files had every answer at B,
making the quizzes guessable without reading them.

scripts/debias_quizzes.py rewrites each question's option order with a
deterministic, content-seeded permutation and updates the correct index to
follow the moved answer. It is idempotent: options are canonicalised to a sorted
base before permuting, so re-running produces byte-identical output. Questions
whose options reference each other by position ("all of the above", "both A and
B") are left untouched. The correct-answer value, the option set, and every
explanation are preserved exactly; only order and the index change.

Result: A 23.8% / B 26.3% / C 23.5% / D 26.4%.

The script doubles as a CI guard: `--check` exits non-zero if any quiz is not
de-biased, wired into the curriculum workflow so new lessons cannot regress.

Fixes #368
2026-08-01 14:24:15 +01:00

79 lines
2.6 KiB
JSON

{
"lesson": "18-vllm-production-stack-lmcache",
"title": "Production Serving Stack — KV Offloading and Cache-Aware Routing",
"questions": [
{
"stage": "pre",
"question": "What problem does LMCache primarily address in a vLLM deployment?",
"options": [
"Tokenizer GIL contention",
"Network egress filtering",
"Cold-start image pull",
"KV cache pressure in HBM causing preemption and re-prefill of the same prefixes"
],
"correct": 3,
"explanation": ""
},
{
"stage": "check",
"question": "What vLLM API introduced pluggable KV cache backends?",
"options": [
"Prefix-caching flag",
"Connector API in vLLM v0.9.0",
"PagedAttention v2",
"ChunkedPrefill API"
],
"correct": 1,
"explanation": ""
},
{
"stage": "check",
"question": "What does the vLLM 0.11.0 (January 2026) release add to the KV offload path?",
"options": [
"Removal of LMCache support",
"Mandatory FP8 KV cache",
"An asynchronous offload path so the engine does not block on offload in the common case",
"Synchronous-only offload"
],
"correct": 2,
"explanation": ""
},
{
"stage": "check",
"question": "When should you pick LMCache over native CPU offload?",
"options": [
"When you are running on CPU only",
"When multiple engines share prefixes across tenants, LoRA variants, or repeated RAG context, so cross-engine reuse pays",
"When a single engine has HBM pressure and no prefix sharing",
"When you want to disable KV caching entirely"
],
"correct": 1,
"explanation": ""
},
{
"stage": "post",
"question": "What happens to LMCache benefit when KV footprint stays well below HBM?",
"options": [
"LMCache automatically disables",
"Configs match baseline with roughly 3-5% overhead and no real benefit",
"Engine crashes",
"It still doubles throughput"
],
"correct": 1,
"explanation": ""
},
{
"stage": "post",
"question": "Why does LMCache compose with disaggregated serving (Phase 17 · 17)?",
"options": [
"KV transferred from prefill to decode lands in LMCache; later queries can pull from LMCache and skip prefill, so the cache-aware router can pick an engine whose local or LMCache-shared cache matches",
"It does not — they are mutually exclusive",
"Because LMCache replaces NIXL",
"Because LMCache runs on the same GPU as the engine"
],
"correct": 0,
"explanation": ""
}
]
}