Exercises
Practice architecture cards, sparse edge counts, long-context claims, KV cache and MoE ledgers, multimodal fusion, state-space classification, scaling, compute, and system routing.
Each exercise is standalone. State assumptions with every numerical answer and do not turn an analytical result into an unmeasured performance claim.
Q1. Complete an architecture card
A decoder keeps its blocks and objective but replaces dense causal attention with a local causal window. State the changed component and one invariant.
Select one choice, then check.
Hint
Solution
Q2. Compare dense and local edges
For and , calculate dense causal and local causal edge counts.
Answer it first, then check.
Hint
Solution
Q3. Audit a long-context claim
A benchmark places one key near the start of a 32,000-token prompt and shows 90% retrieval accuracy. It does not test multi-step reasoning. Which claims are supported and unsupported?
Select one choice, then check.
Hint
Solution
Q4. Compare MHA and MQA cache size
For , calculate K/V cache scalars for MHA with eight K/V heads and MQA with one K/V head.
Answer it first, then check.
Hint
Solution
Q5. Audit an MoE parameter claim
Eight experts have 100 parameters each, a router has 32, and top-1 routing selects one expert. Give total stored parameters and selected expert parameters per token. Name one omitted cost.
Select one choice, then check.
Hint
Solution
Q6. Separate tokenization from fusion
Model A projects image patches and processes only image records. Model B uses separate image and text encoders joined by cross-attention. Which change defines B beyond image tokenization?
Select one choice, then check.
Hint
Solution
Q7. Distinguish a sequence alternative
A model has no query-key scores and carries a recurrent state through the sequence. Is it a sparse Transformer merely because it processes tokens?
Select one choice, then check.
Hint
Solution
Q8. Calculate and limit a scaling fit
Under , two illustrative measurements are and . Calculate . Does this validate predictions beyond ?
Answer it first, then check.
Hint
Solution
Q9. Compare equal-compute allocations
Under , compare and . Which uses more compute, and which must have lower loss?
Select one choice, then check.
Hint
Solution
Q10. Route four LLM changes
Route these changes to their primary system layers: instruction tuning, vector-database lookup, temperature 0.7, and tensor-parallel serving.
Select one choice, then check.