Learning and cookbooks

Courses, cookbooks and guides with runnable code, for learning to build with AI.

generative-ai-for-beginners leads with 80, ahead of ai-engineering-from-scratch (75) and llms-from-scratch (74). 8 projects ranked by score. Updated from public GitHub data.

The ranking

Learning and cookbooks: full ranking
RankProjectAdoptionFreshnessMaintenanceEasy to runAgent-readyScore
1generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript121.3k starsMITlast commit Oct 20269610062–3080 out of 100
2ai-engineering-from-scratchHands-on curriculum for building AI systems from math to agents68.4k starsMITlast commit Oct 20263910095–4575 out of 100
3llms-from-scratchCode for the book on building a GPT-style LLM in PyTorch106.5k starscustom licenselast commit Oct 20268810058–074 out of 100
#4hello-agentsChinese-language course on building LLM agents from scratch82.9k starscustom licenselast commit Oct 20267110070–072 out of 100
#5ai-agents-for-beginners18-lesson course on building AI agents with Microsoft Agent Framework77.1k starsMITlast commit Oct 20266310060–3070 out of 100
#6openai-cookbookExample notebooks and guides for building with the OpenAI API76.6k starsMITlast commit Oct 20265510050–3065 out of 100
#7ai-for-beginners12-week, 24-lesson AI curriculum with PyTorch and TensorFlow notebooks Live demo ↗ (opens in a new tab)69.7k starsMITlast commit Sep 20264710059–3065 out of 100
#8llm-courseFree LLM course with roadmaps and Colab notebooks for fine-tuning and quantization83.6k starsApache-2.0last commit Feb 202678420–036 out of 100

Momentum, Verified build, Docs and Privacy are not measured yet; their weight goes to the signals shown. A dash means the signal is not scored for that kind of project. Hover a number for its rating in words.

Reviews

180 out of 100

generative-ai-for-beginners

21-lesson course on building generative AI apps in Python and TypeScript

121.3k starsMITlast commit Oct 2026

A Microsoft Cloud Advocates course of 21 lessons, each a README with a short video and code samples, split into "Learn" concept lessons and "Build" lessons. Topics include prompt engineering, text and chat apps, embeddings search, image generation, function calling, RAG, agents, fine-tuning, and small, Mistral and Meta models. Code targets Azure OpenAI, OpenAI API, Microsoft Foundry Models or Foundry Local.

Strengths

  • Build lessons ship code in both Python and TypeScript where possible
  • Covers RAG, function calling, agents, fine-tuning and security in one sequence
  • Lessons are independent, so you can start at any number
  • MIT license; translations into 50+ languages

Weaknesses

  • Samples assume Azure OpenAI, OpenAI API or Foundry access, which may need paid accounts
  • Several lessons list video as coming soon
  • Cloning includes 50+ translations, so sparse checkout is needed for a small download
  • GitHub Models lessons are tied to a service retiring end of July 2026
  • no GPU
  • Needs Azure OpenAI Service, OpenAI API, Microsoft Foundry Models, Foundry Local, GitHub account
  • Models: Azure OpenAI, OpenAI, Microsoft Foundry Models, Foundry Local, Hugging Face open models
275 out of 100

ai-engineering-from-scratch

Hands-on curriculum for building AI systems from math to agents

68.4k starsMITlast commit Oct 2026

A course of 528 lessons across 20 phases, covering math foundations, ML fundamentals, LLM engineering, agents, tools and protocols, and production infrastructure. Lessons are runnable code in Python, TypeScript, Rust and Julia, with three graded projects: retrieval evaluation, agent trace debugging and a tool-call firewall. It can be followed on the website, from a local clone, or through tutor skills installed into a coding agent.

Strengths

  • Lessons ship runnable code; the first ones need only python3 and no extra dependencies
  • Three staged projects with local graders (project_test.py --strict) and reference solutions
  • Tutor skills install via npx skills and save progress to LEARNING.md
  • Code in Python, TypeScript, Rust and Julia; README translated into 30+ languages

Weaknesses

  • 528 lessons is a large scope; total study time is not stated in the visible README
  • Project starters fail by design until you implement the stages
  • Tutor skills need Node.js, npx and a skill-capable coding agent host
  • GPU and RAM needs for later phases are not stated in the visible README
  • Needs Python 3.10+, Node.js 22.18+ (TypeScript project), Rust (Tool Call Firewall project), npx (optional, tutor skills)
374 out of 100

llms-from-scratch

Code for the book on building a GPT-style LLM in PyTorch

106.5k starscustom licenselast commit Oct 2026

Official code for the Manning book "Build a Large Language Model (From Scratch)". Notebooks and scripts implement tokenization, attention, a GPT model, pretraining, classification finetuning, instruction finetuning and LoRA in plain PyTorch, without external LLM libraries. Bonus folders add from-scratch Llama 3.2, Qwen3, Gemma 3, Olmo 3, KV cache, MoE and DPO.

Strengths

  • Main chapter code runs on a conventional laptop and uses a GPU automatically if present
  • Plain PyTorch with no external LLM libraries, so every component is readable
  • Bonus material covers KV cache, GQA, MoE, DPO and several model architectures
  • Exercise solutions, a companion video course and CI tests on Linux, Windows and macOS

Weaknesses

  • Tied to a print book; contributions extending main chapter code are not accepted
  • Produces a small educational model, not a production-grade LLM
  • License is reported as NOASSERTION; the README states no license terms
  • Video course and quiz PDF are hosted by the publisher, not in the repo
  • GPU optional
  • Needs PyTorch, Jupyter, Ollama (optional, ch07 evaluation)
  • Models: GPT-2, Llama 3.2, Qwen3, Gemma 3, Olmo 3
#472 out of 100

hello-agents

Chinese-language course on building LLM agents from scratch

82.9k starscustom licenselast commit Oct 2026

A 16-chapter Chinese tutorial from Datawhale covering agent fundamentals, ReAct, Plan-and-Solve and Reflection, low-code platforms (Coze, Dify, n8n) and frameworks (AutoGen, AgentScope, LangGraph). Later chapters build a custom framework on the OpenAI API and cover memory, RAG, context engineering, MCP/A2A/ANP, Agentic-RL (SFT to GRPO) and evaluation. Chapter code is in the repo's code folder.

Strengths

  • 16 chapters from theory to capstone, with runnable code in the code folder
  • Includes an Agentic-RL chapter going from SFT to GRPO training
  • Builds a custom agent framework on the OpenAI API, not only framework usage
  • Free online reading and PDF download, plus extra chapters on interviews and skills

Weaknesses

  • Written in Chinese; an English README is linked separately
  • License is CC BY-NC-SA 4.0, which bars commercial use
  • Assumes basic Python and experience calling an LLM API
  • Hardware and model requirements for the exercises are unknown
  • Needs OpenAI-compatible LLM API
  • Models: OpenAI API
#570 out of 100

ai-agents-for-beginners

18-lesson course on building AI agents with Microsoft Agent Framework

77.1k starsMITlast commit Oct 2026

A Microsoft course of 18 lessons on building AI agents, each with a written README, a short video for most lessons, and Python code samples in Jupyter notebooks. Topics include tool use, agentic RAG, planning, multi-agent patterns, memory, MCP/A2A/NLWeb protocols, computer-use agents, local agents and securing agents. Samples use Microsoft Agent Framework with Microsoft Foundry Agent Service V2, and some also support OpenAI-compatible providers such as MiniMax.

Strengths

  • Each lesson is standalone, so you can start at any topic
  • Covers design patterns plus MCP, A2A, NLWeb, memory and deployment
  • Text, short videos and runnable Python samples per lesson
  • 50+ language translations kept current by GitHub Action

Weaknesses

  • Samples are built around Microsoft Agent Framework and Foundry, which need an Azure account
  • Some later lessons have no video
  • Cloning pulls large translation folders unless sparse checkout is used
  • Alternative provider support is only partial, per the README
  • no GPU
  • Needs Microsoft Foundry (Azure account), Microsoft Agent Framework, Microsoft Foundry Agent Service V2
  • Models: Microsoft Foundry models, OpenAI-compatible providers (MiniMax)
#665 out of 100

openai-cookbook

Example notebooks and guides for building with the OpenAI API

76.6k starsMITlast commit Oct 2026

Collection of runnable Jupyter notebooks and guides showing common tasks with the OpenAI API. Most examples are in Python, and the README says the concepts apply to other languages. Running them requires an OpenAI account and an API key set as OPENAI_API_KEY. The guides are also browsable at cookbook.openai.com.

Strengths

  • Maintained by OpenAI, so examples track the official API
  • Runnable notebooks; API key is read from OPENAI_API_KEY or a .env file
  • Also browsable as a site at cookbook.openai.com
  • MIT license

Weaknesses

  • Requires an OpenAI account and API key; examples do not target local models
  • Most examples are Python only
  • README does not list topics, versions or per-notebook dependencies
  • No tagged releases
  • no GPU
  • Needs OpenAI API key, Jupyter
  • Models: OpenAI API models
#765 out of 100

ai-for-beginners

12-week, 24-lesson AI curriculum with PyTorch and TensorFlow notebooks

Live demo ↗ (opens in a new tab)69.7k starsMITlast commit Sep 2026

A Microsoft course that teaches AI from symbolic and expert systems through neural networks, computer vision, NLP, genetic algorithms, reinforcement learning, multi-agent systems and ethics. Lessons pair text with Jupyter notebooks in PyTorch and/or TensorFlow/Keras, and several have labs. Translations into 50+ languages are generated by a GitHub Action.

Strengths

  • Covers symbolic AI, deep learning, vision, NLP, RL and ethics in one ordered path
  • Most lessons have both PyTorch and TensorFlow/Keras notebooks
  • Labs for many lessons, plus a Binder badge to run notebooks in the browser
  • 50+ automated translations; MIT license

Weaknesses

  • NLP stops at transformers/BERT and GPT basics; README admits it lags the state of the art
  • Excludes classic ML, cloud services and deep math; it points to other courses
  • Not every lesson has a lab; some notebooks are TensorFlow-only or PyTorch-only
  • Translations inflate clone size; sparse checkout is needed to skip them
  • Needs Jupyter, PyTorch, TensorFlow, Keras, OpenCV
#836 out of 100

llm-course

Free LLM course with roadmaps and Colab notebooks for fine-tuning and quantization

83.6k starsApache-2.0last commit Feb 2026

A three-part course covering LLM fundamentals (math, Python, neural networks), an LLM Scientist track on building models, and an LLM Engineer track on building and deploying applications. It pairs roadmaps and curated links with Colab notebooks and articles on fine-tuning (Unsloth, ORPO, DPO, QLoRA, Axolotl), quantization (GGUF, GPTQ, EXL2) and model merging with MergeKit.

Strengths

  • Runnable Colab notebooks for fine-tuning, quantization and merging, most with a linked article
  • Separate tracks for fundamentals, model building and application deployment
  • Quantization notebooks cover GGUF, GPTQ, EXL2, AWQ and HQQ
  • Free to use under Apache-2.0

Weaknesses

  • Mostly curated external links rather than self-contained lessons
  • Several notebooks target older models such as Llama 2 and Mistral-7b
  • Notebooks run on Google Colab or RunPod, not a documented local setup
  • Coverage reflects one author's selection of topics and resources
  • GPU optional
  • Needs Google Colab, RunPod, Hugging Face
  • Models: Llama 3.1, Llama 3, Llama 2, Mistral-7b, CodeLlama

Written from each project's README and checked facts. Spot something wrong? Report it on GitHub (opens in a new tab).