Compute queries, keys, values, attention scores, masks, and multi-head attention. Implement attention directly and show how it replaces or complements recurrence.