项目 / TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
该仓库现以 Synapsa Commons 的形式提供免费动手 AI 课程,由构建 [Synapsa](https://synapsa.realai.eu) 的团队维护。课程可在 Colab、Kaggle、Binder、GitHub Codespaces 或本地 Jupyter 中运行,每课带自动批改。2017–2025 年间的旧教程已经停用,说明见 README 中的相应章节。建议从「The 8 GB track」起步:约 40 分钟,只需笔记本 CPU 和 8 GiB 内存,无需 GPU 或额外下载;可在上述在线环境打开 `lessons/T00-L01-the-8gb-track/lesson.ipynb`,执行 Run all,再按练习逐步填写。Binder 无需账号,Colab、Kaggle 和 Codespaces 通常需要登录。说明见[仓库 README](https://github.com/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials)。
本站整理,非 GitHub 官方 description。
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
适配系统:考试系统、题库系统 · 得分 1.3
提供组卷、作答与自动评分链路,可嵌入考试系统降低教师批改成本。
适配系统:AI 应用平台、模型评测平台 · 得分 1.2
提供模型接入、编排与效果评测能力,可作为行业 AI 应用的工程底座与质量闸门。
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
在 Binder、Colab、Kaggle 或 Codespaces 打开 lesson.ipynb,运行全部单元格,完成首个练习后重跑该单元格查看检查。
该教程库每周一、三、五更新新课,2026年9月至12月陆续推出文档智能、RAG、AI智能体、蛋白质组学与多组学、信贷决策等课程,12月深化已有行业课程。
来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 28,732 字节),完整内容见 GitHub 仓库。
<h1 align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="brand/readme/hero-dark.svg">
<img src="brand/readme/hero-light.svg" alt="Synapsa Commons: learn AI by building it" width="960">
</picture>
</h1>
<p align="center"><b>Free, hands-on AI courses that run anywhere</b>, from the team building <a href="https://synapsa.realai.eu">Synapsa</a>, an AI-native learning platform.</p>
<p align="center"><a href="https://github.com/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials/actions/workflows/lessons.yml"><img src="https://github.com/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials/actions/workflows/lessons.yml/badge.svg?branch=master" alt="Lessons workflow status"></a></p>
<p align="center"><a href="#start-here">Start here</a> · <a href="#choose-your-path">Choose your path</a> · <a href="#the-map">The map</a> · <a href="#whats-coming">What's coming</a> · <a href="#how-a-lesson-works">How a lesson works</a> · <a href="#the-bar-every-lesson-clears">Quality</a></p>
> Looking for the 2017-2025 tutorials? They are retired; [what changed, and why](#the-2017-2025-tutorials).
## Start here
<!-- GEN:start:BEGIN generated by tools/status.py; do not edit -->
**[The 8 GB track](lessons/T00-L01-the-8gb-track/lesson.ipynb)** · ~40 minutes · a laptop CPU, 8 GiB RAM, no GPU, no download · Python · no lesson to do first
<a href="https://colab.research.google.com/github/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials/blob/master/lessons/T00-L01-the-8gb-track/lesson.ipynb"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/open-colab-dark.svg"><img src="brand/readme/open-colab-light.svg" width="96" alt="Open The 8 GB track in Colab"></picture></a> <a href="https://kaggle.com/kernels/welcome?src=https://github.com/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials/blob/master/lessons/T00-L01-the-8gb-track/lesson.ipynb"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/open-kaggle-dark.svg"><img src="brand/readme/open-kaggle-light.svg" width="105" alt="Open The 8 GB track in Kaggle"></picture></a> <a href="https://mybinder.org/v2/gh/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials/master?labpath=lessons/T00-L01-the-8gb-track/lesson.ipynb"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/open-binder-dark.svg"><img src="brand/readme/open-binder-light.svg" width="103" alt="Open The 8 GB track in Binder"></picture></a> <a href="https://codespaces.new/TarrySingh/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/open-codespaces-dark.svg"><img src="brand/readme/open-codespaces-light.svg" width="149" alt="Open the repository in Codespaces"></picture></a>
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.
<details><summary>What this lesson assumes you can already do</summary>
- 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:
- [The Python Tutorial, section 8: Errors and Exceptions](https://docs.python.org/3/tutorial/errors.html) · Python Software Foundation
- [NumPy user guide: Data types](https://numpy.org/doc/stable/user/basics.types.html) · NumPy project
- [tracemalloc: Trace memory allocations](https://docs.python.org/3/library/tracemalloc.html) · Python Software Foundation
- [Operating Systems: Three Easy Pieces](https://pages.cs.wisc.edu/~remzi/OSTEP/) · Arpaci-Dusseau and Arpaci-Dusseau
</details>
<!-- GEN:end -->
## Choose your path
<p align="center">
<a href="lessons/README.md#start-from-zero"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/path-new-dark.svg"><img src="brand/readme/path-new-light.svg" width="248" height="184" alt="New to AI: start from zero, one lesson at a time. Opens the beginner path."></picture></a>
<a href="lessons/README.md"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/path-engineer-dark.svg"><img src="brand/readme/path-engineer-light.svg" width="248" height="184" alt="ML engineer: build AI systems. Opens the track lessons."></picture></a>
<a href="#programmes"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/path-field-dark.svg"><img src="brand/readme/path-field-light.svg" width="248" height="184" alt="Domain specialist: AI in your field. Jumps to the programmes."></picture></a>
</p>
<!-- GEN:paths:BEGIN generated by tools/status.py; do not edit -->
- **New to AI.** Begin with some Python and take these in order, each needing only the lessons before it: [The 8 GB track](lessons/T00-L01-the-8gb-track/lesson.ipynb) → [Byte-level BPE from scratch](lessons/T03-L01-bpe-from-scratch/lesson.ipynb) → [The CPU slice of nanolm](lessons/T03-L03-nanolm-cpu-slice/lesson.ipynb) → [Retrieval from scratch](lessons/T06-L01-retrieval-from-scratch/lesson.ipynb) → [The agent loop from scratch](lessons/T07-L01-agent-loop-from-scratch/lesson.ipynb). The same path with launch links is in [the track lessons](lessons/README.md#start-from-zero).
- **ML engineer.** [Agents and protocols](lessons/README.md#agents-and-protocols) · [Retrieval and RAG](lessons/README.md#retrieval-and-rag) · [Inference systems](lessons/README.md#inference-systems) · [Post-training](lessons/README.md#post-training) · [Evaluation and governance](lessons/README.md#evaluation-and-governance) · [AI engineering](lessons/README.md#ai-engineering) · [Language models](lessons/README.md#language-models)
- **Domain specialist.** [EU AI Act conformity](programmes/ai-act-conformity/) · [Model risk](programmes/model-risk/) · [Predictive maintenance](programmes/predictive-maintenance/) · [Document intelligence](programmes/document-intelligence/) · [Credit underwriting](programmes/credit-underwriting/) · [Proteomics and multiomics](programmes/proteomics-multiomics/) · [AI for science](lessons/README.md#ai-for-science) · [Humanoid Lab](flagships/humanoid-lab/)
<!-- GEN:end -->
## 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.
<!-- STATUS:BEGIN generated by tools/status.py from the lessons themselves; do not edit -->
**108 lessons, every one passing all 14 gates in `QUALITY.md` and independently reviewed.** 8 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
<p align="center">
<a href="programmes/ai-act-conformity/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/p01-tile-dark.svg"><img src="brand/areas/p01-tile-light.svg" width="152" height="130" alt="EU AI Act conformity programme"></picture></a>
<a href="programmes/document-intelligence/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/p02-tile-dark.svg"><img src="brand/areas/p02-tile-light.svg" width="152" height="130" alt="Document intelligence programme"></picture></a>
<a href="programmes/predictive-maintenance/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/p03-tile-dark.svg"><img src="brand/areas/p03-tile-light.svg" width="152" height="130" alt="Predictive maintenance programme"></picture></a>
<a href="programmes/model-risk/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/p04-tile-dark.svg"><img src="brand/areas/p04-tile-light.svg" width="152" height="130" alt="Model risk programme"></picture></a><br>
<a href="programmes/credit-underwriting/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/p05-tile-dark.svg"><img src="brand/areas/p05-tile-light.svg" width="152" height="130" alt="Credit underwriting programme"></picture></a>
<a href="programmes/proteomics-multiomics/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/p07-tile-dark.svg"><img src="brand/areas/p07-tile-light.svg" width="152" height="130" alt="Proteomics and multiomics programme"></picture></a>
<a href="flagships/humanoid-lab/"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/f15-tile-dark.svg"><img src="brand/areas/f15-tile-light.svg" width="152" height="130" alt="Humanoid Lab flagship"></picture></a>
</p>
- **[EU AI Act conformity](programmes/ai-act-conformity/)** · 9 of 9 modules built. Show that an AI system meets the EU AI Act, with evidence an inspector can re-run. Start with [The conformity evidence pack](lessons/T10-L01-ai-act-conformity-pack/lesson.ipynb).
- **[Document intelligence](programmes/document-intelligence/)** · 11 of 11 modules built. Pull fields out of invoices and contracts, and prove how often you are wrong. Start with [Field extraction you can measure](programmes/document-intelligence/lessons/P02-L01-extraction-evaluation/lesson.ipynb).
- **[Predictive maintenance](programmes/predictive-maintenance/)** · 9 of 9 modules built. Take predictive maintenance from sensor physics to an alarm threshold priced in money. Start with [Alarm economics](programmes/predictive-maintenance/lessons/P03-L01-alarm-economics/lesson.ipynb).
- **[Model risk](programmes/model-risk/)** · 10 of 10 modules built. Validate a model well enough to sign it off: calibration, challengers, explainability, the committee pack. Start with [A validation suite that would survive an audit](programmes/model-risk/lessons/P04-L01-validation-suite/lesson.ipynb).
- **[Credit underwriting](programmes/credit-underwriting/)** · 4 of 8 modules built, 4 specified and not built yet. Build credit models that survive an audit: vintage curves, a hazard model, macro scenarios and an out-of-time back-test. Start with [PD modelling with vintages and macro overlays](programmes/credit-underwriting/lessons/P05-L01-pd-vintages-and-macro/lesson.ipynb).
- **[Proteomics and multiomics](programmes/proteomics-multiomics/)** · 6 of 7 modules built, 1 specified and not built yet. Get from mass spectra to proteins you can defend: a search engine, target-decoy FDR, protein inference, missing values and batch effects. Start with [DIA and DDA fundamentals with open search engines](programmes/proteomics-multiomics/lessons/P07-L01-search-engine-and-fdr/lesson.ipynb).
- **[Humanoid Lab](flagships/humanoid-lab/)** · 8 lessons + capstone. Make a simulated humanoid stand and walk, then measure how far that is from a robot. Start with [First contact with a humanoid](flagships/humanoid-lab/lessons/F15-L01-first-contact/lesson.ipynb).
### Tracks
<p align="center">
<a href="lessons/README.md#orientation"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t00-tile-dark.svg"><img src="brand/areas/t00-tile-light.svg" width="152" height="130" alt="Orientation track lessons"></picture></a>
<a href="lessons/README.md#data-and-statistics"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t01-tile-dark.svg"><img src="brand/areas/t01-tile-light.svg" width="152" height="130" alt="Data and statistics track lessons"></picture></a>
<a href="lessons/README.md#deep-learning-foundations"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t02-tile-dark.svg"><img src="brand/areas/t02-tile-light.svg" width="152" height="130" alt="Deep learning foundations track lessons"></picture></a>
<a href="lessons/README.md#language-models"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t03-tile-dark.svg"><img src="brand/areas/t03-tile-light.svg" width="152" height="130" alt="Language models track lessons"></picture></a><br>
<a href="lessons/README.md#post-training"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t04-tile-dark.svg"><img src="brand/areas/t04-tile-light.svg" width="152" height="130" alt="Post-training track lessons"></picture></a>
<a href="lessons/README.md#inference-systems"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t05-tile-dark.svg"><img src="brand/areas/t05-tile-light.svg" width="152" height="130" alt="Inference systems track lessons"></picture></a>
<a href="lessons/README.md#retrieval-and-rag"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t06-tile-dark.svg"><img src="brand/areas/t06-tile-light.svg" width="152" height="130" alt="Retrieval and RAG track lessons"></picture></a>
<a href="lessons/README.md#agents-and-protocols"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t07-tile-dark.svg"><img src="brand/areas/t07-tile-light.svg" width="152" height="130" alt="Agents and protocols track lessons"></picture></a><br>
<a href="lessons/README.md#ai-engineering"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t08-tile-dark.svg"><img src="brand/areas/t08-tile-light.svg" width="152" height="130" alt="AI engineering track lessons"></picture></a>
<a href="lessons/README.md#evaluation-and-governance"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t10-tile-dark.svg"><img src="brand/areas/t10-tile-light.svg" width="152" height="130" alt="Evaluation and governance track lessons"></picture></a>
<a href="lessons/README.md#ai-for-science"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/areas/t12-tile-dark.svg"><img src="brand/areas/t12-tile-light.svg" width="152" height="130" alt="AI for science track lessons"></picture></a>
</p>
- **[Orientation](lessons/README.md#orientation)** · 4 lessons. Start from nothing, on a laptop. Measure what code costs on an 8 GB machine, keep a model registry honest through a model swap, and write one client for three backends. Start with [The 8 GB track](lessons/T00-L01-the-8gb-track/lesson.ipynb).
- **[Data and statistics](lessons/README.md#data-and-statistics)** · 2 lessons. Statistics by simulation: sampling distributions, bootstrap intervals, permutation tests and power, the habits every later lesson leans on. Start with [Statistics by simulation](lessons/T01-L01-statistics-by-simulation/lesson.ipynb).
- **[Deep learning foundations](lessons/README.md#deep-learning-foundations)** · 2 lessons. Build automatic differentiation from scratch, a scalar engine and a tensor engine, and the gradient check that keeps both honest. Start with [Autodiff from scratch](lessons/T02-L01-autograd-from-scratch/lesson.ipynb).
- **[Language models](lessons/README.md#language-models)** · 3 lessons. Tokenisers from scratch, the BPE merge loop in C++, and a language model trained on a CPU with numpy alone. Start with [Byte-level BPE from scratch](lessons/T03-L01-bpe-from-scratch/lesson.ipynb).
- **[Post-training](lessons/README.md#post-training)** · 8 lessons. Post-training from scratch: GRPO in numpy on a tiny model, and the traps that make a reward mislead you, measured. Start with [GRPO from scratch on a tiny model](lessons/T04-L01-grpo-from-scratch/lesson.ipynb).
- **[Inference systems](lessons/README.md#inference-systems)** · 4 lessons. Serve a language model on modest hardware: a KV cache, paging and continuous batching on a CPU, and what each one buys. Start with [Serving a small model on a CPU](lessons/T05-L01-serving-on-a-cpu/lesson.ipynb).
- **[Retrieval and RAG](lessons/README.md#retrieval-and-rag)** · 4 lessons. Build search and RAG you can measure: retrieval, chunking, the context budget, reranking and agent memory. Start with [Retrieval from scratch](lessons/T06-L01-retrieval-from-scratch/lesson.ipynb).
- **[Agents and protocols](lessons/README.md#agents-and-protocols)** · 10 lessons. Build AI agents that hold up: the agent loop from scratch, MCP and A2A from the wire up, evaluation with intervals, and constrained decoding. Start with [The agent loop from scratch](lessons/T07-L01-agent-loop-from-scratch/lesson.ipynb).
- **[AI engineering](lessons/README.md#ai-engineering)** · 4 lessons. Run agents like production software, with OpenTelemetry traces and a cost-per-task report rebuilt from the traces alone. Start with [Observability for agents](lessons/T08-L01-agent-observability/lesson.ipynb).
- **[Evaluation and governance](lessons/README.md#evaluation-and-governance)** · 8 lessons. Measure models honestly: an EU AI Act evidence pack, evaluation across languages, and a mini arena whose ratings carry intervals. Start with [The conformity evidence pack](lessons/T10-L01-ai-act-conformity-pack/lesson.ipynb).
- **[AI for science](lessons/README.md#ai-for-science)** · 2 lessons. Do AI for science on real data: find the first gravitational wave in the raw LIGO data, and model rainfall to runoff honestly. Start with [Find GW150914 in the raw LIGO data](lessons/T12-L01-find-gw150914/lesson.ipynb).
<!-- STATUS:END -->
## What's coming
<!-- COMING:BEGIN generated by tools/status.py; do not edit -->
New lessons three times a week, every Monday, Wednesday and Friday. Watch or star this repository to hear about each one as it lands.
<p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/roadmap-dark.svg"><img src="brand/readme/roadmap-light.svg" width="380" alt="Roadmap. September 2026, done: Document intelligence for regulated operations. October 2026, done: AI agents and the protocols they speak. November 2026, under way now: The credit decisions and the proteomics and multiomics programmes continue. December 2026, to come: Deeper courses in the industries we already cover."></picture></p>
- **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.
<!-- COMING:END -->
## 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.
<p align="center">
<picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/flow-1-open-dark.svg"><img src="brand/readme/flow-1-open-light.svg" width="156" height="172" alt="Step 1, open: the notebook opens in any of four services."></picture>
<picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/flow-2-run-dark.svg"><img src="brand/readme/flow-2-run-light.svg" width="156" height="172" alt="Step 2, run all: every cell runs, and unfinished exercises show as not started."></picture>
<picture><source media="(prefers-color-scheme: dark)" srcset="brand/readme/flow-3-fill-dark.svg"><img src="brand/readme/flow-3-fill-light.svg" wid