Back to Resources

Learning Plan: Mastering Large Language Models and AI

This learning plan is designed to guide you through the fascinating world of Large Language Models (LLMs) and broader AI concepts, starting from foundational principles and progressing to advanced research and practical applications. It emphasizes a structured approach, building knowledge incrementally.

Phase 1: Foundational Understanding (Beginner)

Begin your journey by grasping the core mechanics of neural networks and a high-level intuition behind LLMs. These resources provide accessible introductions to complex topics.

  1. Neural Networks by 3Blue1Brown

    Start here to build a strong visual and intuitive understanding of how neural networks work, including concepts like gradient descent and backpropagation. This is a crucial prerequisite for deep learning.

    Link to resource

  2. What is ChatGPT doing...and why does it work? (Stephen Wolfram)

    Gain an engaging, high-level understanding of how ChatGPT generates human-like text, demystifying its underlying processes. This provides excellent intuition for LLMs.

    Link to resource

  3. Practical Deep Learning / DeepLearning.ai

    For a hands-on approach to applying deep learning and machine learning to practical problems, explore these resources. They offer structured courses and practical guidance that can be learned in parallel with the theoretical foundations.

    Practical Deep Learning | DeepLearning.ai

  4. Stanford CS231N Deep Learning for Computer Vision

    While focused on computer vision, this course provides a comprehensive understanding of deep learning architectures, optimization, and modern techniques, offering valuable context for general deep learning principles applicable to LLMs.

    Link to resource

Phase 2: Core LLM Architecture & Training (Intermediate)

Once you have a solid foundation, delve into the specific architecture and training methodologies that power modern LLMs, focusing on the Transformer model.

  1. The Annotated Transformer

    This resource provides a detailed, line-by-line explanation of the Transformer architecture, which is fundamental to nearly all modern LLMs. It's an essential step after understanding basic neural networks.

    Link to resource

  2. Attention Is All You Need

    Read the original paper that introduced the Transformer architecture. This will deepen your understanding of its innovative approach to sequence processing and attention mechanisms.

    Link to resource

  3. Deep Dive into LLMs like ChatGPT (Andrej Karpathy)

    This extensive lecture by Andrej Karpathy offers an unparalleled walkthrough of the entire LLM training stack, from data preprocessing to fine-tuning and alignment. It integrates your knowledge of Transformers into the broader LLM context.

    Link to resource

  4. Stanford CS229 I Machine Learning I Building Large Language Models (LLMs)

    Complement Karpathy's deep dive with this high-level overview of practical considerations in building LLMs, including data quality, evaluation metrics, and system implementation challenges.

    Link to resource

  5. Build a Large Language Model (From Scratch) (Sebastian Raschka)

    Apply your theoretical knowledge by following this hands-on guide to designing, coding, training, and fine-tuning a GPT-style LLM. This is crucial for practical understanding.

    Link to resource

  6. Nanochat

    Explore this minimalist, hackable implementation of a ChatGPT-style LLM. It provides a clean codebase for understanding all phases of LLM development, from tokenization to inference, and can be a great companion to "Build from Scratch."

    Link to resource

Phase 3: Practical Application & Optimization (Intermediate/Advanced)

With a solid grasp of LLM internals, focus on how to effectively use and optimize these models for real-world scenarios.

  1. Prompt Engineering Guide

    Master the art and science of crafting effective prompts to get the best results from LLMs. This is a vital skill for anyone working with these models and can be learned in parallel with Phase 2.

    Link to resource

  2. A Visual Guide to Quantization

    Understand the techniques used to compress and optimize LLMs for efficient deployment, covering concepts like numerical representation and post-training quantization.

    Link to resource

Phase 4: Advanced LLM Concepts & Research (Advanced)

Delve into more advanced theoretical and research-oriented topics, including scaling, novel architectures, and security considerations.

  1. Scaling Laws for Neural Language Models

    Explore the empirical relationships between model size, dataset size, compute budget, and LLM performance. This paper provides fundamental insights into how LLMs scale.

    Link to resource

  2. Mixtral of Experts

    Learn about advanced LLM architectures like Sparse Mixture of Experts (SMoE), which offer a balance between capacity and efficiency. This builds on your understanding of core LLM design.

    Link to resource

  3. DeepSeek-R1: incentivizes reasoning in LLMs through pure reinforcement learning

    Investigate how reinforcement learning can be used to train LLMs to develop advanced reasoning abilities, moving beyond human-annotated demonstrations.

    Link to resource

  4. POISONING ATTACKS ON LLMS REQUIRE A NEAR-CONSTANT NUMBER OF POISON SAMPLES

    Understand critical security vulnerabilities in LLMs, specifically how data poisoning can implant backdoors, regardless of model size. This is vital for building robust and secure AI systems.

    Link to resource

  5. Video models are zero-shot learners and reasoners

    Explore emergent zero-shot capabilities in generative video models, which hints at the development of generalist vision foundation models and broader AI reasoning abilities.

    Link to resource

Phase 5: AI Agents & Future Directions (Expert/Research)

Focus on the cutting edge of AI, particularly the development of AI agents that can perceive, reason, and act in complex environments.

  1. Shunyu Yao’s site

    Dive into the work of a leading researcher at OpenAI focusing on "agents" – systems that integrate reasoning and action. Explore papers like ReAct and Tree of Thoughts.

    Link to resource

  2. Anthropic Engineering Blog

    Gain insights into how a major AI lab approaches building reliable, interpretable, and steerable AI systems, especially through agents and tool integrations.

    Link to resource

  3. Thinking Machines Blog

    Explore research and technical posts on frontier AI systems, interpretability, human-AI collaboration, and infrastructure quality from an innovative AI company.

    Link to resource

Phase 6: Continuous Learning & Broader Perspectives (Ongoing)

AI is a rapidly evolving field. These resources are excellent for staying updated, gaining diverse perspectives, and deepening your understanding over time.

  1. Lil’Log (Lilian Weng's blog)

    Regularly read Lilian Weng's well-researched essays on cutting-edge AI, machine learning, and deep learning topics. It's an invaluable resource for staying current.

    Link to resource

  2. Andrej Karpathy (Blog & YouTube)

    Follow Andrej Karpathy's blog for technical insights, personal reflections, and educational content. His YouTube channel also offers deep dives and tutorials.

    Blog | YouTube Channel

  3. Simon Willison’s Weblog

    Explore practical AI tooling, web development, and insightful reflections on LLMs and AI agents from a seasoned open-source developer.

    Link to resource

  4. Richard Sutton – Father of RL thinks LLMs are a dead end (Dwarkesh Podcast)

    Listen to this philosophical discussion to gain a critical perspective on the current trajectory of LLMs versus the potential of reinforcement learning for generalizable AI.

    Link to resource

  5. Dwarkesh Podcast / a16z Podcast

    Regularly listen to these podcasts for interviews with AI experts, discussions on emerging trends, startup dynamics, and the broader future of technology and AI.

    Dwarkesh Podcast | a16z Podcast

General Advice: This plan is structured sequentially, but many resources, especially within the "Practical Application" and "Continuous Learning" phases, can be explored in parallel. For instance, you can start practicing prompt engineering early on. The podcasts and blogs are excellent for ongoing learning and gaining diverse perspectives throughout your journey. Don't hesitate to revisit foundational concepts as you tackle more advanced topics.