Skip to content

Phase 4: Large Language Models

import { Card, CardGrid } from ‘@astrojs/starlight/components’;

Learn exactly how ChatGPT, Claude, Gemini, and Llama work — from the moment you type a prompt to when you receive a response.

Difficulty 🟡 Intermediate
Estimated Time 18 Hours
Reading Time 12 Hours
Projects 3
Interview Importance ★★★★★
Prerequisites Deep Learning (Phase 3)

flowchart TD
M1["📖 Module 1<br/>LLM Foundations"] --> M2["🏗️ Module 2<br/>Transformer Architecture"]
M2 --> M3["🎓 Module 3<br/>Training"]
M3 --> M4["⚡ Module 4<br/>Inference"]
M4 --> M5["✅ Module 5<br/>Revision & Project"]
M1 --> M1D["What is an LLM? · Tokenization · Context Window"]
M2 --> M2D["Self-Attention · QKV · Multi-Head · Positional Encoding · GPT Architecture"]
M3 --> M3D["Pretraining · SFT · RLHF · DPO"]
M4 --> M4D["Decoding · Temperature · Streaming · Function Calling · Structured Output"]
style M1 fill:#3b82f6,color:#fff
style M2 fill:#8b5cf6,color:#fff
style M3 fill:#f59e0b,color:#fff
style M4 fill:#22c55e,color:#fff
style M5 fill:#ef4444,color:#fff

Learn what LLMs are, how language models work, how text becomes tokens, and why context windows matter.

**4 Lessons · ~3 Hours**
Dive deep into the Transformer — self-attention, QKV, multi-head attention, positional encoding, feed-forward networks, decoder-only design, and GPT architecture.

**8 Lessons · ~6 Hours**
Understand how LLMs are trained — pretraining, next-token prediction, supervised fine-tuning, RLHF, and DPO alignment.

**5 Lessons · ~4 Hours**
Master inference — how LLMs generate text, decoding strategies, temperature, streaming, function calling, structured output, and hallucinations.

**7 Lessons · ~4 Hours**
Solidify your knowledge with a cheat sheet, practice questions, MCQs, interview preparation, and a hands-on mini project.

**Revision · ~1 Hour**

#TopicModule🔥
01What is an LLM?M1: Foundations🔥 Must Know
02How Language Models WorkM1: Foundations🔥 Must Know
03TokenizationM1: Foundations🧠 Core Concept
04Context WindowM1: Foundations🧠 Core Concept
05Transformer OverviewM2: Architecture🔥 Must Know
06Self-AttentionM2: Architecture🔥 Must Know
07Query, Key, ValueM2: Architecture🧠 Core Concept
08Multi-Head AttentionM2: Architecture🧠 Core Concept
09Positional EncodingM2: Architecture🧠 Core Concept
10Feed-Forward NetworkM2: Architecture🧠 Core Concept
11Decoder-Only TransformersM2: Architecture🧠 Core Concept
12GPT ArchitectureM2: Architecture🔥 Must Know
13PretrainingM3: Training🔥 Must Know
14Next Token PredictionM3: Training🔥 Must Know
15Supervised Fine-TuningM3: Training🧠 Core Concept
16RLHFM3: Training💼 Production
17DPOM3: Training💼 Production
18InferenceM4: Inference🔥 Must Know
19Decoding StrategiesM4: Inference🧠 Core Concept
20Temperature, Top-K & Top-PM4: Inference🧠 Core Concept
21StreamingM4: Inference💼 Production
22Function CallingM4: Inference💼 Production
23Structured OutputM4: Inference💼 Production
24HallucinationsM4: Inference🧠 Core Concept
25Phase SummaryM5: Revision✅ Revision

ProjectModuleDescription
LLM Token VisualizerM2Build a tool that shows how text is split into tokens
Temperature PlaygroundM4Interactive tool to compare LLM outputs at different temperatures
Mini ChatGPTM5Build a simple CLI chat application using an LLM API

0 / 24 Lessons Complete

Ready to master Large Language Models? Start with Module 1 to build your foundation, or jump to any topic that interests you.

Start Learning: