How Language Models Work: Architecture and Inference A step-by-step guide to how Large Language Models (LLMs) work. Learn the mechanics of Transformer architecture, self-attention, and text inference.