← All courses

EDGE FDE

Advanced Premium

AI Full-Stack Operator: Train, Convert, Ship On-Device

Build progressively realistic replicas of the whole stack until you can reason about tokens, throughput, and hardware without hand-waving.

Explain transformer internals, train small LMs, run SFT and preference tuning, serve with vLLM, write basic Triton, and hold earned opinions on clusters and the semiconductor supply chain.

You do not need to pretrain an 800B model to understand the shape of the problem. You do need to build progressively realistic replicas of the whole stack.

What you'll learn

Weekly rhythm

Core projects

  1. Linear algebra and optimiser lab (weeks 1 to 2).
  2. TinyGPT from scratch (week 3).
  3. Pretrain a 10M to 100M LM (week 5).
  4. DDP / FSDP / ZeRO memory simulator (week 6).
  5. SFT plus typed synthetic data (weeks 4 and 7).
  6. DPO on a small preference set (week 8).
  7. vLLM serve, Triton kernel, and the capstone write-up (weeks 9 to 12).

Environment setup

Use Python 3.11 or newer and uv. Weeks 1 to 8 run on a laptop CPU (Mac or Linux). Add packages in phases so later adds keep the CPU torch wheels. Use --index, not --index-url. That flag is not saved, and a later uv add can swap torch to a CUDA wheel. --index writes the CPU index into pyproject.toml.

vLLM, Triton, and CUDA wheels are for later GPU weeks (9 and 10). They may need a CUDA host. Do not install them in this CPU project. Do not pretend they install on CPU-only machines.

curl -LsSf https://astral.sh/uv/install.sh | sh
mkdir -p ai-full-stack-operator && cd ai-full-stack-operator
uv init --python 3.11
uv venv
uv add numpy
uv add torch --index pytorch-cpu=https://download.pytorch.org/whl/cpu
uv add pydantic
uv run python -c "import numpy, torch, pydantic; print(numpy.__version__, torch.__version__, pydantic.__version__); print('cuda:', torch.cuda.is_available())"

Week 1 stays in NumPy first. Week 2 uses torch. Week 4 uses pydantic. Always run with uv run.

Suggested repo structure

ai-full-stack-operator/
  week01_linalg/
  week02_optim/
  week03_tinygpt/
  week04_data/
  week05_pretrain/
  week06_distributed/
  week07_sft/
  week08_preference/
  week09_vllm/
  week10_triton/
  week11_cluster/
  week12_capstone/
  shared/
    train_step.py
    synthetic.py

Lessons

  1. Proof-based linear algebra for deep learning
  2. Non-convex optimisation
  3. Build a transformer from scratch (TinyGPT)
  4. Scaling laws, data, and synthetic data
  5. Pretrain a small language model
  6. Distributed training simulation
  7. Supervised fine-tuning
  8. Preference tuning, PPO, DPO, and RLHF intuition
  9. vLLM internals and production serving
  10. Triton and hand-rolled kernels
  11. Cluster orchestration
  12. Semiconductor supply chain and capstone

Key concepts

Takeaways

Agent briefs

Model architectures in plain English · LLM LoRA for your writing style · Turn feedback into a better local model · The agent harness (and how to improve it)