AI Engineering, from scratch.
The world's open AI curriculum — 542 lessons, 20 phases, five programming languages — is free for anyone, and every lesson is hosted right here. CEA adds the way in: starting points, a live gradient-descent lab, prompt engineering patterns, and the career routes that map to real AI work.
- 542 lessons
- 20 phases
- MIT licensed
- Free forever
542
lessons, all hands-on
20
phases, zero → portfolio
5
languages (Python first)
MIT
free, forever, attribution
Office skills open the door. AI opens the next one.
Every job in Port Harcourt is quietly adding an AI line to its requirements — the accountant who can draft a report with AI, the marketer who can brief one, the developer whose agent writes the boilerplate. The gap is not access; the knowledge is free. The gap is a guided path and the discipline to finish.
CEA teaches the foundation — computer basics, typing, Office, design, web — in the classroom. This page is the bridge beyond it: a curated, honest route through the open AI curriculum, hosted here with the author's MIT blessing, with the hard parts made visible before you commit.
Feel gradient descent — before you read a single proof.
Twenty points on a loss parabola. Drag the learning rate, hit run, and watch the steps. Push past η = 1 and the run diverges — the exact failure the math in Phase 01 predicts.
L(x) = (x − 2)²
Mean loss
18.3026
Epoch
0
Twenty points start on the left and step against the gradient each epoch. Below η = 1 the run settles into the minimum; at or above it, each step overshoots and the loss explodes — the exact stability bound (η < 2/λmax) the source curriculum derives in Phase 01.
Copy the pattern, not the product.
The first skill the curriculum teaches, distilled: role, context, constraints, output format. Four everyday tasks — click to copy the engineered version.
01
Everyday writing
Vague
“Write a marketing email for our new product.”
Engineered
You are a senior copywriter at a B2B software company. Write a product launch email for DevFlow, a CI/CD pipeline debugger. Audience: engineering managers at Series B startups. Tone: confident, technical, not salesy. Length: 150 words. Include one specific metric (3.2× faster pipeline debugging). End with a single call to action linking to the demo page. Output the email only.
02
Summarising a report
Vague
“Summarise this report.”
Engineered
You are an analyst briefing a busy director. Summarise the attached report in exactly five bullet points, each under 20 words. Lead with the decision the director must make. Flag any number the report cannot support. No preamble, no conclusion.
03
Debugging code
Vague
“Fix my code.”
Engineered
You are a senior TypeScript engineer. This React function throws "Cannot read properties of undefined" on line 12 when items is empty. Here is the code and the full stack trace: <paste code>. Explain the root cause in two sentences, give the minimal fix, then one sentence on how to prevent this class of bug. Do not rewrite unrelated parts.
04
Extracting structure
Vague
“Get the key info from these invoices.”
Engineered
Extract the following fields from each invoice as JSON: invoice_number, vendor, date (YYYY-MM-DD), currency, total (number, no symbols), due_date. If a field is missing, set it to null. Return a JSON array only — no prose. Here are the invoices: <paste>.
Role + context + constraints + format. Same model, same question — wildly different answer. Adapted from “Prompt Engineering” in AI Engineering from Scratch (MIT © 2026 Rohit Ghumare).
Pick an entry route — don't read lessons in order.
Route 01
Model foundations
Start from zero: environment, math, ML fundamentals, deep learning, then build a mini language model from scratch.
Start with: Setup and tooling
Route 02
LLM systems
Start from prompting: structured outputs, embeddings, retrieval (RAG), function calling, evaluation and guardrails.
Start with: Prompt engineering
Route 03
Agents & delivery
Start from the loop: tool use, memory, planning, orchestration, evaluation-driven development and multi-agent systems.
Start with: The agent loop
Six lessons that repay the time.
Phase 00 · Setup & Tooling
Dev environment that actually works
Editors, terminals, Git and Python environments. The unglamorous lesson every professional setup starts with — and most tutorials skip.
~45 minStart herePhase 01 · Math Foundations
Optimisation & gradient descent
How learning really happens: descend a loss landscape in code and see why learning rates decide between crawling and blowing up. There is an interactive lab below.
~75 minInteractive lab belowPhase 11 · LLM Engineering
Prompt engineering that isn't guesswork
Vague prompt vs engineered prompt, the anatomy of system messages, and why “you are a senior…” works. The single highest-leverage AI skill for office and creative work.
~90 minHighest leveragePhase 11 · LLM Engineering
RAG — answers grounded in your documents
Retrieval-augmented generation: fetch the right passage first, then let the model answer from it. The architecture behind every serious company knowledge assistant.
~90 minFor projectsPhase 14 · Agent Engineering
The agent loop
An LLM returns text — it cannot act. The reason → act → observe loop is the engine inside every coding agent and automation you will touch this decade.
~60 minFor the curiousPhase 14 · Agent Engineering
Prompt injection defence
The number-one way AI applications get broken in production. Required reading before any AI feature near your customers.
~75 minBefore you ship
Hosted hereAll 542 lessons — text, code and quizzes — are on this site now. No external tab, no sign-up, no paywall.
Open the lesson libraryTwenty phases. 542 lessons. Zero tuition.
- 00Setup & ToolingA dev environment, Git, terminals and Linux — the unglamorous start.13 lessons
- 01Math FoundationsLinear algebra, calculus and optimisation, taught for ML — with visuals.22 lessons
- 02ML FundamentalsRegression, classification, trees and evaluation from first principles.21 lessons
- 03Deep Learning CoreBackprop, activations, normalisation and training dynamics.13 lessons
- 04Computer VisionCNNs, detection, segmentation and image models.28 lessons
- 05NLP Foundations → AdvancedTokens to transformers: the language-modelling stack, step by step.29 lessons
- 06Speech & AudioFeature extraction, ASR, TTS and audio generation.17 lessons
- 07Transformers Deep DiveAttention, RoPE, KV-cache and the architecture itself.16 lessons
- 08Generative AIDiffusion, VAEs, GANs and modern generative pipelines.15 lessons
- 09Reinforcement LearningValue methods, policy gradients and RLHF — the machinery behind modern models.12 lessons
- 10LLMs from ScratchTokenizers, pretraining, SFT, RLHF and quantisation — build a mini GPT.24 lessons
- 11LLM EngineeringPrompts, structured output, RAG, evaluation, cost and guardrails.17 lessons
- 12Multimodal AIVision-language models, audio and cross-modal systems.25 lessons
- 13Tools & ProtocolsFunction calling, MCP, A2A, browser and computer-use protocols.45 lessons
- 14Agent EngineeringThe agent loop, memory, planning, orchestration and failure modes.54 lessons
- 15Autonomous SystemsLong-running autonomy, safety envelopes and oversight.22 lessons
- 16Multi-agent & SwarmsCoordination, debate, markets and swarm orchestration.25 lessons
- 17Infrastructure & ProductionServing, gateways, observability, rollout and cost control.29 lessons
- 18Ethics, Safety & AlignmentGovernance, evaluation, red-teaming and responsible deployment.30 lessons
- 19Capstone ProjectsEnd-to-end builds that prove you can ship, not just follow along.85 lessons
Turn lessons into a portfolio, not just notes.
LLM Product Engineering
Turn language-model capability into evaluated, safe, cost-aware product behaviour that survives production traffic.
- Lesson time
- ~15h
- Proof project
- Production LLM Feature
Agent Systems Engineering
Engineer tool-using agent loops with explicit context, memory, orchestration, safety, evaluation and production control.
- Lesson time
- ~14h
- Proof project
- Observable Agent System
Agent-Assisted Engineering
Frame, plan, execute, delegate, verify, review and improve coding-agent work inside real repositories.
- Lesson time
- ~15h
Software Engineering Fundamentals
The repository, debugging, testing, interface, security and release foundations every AI system depends on.
- Lesson time
- ~12h
Time estimates cover lesson time only; portfolio practice takes longer. Routes are the source's own career paths — full rubrics in the repository linked on each card.
How to actually finish it.
01
Finish the CEA foundation first
Typing, Office, files and safe browsing. AI multiplies a foundation; it doesn't replace one.
02
Pick ONE entry route
Foundations, LLM systems, or agents. Whichever sounds most like the work you want — never all three at once.
03
Two sessions a week, like class
Treat 30–45 minute lesson blocks like our timetable: same days, phone in another room, one lesson per session.
04
Ship one artefact
Prompt library, RAG bot for your notes, an agent that does one real task. Bring it to the centre — we'll review it with you.
Credit where it's due
AI Engineering from Scratch is the work of Rohit Ghumare, released under the MIT License — Copyright (c) 2026 Rohit Ghumare. Every lesson is reproduced here in full — text, code, exercises and quizzes — with attribution and canonical links to the source. The gradient descent lab on this page is our own implementation inspired by it. Corrections and improvements to the source are welcome at github.com/rohitg00/ai-engineering-from-scratch. Questions about CEA's use of it: [email protected]. This is one of 57 licence-verified open courses in the CEA open curriculum — every source, licence and delivery plan in the open.
Next step
Start with a keyboard. Graduate into AI.
CEA courses build the foundation — typing, Office, design, web. This curriculum extends it for free. Come learn in person, then keep going.
Admissions open · Two sessions a week · 24 Ebony Road, Port Harcourt