Skip to content

Latest commit

 

History

History
296 lines (211 loc) · 27.5 KB

File metadata and controls

296 lines (211 loc) · 27.5 KB

Synapsa Commons: learn AI by building it

Free, hands-on AI courses that run anywhere, from the team building Synapsa, an AI-native learning platform.

Lessons workflow status

Start here · Choose your path · The map · What's coming · How a lesson works · Quality

Looking for the 2017-2025 tutorials? They are retired; what changed, and why.

Start here

The 8 GB track · ~40 minutes · a laptop CPU, 8 GiB RAM, no GPU, no download · Python · no lesson to do first

Open The 8 GB track in Colab Open The 8 GB track in Kaggle Open The 8 GB track in Binder Open the repository in Codespaces

Build a profiler that measures what any piece of Python really costs in time and memory, rank four implementations of one task on the numbers, and reproduce the compute-tier check every lesson here has to pass.

  1. Pick a service. Binder needs no account; Colab, Kaggle and Codespaces ask you to sign in, and in Codespaces you open the lesson's lesson.ipynb yourself.
  2. Press Run all. Every cell runs, each unfinished exercise says so, and a progress board ends the notebook.
  3. Fill in the first exercise and re-run its cell. Its check tells you whether you are right and, if not, what the likely mistake is.
What this lesson assumes you can already do
  • write a Python function with a loop and a try/finally block, define a NamedTuple, and read a traceback to find the failing line
  • create and slice a numpy array, and call methods such as .sum() on it
  • say what RAM is, as opposed to disk, and what happens to a program that asks for more of it than the machine has

New to some of that? Free places to learn it:

Choose your path

New to AI: start from zero, one lesson at a time. Opens the beginner path. ML engineer: build AI systems. Opens the track lessons. Domain specialist: AI in your field. Jumps to the programmes.

The map

The courses aim at the work people are paid for: evidence an inspector can re-run, a model a risk committee can sign off, an alarm a plant manager will trust. Every number a lesson prints is computed by code you run, and every claim it makes about the world cites a primary source.

77 lessons, every one passing all 14 gates in QUALITY.md and independently reviewed. 7 are compiled C or C++ exercises. Every notebook opens in Colab, Kaggle, Binder, Codespaces or local Jupyter. Every MODULES.md marks a module built only when its lesson exists and has passed; everything else says specified, and means it.

Programmes

EU AI Act conformity programme Document intelligence programme Predictive maintenance programme Model risk programme
Credit underwriting programme Proteomics and multiomics programme Humanoid Lab flagship

Tracks

Orientation track lessons Data and statistics track lessons Language models track lessons Post-training track lessons Inference systems track lessons
Retrieval and RAG track lessons Agents and protocols track lessons AI engineering track lessons Evaluation and governance track lessons AI for science track lessons

What's coming

New lessons three times a week, every Monday, Wednesday and Friday. Watch or star this repository to hear about each one as it lands.

Roadmap. September 2026, done: Document intelligence for regulated operations. October 2026, under way now: AI agents and the protocols they speak. November 2026, to come: The credit decisions and the proteomics and multiomics programmes continue. December 2026, to come: Deeper courses in the industries we already cover.

  • September 2026. Document intelligence for regulated operations, retrieval and RAG, and the agents track begins.
  • October 2026. AI agents and the protocols they speak, two new industry programmes on proteomics and multiomics and on evidence-based credit decisions, AI for science, serving models on modest hardware, post-training from scratch, and evaluating across languages.
  • November 2026. The credit decisions and the proteomics and multiomics programmes continue, module by module.
  • December 2026. Deeper courses in the industries we already cover.

How a lesson works

Every lesson here is a notebook you do, not one you read. You fill in the exercises, and each one checks itself the moment you run it.

Step 1, open: the notebook opens in any of four services. Step 2, run all: every cell runs, and unfinished exercises show as not started. Step 3, fill in: a filled-in exercise is checked as soon as its cell runs, with a hint to hand. Step 4, read the board: one line per exercise, passed, failed or not started.

  1. Open it in Colab, Kaggle, Binder, Codespaces or your own Jupyter. The first cell installs what the lesson needs at the versions it was measured with, and does nothing where it is already there.
  2. Run all before you write a line. Every cell runs: each unfinished exercise says it is not implemented yet, and a progress board ends the notebook, one line per exercise, marked ✅ passed, ❌ failed or ⏳ not started.
  3. Fill in an exercise and re-run its cell. Its check says whether you are right and, if not, what the likely mistake is. Each exercise has two hints, the first on what to think about and the second on the approach; neither gives you the answer.
  4. Read the board. Your score against the full rubric, and the worked solution, come with enrolment on Synapsa.

Anything a lesson measures on your machine, like a time or a memory peak, prints with its unit and will differ from ours. Every other number a finished lesson prints is identical on Python 3.11 and 3.12; every lesson is checked for that before it is released.

Run it anywhere

On Kaggle, a lesson that installs a package or fetches a file needs Internet switched on in the notebook's settings, and Kaggle allows that only for phone-verified accounts. Colab, Binder and Codespaces need nothing.

Codespaces opens the whole repository, so open the lesson's lesson.ipynb yourself once it has started:

Open the repository in Codespaces

To work on your own machine, with Python 3.11 or 3.12:

git clone --depth 1 \
  https://github.com/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials \
  synapsa-commons
cd synapsa-commons
python -m venv .venv && .venv/bin/pip install -r requirements.txt
.venv/bin/jupyter lab

On Windows the last two commands use .venv\Scripts\pip and .venv\Scripts\jupyter.

7 lessons are C or C++ exercises, and they also need make and a C or C++ compiler (clang or gcc). Binder and Codespaces install both from this repository's own setup (binder/apt.txt and .devcontainer/devcontainer.json); on your own machine, install them first.

PyTorch, for the few lessons that use it

PyTorch is an optional, separate install, because only a few lessons use it. Colab and Kaggle already have it, and a lesson that needs it installs it from its first cell anywhere else. To install it yourself, run .venv/bin/pip install -r requirements-torch.txt; on Linux, add --index-url https://download.pytorch.org/whl/cpu to get the CPU build the lessons are checked with instead of gigabytes of CUDA libraries. On a Mac the pinned version needs Apple silicon and macOS 14 or later.

The lessons workflow checks on Linux, which is what Colab, Kaggle, Binder and Codespaces run, that every notebook opens and runs.

The bar every lesson clears

Seal: every lesson is independently reviewed before it is marked built

QUALITY.md sets out 14 gates that a lesson must pass before it is marked built.

A lesson is marked built only after an independent reviewer has tried to break it, including by grading plausible wrong answers against its rubric.


In short, every lesson has:

  • measurable objectives, and prerequisites that are real lessons;
  • scaffolded exercises with instant feedback, an autograded rubric, a worked solution and a self-check;
  • a clean run from top to bottom in a fresh interpreter, inside a declared compute tier and time budget;
  • free data that needs no registration, named with its licence;
  • a primary source for every claim about the world, and no measured or computed number typed into the prose by hand;
  • a notebook that opens and runs alone on Python 3.11 and 3.12, where Run all is a good experience.

Synapsa

Worked solutions and your score come with free enrolment on Synapsa

Worked solutions, the full rubric with partial credit, and an official score come with free enrolment on Synapsa. Enrolment has not opened yet.

The 2017-2025 tutorials

Retired archive: the 2017-2025 tutorial collection

From 2017 to 2025 this repository carried a curated collection of machine-learning and deep-learning tutorials, much of it gathered from other people's work. It helped a great many learners, and we are grateful to everyone who starred it, forked it and contributed to it. That collection has now been retired from public view, so that everything published here is original work we can stand behind and license. Synapsa Commons replaces it.


Licence

Synapsa Commons is © 2026 RealAI, free to learn from and share, and licensed under CC BY-NC-SA 4.0; the legal code is in LICENSE and a plain-words summary in NOTICE.

  • You may use the lessons to learn and to teach, and copy, fork, share and adapt them.
  • You must credit "Synapsa Commons by RealAI" with a link here, say what you changed, and share adaptations under the same licence.
  • You may not use them, or anything adapted from them, for commercial advantage or payment: selling them, charging for a course or training built on them, or packaging them into a paid product or service.

Commercial licences are available from RealAI. Third-party material inside a lesson keeps its own licence, named in that lesson's assets/SOURCE.md or claims.yaml. The Synapsa name and logo belong to RealAI and are not licensed.

For maintainers
  • lessons/, flagships/, programmes/: track lessons, flagship subtrees, industry programmes.
  • Lessons are written and gated in a separate source that holds the worked solutions and the rubrics; this repository receives the student version of each lesson once it passes. The status lines, indexes and launch links on these pages are generated there from the lessons themselves.
  • tools/notebooks.py generates each lesson.ipynb and its launcher cell (--check for drift), and tools/verify_portable.py runs each notebook alone in a minimal kernel on Python 3.11 and 3.12. .github/workflows/lessons.yml runs both on Linux on every change, and fails if a solution or rubric file is ever committed here.
  • brand/ holds the Synapsa Commons lockups used here and at the top of every notebook; brand/readme/ and brand/areas/ hold the artwork on these pages, and tools/brand_svgs.py --lint checks it.

Synapsa
Synapsa Commons by RealAI · synapsa.realai.eu