February 11, 2023 Alina Understanding and Coding the Self-Attention Mechanism of Large Language Models