Curriculum

The lesson sequence for this lab, and why it is in this order.

Every lesson is one tightly-scoped idea with one tangible win, an embedded micro-world you can drive, and an in-page quiz. Lessons teach; they are not proof of mastery. The proof is in records/ and experiments/.

The arc

The sequence answers one question in stages: what makes a fixed pile of arithmetic go fast on a GPU, and how do I prove I made it faster?

| # | Lesson | The one win | Type | | - | ------ | ----------- | ---- | | 0 | What inference actually is | Training is not your job; inference is a hot path | orientation | | 1 | Triton deletes a level | You program a block, not a thread | mechanism | | 2 | Inference is the half you pay for forever | Serving is a memory-bandwidth amortization game | mechanism | | 3 | A tensor is a pointer plus arithmetic | Shape is a lie; strides are the truth | mechanism | | 4 | The GPU fetches more than you asked for | Access pattern, not byte count, sets your bandwidth | mechanism | | 5 | Quantization: buying bandwidth with precision | Block size is the accuracy/​compression dial — Netra Task A | mechanism | | 6 | Matmul earns its intensity by tiling | Reuse is what makes matmul compute-bound | mechanism | | 7 | Softmax, overflow, and the online trick | Why attention needs a running max | mechanism | | 8 | Attention and the KV cache | The cache is what caps your batch size | mechanism | | 9 | Benchmarking a kernel honestly | Most speedups are measurement bugs | mechanism |

Why this order

Reference docs

Not covered yet

Deliberately deferred, in the order they are most likely to be needed next:

Ask for any of these and it becomes the next lesson.