Skip to content
Free learning · MIT-licensed curriculum

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

Why we teach this

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.

Interactive lab

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.

gradient-descent · live lab

L(x) = (x − 2)²

Mean loss

18.3026

Epoch

0

0.22
Safe & slowη < 1 stableDiverges

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.

Prompt patterns

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).

Hosted hereAll 542 lessons — text, code and quizzes — are on this site now. No external tab, no sign-up, no paywall.

Open the lesson library
The full map

Twenty phases. 542 lessons. Zero tuition.

  1. 00Setup & ToolingA dev environment, Git, terminals and Linux — the unglamorous start.13 lessons
  2. 01Math FoundationsLinear algebra, calculus and optimisation, taught for ML — with visuals.22 lessons
  3. 02ML FundamentalsRegression, classification, trees and evaluation from first principles.21 lessons
  4. 03Deep Learning CoreBackprop, activations, normalisation and training dynamics.13 lessons
  5. 04Computer VisionCNNs, detection, segmentation and image models.28 lessons
  6. 05NLP Foundations → AdvancedTokens to transformers: the language-modelling stack, step by step.29 lessons
  7. 06Speech & AudioFeature extraction, ASR, TTS and audio generation.17 lessons
  8. 07Transformers Deep DiveAttention, RoPE, KV-cache and the architecture itself.16 lessons
  9. 08Generative AIDiffusion, VAEs, GANs and modern generative pipelines.15 lessons
  10. 09Reinforcement LearningValue methods, policy gradients and RLHF — the machinery behind modern models.12 lessons
  11. 10LLMs from ScratchTokenizers, pretraining, SFT, RLHF and quantisation — build a mini GPT.24 lessons
  12. 11LLM EngineeringPrompts, structured output, RAG, evaluation, cost and guardrails.17 lessons
  13. 12Multimodal AIVision-language models, audio and cross-modal systems.25 lessons
  14. 13Tools & ProtocolsFunction calling, MCP, A2A, browser and computer-use protocols.45 lessons
  15. 14Agent EngineeringThe agent loop, memory, planning, orchestration and failure modes.54 lessons
  16. 15Autonomous SystemsLong-running autonomy, safety envelopes and oversight.22 lessons
  17. 16Multi-agent & SwarmsCoordination, debate, markets and swarm orchestration.25 lessons
  18. 17Infrastructure & ProductionServing, gateways, observability, rollout and cost control.29 lessons
  19. 18Ethics, Safety & AlignmentGovernance, evaluation, red-teaming and responsible deployment.30 lessons
  20. 19Capstone ProjectsEnd-to-end builds that prove you can ship, not just follow along.85 lessons
The CEA method

How to actually finish it.

  1. 01

    Finish the CEA foundation first

    Typing, Office, files and safe browsing. AI multiplies a foundation; it doesn't replace one.

  2. 02

    Pick ONE entry route

    Foundations, LLM systems, or agents. Whichever sounds most like the work you want — never all three at once.

  3. 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.

  4. 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