Live OnlineAI Engineering

AI Theory (LLM Foundations from Scratch)

Build the foundations of modern AI by creating a small LLM from scratch, top-down, in a Stanford CS336-style program for learners with basic Python.

Taught by Dr. Henry Kang · Lead Instructor · AI & Machine Learning Engineering

Cohort starts September 1, 2026
Course Intro

AI Theory (LLM Foundations from Scratch)

with Dr. Henry Kang

WEEKS

4

WEEKLY EFFORT

8–10 hours

CATEGORY

AI Engineering

FORMAT

Live Online

PRICE

$2500

Build a rigorous foundation in modern AI by implementing a small language model from scratch. The program covers BPE tokenization; the Transformer architecture, including self-attention, RoPE, and RMSNorm; end-to-end pretraining with cross-entropy, AdamW, mixed precision, and gradient clipping; efficient training with FlashAttention, activation checkpointing, and parallelism; scaling laws and pretraining-data curation; inference with KV-cache and quantization; and post-training with SFT, LoRA, DPO, and RLHF.

Weekly PyTorch and Hugging Face labs run on a free GPU. Assessment includes a midterm, a comprehensive written final, graded coding labs, and a capstone in which you train, evaluate, and fine-tune your own small language model.

The four-week program is taught in English and includes two two-hour live sessions each week plus an approximately two-hour asynchronous lab per session. Grading is Pass/Fail, with 70% required to pass.

What you'll learn

  • Implement a tokenizer, Transformer, and training loop from scratch in PyTorch
  • Reason about scaling laws and compute–data trade-offs
  • Optimize inference with KV-cache and INT8/INT4 quantization
  • Post-train models with SFT, LoRA, DPO, and RLHF
  • Pretrain an approximately 10M-parameter GPT on TinyStories
  • Ship a capstone language model with a technical report

Prerequisites

  • Basic Python proficiency
  • A computer with a modern web browser
  • Access to a free Colab or Kaggle T4 GPU runtime
  • A free GitHub account

Certificate of Completion

Students who complete all course requirements receive a verified digital certificate issued by Abryne University.

Earn a Certificate of Completion

Students who complete all course requirements receive a verified digital certificate from Abryne University — shareable on LinkedIn and your resume.