Transformers and Attention Mechanisms: From Basics to GPTMini