An applied exploration of the machine learning methods and Large Language Models (LLMs) powering systems like ChatGPT, Gemini, and Claude. Through hands-on programming in Python and PyTorch, I learned the mathematical foundations of neural networks and built a minimal open-source LLM from scratch, implementing core components from self-attention and tokenization to supervised fine-tuning and reinforcement learning.