A bug that scales with the number of tiles is invisible in a unit test that fits in one tile. The three candidates that produce exactly this signature, the measurement that separates them, and a test design that would have caught all three before the kernel shipped.
Your fused attention kernel matches the reference at 512 tokens and drifts at 8,000. Find the bug.
A bug that scales with the number of tiles is invisible in a unit test that fits in one tile. The three candidates that produce exactly this signature, the measurement that separates them, and a test design that would have caught all three before the kernel shipped.
Updated Sep 2026 · Grounded in real AI infrastructure interview loops and written to a senior-engineer editorial bar, with every number worked and every diagram hand-built.
The concepts behind this question
Ranked by how closely each one overlaps this question's topic, so the first card is the thing to read if the answer above moved too fast.
Scored on recognising that a tile-count-dependent error points at the online-softmax state, on isolating by disabling the rescale rather than guessing, and on designing a test whose sequence length crosses the tile boundary.
No comments yet — be the first to share your approach.
