Link copied to clipboard
Build a language model from scratch | Sri AI
AI: Local AI & Model Types

Build a language model from scratch

(0 reviews)
Advanced 11 views

Course overview

Understand every line, from tokeniser and attention to the training loop, by building and training a small GPT yourself.

Level: Advanced  ·  Mode: Part-time

Who this course is for

Engineers who want to understand language models from the inside.

What you will learn

  • Write a tokeniser
  • Implement self-attention and a transformer block
  • Pre-train a small language model
  • Instruction-tune it to follow requests

Syllabus

  1. Module 1: Tokenisation
  2. Module 2: Embeddings and positions
  3. Module 3: Self-attention
  4. Module 4: The transformer block
  5. Module 5: Pre-training
  6. Module 6: Instruction tuning

Final project

Every module ends in hands-on practice, and the course ends with a project you build and present. Your certificate names that project.

Before you start

Deep learning.

Open-source tools you will use

Uses open code from rasbt/LLMs-from-scratch (Apache-2.0) and nanoGPT (MIT). The accompanying book is sold separately.

Rate This Course