sagelearnai

Transformers Architecture: Concepts, part 2

Questions covered

  1. Explain positional encodings: sinusoidal, learned, RoPE, ALiBi.
  2. What is the time and memory complexity of attention? How is it reduced?
  3. Encoder-only vs decoder-only vs encoder-decoder — when to use each?
  4. Pre-norm vs post-norm Transformers?
  5. How many parameters does a Transformer layer have, roughly?

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.