Build your own GPT from Scratch thumbnail 1
Build your own GPT from Scratch thumbnail 2
Build your own GPT from Scratch

Build your own GPT from Scratch

An intensive, hands-on journey into the architecture of Large Language Models, from tokenization and attention mechanisms to full-scale pre-training.

View course on Vizuara
InstructorVizuara Expert Team
FormatLive Lectures & Coding Labs
Sessions10 Modules
AudienceAI Professionals & ML Enthusiasts
Course Description

Build Your Own GPT from Scratch is an intensive course designed to empower students with the skills required to construct LLMs from the ground up.

The curriculum dives deep into core concepts including pre-training, fine-tuning, and emergent properties. Through practical coding exercises in Google Colab, you will explore tokenization, self-attention, and transformer architecture.

Learning Outcomes

By the end of this course, you will be able to:

Prerequisites
Course Sessions
Module
01

Introduction to LLMs

Overview of LLM capabilities, scaling laws, and the lifecycle of model development.

Foundational concepts for the entire course.

Core Topics

  • Scaling laws
  • Emergent properties
  • Pre-training vs Fine-tuning

Resources

Lecture VideoSlides
Module
02

Tokenization & Data Pipelines

Deep dive into how text is converted into numerical data for model consumption.

Includes building a word-based tokenizer and BPE.

Core Topics

  • Tokenization
  • Byte Pair Encoding
  • Input-Target Pairs

Resources & Assignments

Lecture VideoColabAssignment
Module
03

Embeddings & Positional Encoding

Understanding how models represent token meaning and sequence order.

Essential for understanding the input layer of a transformer.

Core Topics

  • Token Embeddings
  • Positional Encoding
  • Data Pipeline

Resources

Lecture VideoSlides
Module
04

The Attention Mechanism

The core of the transformer architecture: how models focus on relevant parts of the input.

Includes manual calculation and implementation.

Core Topics

  • Self-attention
  • Causal Attention
  • Multi-head Attention

Hands-On Resources

Lecture VideoColabCode
Module
05

Transformer Architecture Assembly

Integrating attention, feed-forward networks, and normalization into a cohesive model.

Assembling the GPT architecture components.

Core Topics

  • Feed Forward Networks
  • Layer Normalization
  • Shortcut Connections

Resources

Lecture VideoCode
Module
06

Training & Optimization

Implementing loss functions and the full pre-training loop.

Finalizing the model training pipeline.

Core Topics

  • Loss Functions
  • Optimization
  • Pre-training

Resources

Lecture VideoCode
Assessments

Tokenization Assignment

A mid-term take-home project focusing on implementing and analyzing tokenization strategies.

GPT Implementation Project

A final project where students build and train a functional GPT model from scratch.