Explain the transformer architecture in detail — describe each layer (encoder/decoder) and its role, the Query/Key/Value (Q/K/V) self-attention mechanism and how attention scores are computed (scaled dot-product attention), computational bottlenecks (when is attention the bottleneck vs. feed-forward layers?), and techniques to…