sagelearnai

Transformers Architecture: Concepts, part 1

Questions covered

  1. Walk me through self-attention end to end.
  2. Why scale by √d_k?
  3. What are queries, keys and values intuitively?
  4. MHA vs MQA vs GQA?
  5. What is the role of the feed-forward (MLP) block in a Transformer?
  6. What is the causal mask and how does it differ from the padding mask?

This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.