Skip to content
← Attention Kernels / 22
hardNewMetaGoogle DeepMindOpenAI

Research hands you document masking plus sink tokens to serve. FlexAttention, or fork a FlashAttention kernel?

A mask function and a block mask get a new attention pattern running in an afternoon; a kernel fork gets it running fast on one GPU generation. The answer counts the tiles the mask skips, checks the result against a dense reference, prices recompiles and engine support, and says when the fork is worth owning.

Updated Nov 2026 · Worked answers on inference mechanisms, with calculations, implementation details, and follow-up questions.

A mask function and a block mask get a new attention pattern running in an afternoon; a kernel fork gets it running fast on one GPU generation. The answer counts the tiles the mask skips, checks the result against a dense reference, prices recompiles and engine support, and says when the fork is worth owning.

10 answers per topic instead of 5, plus saved progress and bookmarks · costs nothingor unlock all 213 remaining answers · $25

Every worked answer and derivation in all 12 topics, every concept page, the full practice-test bank, and every code drill’s edge-case tests and reference solution.

6 months · One payment · No auto-renewal

UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

Nobody has commented on this answer. Add a correction or another way to work it.