AI Infra Interviews logo
← CUDA, Triton & Kernel Engineering / 30
expertFireworksAnthropicTogether AI

Your fused attention kernel matches the reference at 512 tokens and drifts at 8,000. Find the bug.

Longer sequences exercise more state updates, different boundaries and sometimes different kernel paths. Use a two-tile example to check online softmax, then test masking, indexing and precision against a stable reference.

Updated Sep 2026 · Learn how AI infrastructure works through explanations, worked examples and diagrams, then practise applying it to interview questions.

Longer sequences exercise more state updates, different boundaries and sometimes different kernel paths. Use a two-tile example to check online softmax, then test masking, indexing and precision against a stable reference.

The full answer is part of Premium. A free account includes more answers in each topic, but does not unlock this one.

20 answers per topic instead of 10, plus saved progress and bookmarks · no cardor unlock all 316 remaining answers · ₹2,000 / $25

Work through the numbers

Change the assumptions in a free calculator, then explain what the result establishes and what still needs measurement.

UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

Treat length-dependent drift as a clue, not a unique diagnosis. Derive the rescaling of both softmax accumulators, test tile and mask boundaries, and distinguish an algorithm reference from validation of the actual GPU kernel.

DISCUSSION · 0

No comments yet — be the first to share your approach.