AnyLearn
All lessons

AI lessons & courses

230 lessons · 60 learning paths · free, quiz-checked, no signup required

How modern AI systems actually work, from the transformer architecture and attention up through retrieval, agents, evaluation, and deployment. The lessons are mechanism-first: what the math does, what the engineering trade-offs are, and where the published evidence stands. Written for engineers and technical leaders who want depth beyond the headlines.

Learning paths

Browse all 60 paths
AI
advanced

World Models: Learned Simulators for Planning and Training

A world model predicts what happens if an agent acts, so it can rehearse in imagination before acting for real. This cursus builds the idea from a working planner in code, through agents that learn inside compact latent dreams (World Models, PlaNet, Dreamer, MuZero), to interactive generative worlds learned from video, like Genie. It ends where the stakes are physical: training and testing robots and cars in learned simulators, and the failure modes, compounding error, exploited model errors, hallucinated physics, that decide when a simulator can be trusted.

4 lessons · certificate
AI
advanced

Continual Learning: Why Neural Networks Forget and How to Stop It

Train a network on something new and it often loses what it already knew. This cursus explains why, from conflicting gradients on shared weights to the stability-plasticity dilemma, then takes apart the three families of fixes: replay, regularisation such as EWC, and parameter isolation with adapters. You will learn to evaluate claims honestly across task-, domain- and class-incremental settings, and finish with large language models: continued pretraining, fine-tuning drift, LoRA, and when editing or retrieval beats training.

4 lessons · certificate
AI
advanced

Harness Engineering: Building the World an AI Agent Works In

The same model can score 15 points apart depending on what surrounds it. This course teaches the environment around an AI agent: how interface design and harness choice move results, how to make a repository legible with short instruction files and lint rules that explain their own fixes, how permissions, hooks and OS sandboxes contain an agent, and how to test a harness change with repeated trials, paired comparisons and pass^k instead of one lucky run.

4 lessons · certificate
AI
intermediate

Machine Learning Fundamentals: From Examples to Trustworthy Models

Most machine learning in production is a supervised model on a table of features, and most of its failures are in evaluation rather than in the algorithm. This path teaches how a model is fitted from examples, how to measure what it learned without fooling yourself, how to judge a classifier when the event you care about is rare, and why tree ensembles remain the default on tabular data. Every chart uses numbers you can reproduce in scikit-learn.

4 lessons · certificate
AI
advanced

Deep Learning on Limit Order Book Data

At a one-event horizon, 92 percent of mid-price labels are exactly no-change, so a model that always predicts flat scores 92 percent accuracy. That single number explains most of the gap between published order book results and what happens on a trading desk. This path covers what the book actually contains, what the architectures assume, why results fail to replicate, and the cost hurdle that decides whether a real edge is worth anything.

4 lessons · certificate
AI
advanced

Reinforcement Learning for Trade Execution and Market Making

A classical execution schedule is an open-loop policy: it commits to a plan before seeing anything, and reinforcement learning's entire value here is closing that loop. This path measures what closing it is actually worth, shows how a mis-sized penalty makes leaving part of the order unexecuted rationally optimal, and demonstrates that one unverifiable queue assumption moves the simulated fill rate by a factor of two. Every figure is computed.

4 lessons · certificate

All AI lessons

AI
advanced

Speculative decoding: making LLM inference faster without changing the output

How draft-then-verify decoding gets multiple tokens per forward pass of a large model, why rejection sampling makes it provably lossless, and where the draft comes from (small models, Medusa heads, self-speculation, EAGLE trees).

12 steps·~18 min
AI
advanced

Loop engineering: verification, orchestration, and anti-patterns

Make loops trustworthy. Adversarial verification panels, sub-agent orchestration, loop-until-dry for unbounded discovery, loop-until-budget for paid depth, multi-modal sweeps with diverse prompts, eval-driven cap selection, and the five anti-patterns — silent caps, infinite plans, drift, premature termination, thrashing — that ship to prod more than they should.

9 steps·~14 min
AI
intermediate

Loop engineering in production: state, errors, and budgets

Once an agent loop runs past a few iterations the failure surface shifts: state bloats, tool calls fail in three distinct ways, retries multiply if you stack them wrong, and unbounded budgets rack up four-figure bills overnight. The state, errors, and budgets you need to make the loop survive contact with reality.

8 steps·~12 min
AI
beginner

Loop engineering basics: the agent control loop

How LLM agents actually run: the iterative prompt-action-observation loop, the ReAct shape, the smallest tool-calling loop in twelve lines, why you always stack three termination layers, what the model sees on iteration N, and when a single prompt is the better answer.

8 steps·~12 min
AI
intermediate

LLM Observability with OpenTelemetry: GenAI Semantic Conventions

Master the OTel GenAI semantic conventions — gen_ai.* attributes, span structure for prompts/completions/tools, sampling strategies, and cost attribution — and understand why standardizing across LangSmith, Phoenix, Datadog, and Grafana matters for production AI systems.

13 steps·~20 min
AI
intermediate

RAG Evaluation in Production: Metrics, Tools, and Cadence

Learn how to systematically evaluate Retrieval-Augmented Generation systems in production using RAGAS, TruLens, and Phoenix — covering golden sets, retrieval drift, embedding drift, and cost-aware eval scheduling.

12 steps·~18 min
AI
intermediate

Evaluating AI Agents: From Final Answers to Full Trajectories

A rigorous look at how to measure agent performance — trajectory-level vs final-answer evals, canonical multi-step benchmarks (SWE-bench, WebArena, OSWorld, GAIA), LLM-as-judge pitfalls, and why your eval is your spec.

12 steps·~18 min
AI
advanced

RL in Reasoning Models: How o1, DeepSeek-R1, and Friends Think

A deep look at how reinforcement learning on chains-of-thought powers o1, DeepSeek-R1, Claude reasoning, and Gemini Thinking — covering GRPO, MCTS-style search, test-time compute scaling, and distillation into smaller models.

13 steps·~20 min
AI
advanced

RLVR and GRPO: Training LLMs with Verifiable Rewards

How Group Relative Policy Optimization turns unit tests and theorem provers into training signals — the technique behind DeepSeek-R1's leap in math and code reasoning without a reward model.

12 steps·~18 min
AI
advanced

Direct Preference Optimization: DPO, IPO, KTO, and SimPO

A deep dive into DPO (Rafailov et al. 2023) and its successors — how they reformulate RLHF as a classification problem, the math behind the implicit reward, and where each variant wins or loses against PPO-based pipelines.

12 steps·~18 min
AI
advanced

RLHF: From Christiano 2017 to InstructGPT to the Offline Era

Trace the full arc of Reinforcement Learning from Human Feedback — preference data, Bradley-Terry reward models, PPO with KL penalty, reward hacking, and why most labs have moved to offline alternatives like DPO and RAFT.

12 steps·~18 min
AI
advanced

Reinforcement Learning in 2026: Where It Ships and Where It Stalls

An honest map of RL in 2026 — the domains where it actually reaches production (LLM post-training, robotics policies, ad bidding, RLHF, reasoning models) and the places where it still cannot reliably cross the lab-to-deployment gap.

12 steps·~18 min
AI
intermediate

LLM Inference Internals: KV Cache, Sampling, and Serving at Scale

A deep dive into how large language models actually run in production — why prefill is fast and decode is slow, how the KV cache works, sampling strategies like temperature and top-p, speculative decoding, and continuous batching with vLLM.

12 steps·~18 min
AI
intermediate

LLM Post-Training: SFT, RLHF, DPO, and Modern Alignment Recipes

A deep dive into how raw pretrained language models become helpful assistants — from supervised fine-tuning on curated demonstrations, through reward modeling and PPO-based RLHF, to modern direct alignment methods like DPO and the recipes used in Llama 3, Llama 4, and DeepSeek.

12 steps·~18 min
AI
intermediate

LLM Scaling Laws: From Kaplan to Chinchilla and Beyond

How two landmark papers — Kaplan et al. 2020 and DeepMind's Chinchilla 2022 — rewrote our understanding of compute-optimal training, why the industry now deliberately overtrains models, and how inference costs flip the math entirely.

12 steps·~18 min
AI
intermediate

Modern LLM Architectures: From Decoder-Only to Mixture-of-Experts

A deep tour of the architectural choices powering today's large language models — decoder-only Transformers, encoder-decoder designs, grouped-query attention, RoPE positional embeddings, and mixture-of-experts routing — with concrete numbers and trade-offs.

12 steps·~18 min
AI
intermediate

LLM Pretraining: Data, Loss, and What Actually Happens

A deep dive into how large language models learn from raw text: the next-token prediction objective, cross-entropy loss, the messy reality of web data curation (Common Crawl, dedup, quality filters), and the lineage from The Pile to FineWeb.

12 steps·~18 min
AI
intermediate

LLM Tokenization in Depth: BPE, Byte-Level BPE, and SentencePiece

A rigorous tour of how modern LLMs split text into tokens — covering byte-pair encoding, GPT-2/Llama's byte-level variant, SentencePiece, vocabulary design trade-offs, and why your tokenizer silently determines multilingual fairness, code quality, and arithmetic ability.

12 steps·~18 min
AI
advanced

Context Engineering for Long-Running Agents

How to manage, compress, and strategically fill the context window in long-horizon agents — covering summarization checkpoints, scratchpad memory, retrieval injection, prompt caching, and compaction triggers.

12 steps·~18 min
AI
advanced

Tool Use Patterns: Schema Design, Structured Output, and Validation Loops

A deep dive into designing tool schemas that LLMs actually call correctly — covering parameter naming, description quality, structured output via response schemas, output parsing, and error message design that drives self-correction.

14 steps·~21 min
AI
advanced

Subagents and Multi-Agent Orchestration Patterns

A practical deep-dive into fan-out, pipeline staging, judge panels, adversarial verification, and loop-until-dry — plus an honest accounting of when spawning subagents actually earns its token cost and when it just burns money.

12 steps·~18 min
AI
advanced

Designing a Production Agent Harness

Move beyond toy ReAct loops. Learn how to build a production-grade agent harness with a robust control loop, tool registry, schema validation, retry logic, token budgets, abort signals, and a persistent journal that survives crashes.

11 steps·~17 min
AI
advanced

Building MCP Servers in Python and TypeScript

Learn to build Model Context Protocol servers from scratch using the official Python and TypeScript SDKs. Cover tool schemas, resource URIs, prompt templates, and how Claude Code, Claude.ai, and Cursor consume them.

12 steps·~18 min
AI
advanced

Model Context Protocol: The Open Standard for AI Tool Integration

A deep dive into MCP — Anthropic's open protocol for connecting LLMs to external tools, data, and prompts. Covers JSON-RPC transport layers, the three core primitives, capability negotiation, and how to build a working server from scratch.

12 steps·~18 min