← Questions

Transformer and attention fundamentals

0
AmazonNetflixNvidiaML designLast asked Sep 2026

Explain how a transformer works from the inside: how self-attention is computed, why the scores are scaled, how encoder and decoder masking differ, and what multiple heads buy you. Expect follow-ups on positional information, the cost of attention as sequences get long, and ways to make inference cheaper.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing