// Learn AI
An AI course from zero to the frontier
Pick a route for who you are, then follow 10 stages · 43 units. Every unit lists the algorithms, must-read papers, a project and a self-test.
43 unitsabout 385 hours in total223 algorithms with papers129 code & exercise links65 lessons written
01Choose a route
Each route picks the units you need, in order, with total hours and a weekly pace.
0210 stages
From AI literacy to the research frontier. Each step builds on the one before.
03Algorithms Atlas
Open the atlas →223 algorithms in 20 areas, each with its original paper, prerequisites and resources.
04AI papers
Paper radar →New papers every day, a searchable archive and the essentials in reading order.
05Hands-on: code, exercises & tutorials
Every unit links 2–3 free places to practise: browser demos, exercise sets, runnable notebooks and reference code.
06Lessons you can read now
Full lessons already written. The course units link to them.
ⓘ Isi pelajaran lengkap saat ini tersedia dalam bahasa Inggris dan Tionghoa Sederhana.
- 01 What Is a Large Language Model? A plain-language explanation of LLMs: next-token prediction, parameters, training and limits. Pemula 15 menit ✓
- 02 AI, Machine Learning, Deep Learning and Generative AI How the four terms nest inside each other, with one example of each. Pemula 10 menit ✓
- 03 Prompting Basics: Getting Reliable Answers Clear instructions, examples, context and output formats — and where prompting stops helping. Pemula 15 menit ✓
- 04 LLM Hallucination: Causes, Measurement, Detection and Mitigation Confabulation as defined by NIST, the statistical bound for arbitrary facts, evaluations that reward guessing, detection with P(True), SelfCheckGPT and semantic entropy, mitigation with RAG and citation checks, and a verification workflow, with runnable code. Menengah 40 menit ✓
- 05 Python, NumPy and Your Dev Environment Just enough Python, vectorised NumPy and broadcasting, virtual environments, Git and Jupyter/Colab. Pemula 25 menit ✓
- 06 How Machines Learn: Loss Functions and Gradient Descent The core loop of all modern AI training explained with one tiny example. Pemula 18 menit ✓
- 07 Linear Algebra for AI: Vectors, Matrices, Eigendecomposition and SVD Dot products and cosine similarity, matrix multiplication as a linear map, rank and low-rank structure, eigendecomposition, SVD and the Eckart–Young theorem, and their use in embeddings, attention, PCA and LoRA, with a runnable NumPy demo. Menengah 35 menit ✓
- 08 Calculus and Optimization: Gradients, the Chain Rule and Gradient Descent Partial derivatives and gradients, the chain rule, backpropagation and autodiff, learning rate and condition number, momentum, SGD, Adam and AdamW, and convex vs non-convex losses, with runnable NumPy and PyTorch checks. Menengah 35 menit ✓
- 09 Probability, Statistics and Information Theory: Bayes, Maximum Likelihood, Cross-Entropy and KL Distributions and expectation, conditional probability and Bayes' rule, maximum likelihood, entropy, cross-entropy and KL divergence, and softmax temperature, tied to classification losses, sampling, distillation, EM and VAEs, with runnable NumPy and PyTorch checks. Menengah 35 menit ✓
- 10 Overfitting, Generalisation and Data Splits: Cross-Validation, Leakage and Metrics Training, validation and test sets, underfitting and overfitting, regularisation, k-fold and nested cross-validation, data leakage, precision, recall and AUC under class imbalance, and double descent and benchmark contamination, with runnable scikit-learn experiments. Menengah 30 menit ✓
- 11 Trees and Ensembles: Decision Trees, Random Forests and Gradient Boosting CART splits and pruning, bagging and random forests, AdaBoost and gradient boosting, and the objectives and systems design of XGBoost and LightGBM, with a reproducible comparison and SHAP explanation on California Housing. Menengah 40 menit ✓
- 12 Linear Models, Support Vector Machines and Nearest Neighbours: The Perceptron, Margins, the Kernel Trick and kNN The perceptron and linear separability, Ridge and Lasso regularisation, maximum-margin and soft-margin SVMs, the kernel trick (especially RBF and gamma), when naive Bayes is appropriate, and k-nearest neighbours and approximate vector search, with a reproducible accuracy and timing comparison on handwritten digits. Menengah 40 menit ✓
- 13 Unsupervised Learning: k-means, Gaussian Mixtures and EM, PCA, t-SNE and UMAP k-means and k-means++, DBSCAN, Gaussian mixture models and EM, PCA, t-SNE and UMAP, and cluster evaluation with silhouette, BIC and ARI, with runnable scikit-learn and NumPy experiments. Menengah 35 menit ✓
- 14 PyTorch Basics: Tensors, Autograd and the Training Loop Tensors and devices, how autograd computes gradients, DataLoader and the five-step training loop. Menengah 25 menit ✓
- 15 Neural Networks and Backpropagation: Perceptrons, MLPs, Activation Functions and Gradients The perceptron and XOR, multilayer perceptrons, ReLU and GELU, universal approximation, forward and backward propagation, gradient checking, initialisation and vanishing gradients, and the MLP inside Transformers, with runnable NumPy and PyTorch checks. Menengah 35 menit ✓
- 16 Training Deep Networks: Optimisers, Learning-Rate Schedules, Normalisation, Residuals and Regularisation SGD and momentum, Adam and AdamW's decoupled weight decay, Muon, warmup and cosine schedules, BatchNorm, LayerNorm and RMSNorm, residual connections, dropout, gradient clipping and mixed precision, compared with the training settings of the original Transformer and LLaMA, with runnable PyTorch experiments. Lanjutan 40 menit ✓
- 17 From CNNs and RNNs to Transformers: Convolutions, Recurrence, LSTMs, Seq2Seq and the Origins of Attention Convolution, parameter sharing, pooling and receptive fields; LeNet, AlexNet, VGG and ResNet; RNNs, backpropagation through time and vanishing gradients; LSTM and GRU gating; Word2Vec; the Seq2Seq bottleneck and Bahdanau attention; and why Transformers replaced recurrence, with runnable PyTorch experiments. Menengah 40 menit ✓
- 18 Reinforcement Learning Basics: MDPs, Q-Learning, DQN, Policy Gradients, PPO and AlphaZero Markov decision processes, returns and the Bellman equations; value iteration, TD learning and Q-learning; DQN; policy gradients, actor-critic, GAE, TRPO and PPO; continuous control and offline RL; AlphaGo, AlphaZero and MuZero; and how RLHF and GRPO connect RL to LLM post-training, with runnable Gymnasium experiments. Menengah 40 menit ✓
- 19 Tokens and Embeddings: How Text Becomes Numbers Tokenisation (BPE), vocabularies and the vector space where meaning lives. Menengah 15 menit ✓
- 20 Transformers and Attention, Explained Self-attention, queries/keys/values, multi-head attention and the full decoder block. Menengah 25 menit ✓
- 21 Scaling Laws and Emergence Kaplan power laws, Chinchilla compute-optimal training, the emergence debate, test-time compute, and stability techniques (μP, MTP, mixed precision), with a runnable FLOPs estimator. Lanjutan 35 menit ✓
- 22 Modern LLM Architectures: RMSNorm, SwiGLU, RoPE, GQA/MLA, FlashAttention and Long Context How decoder-only LLMs since 2023 differ from the original Transformer: pre-RMSNorm and SwiGLU, RoPE and ALiBi, MHA, MQA, GQA and MLA and their KV-cache cost, FlashAttention, sliding windows, sparse attention and context extension with position interpolation and YaRN, worked through the configs of Llama 3, Qwen3, Mistral 7B and DeepSeek-V3. Lanjutan 40 menit ✓
- 23 MoE and New Architectures: Sparse Experts, Load Balancing, State Space Models, Linear Attention and Hybrids Mixture-of-experts layers (top-k routing, auxiliary losses, the capacity factor, fine-grained and shared experts, auxiliary-loss-free balancing and expert parallelism) with total and active parameters computed for Mixtral, Qwen3 and DeepSeek-V3; S4, Mamba and Mamba-2; linear attention, RWKV, RetNet, Hyena, xLSTM and Gated DeltaNet; hybrids such as Jamba and Qwen3-Next; and diffusion and looped language models. Lanjutan 40 menit ✓
- 24 How LLMs Learn: Pre-training, Fine-tuning and RLHF The three-stage recipe behind ChatGPT-style assistants, and newer methods like DPO. Menengah 25 menit ✓
- 25 Pre-training Data: Collection, Cleaning and Mixing Common Crawl and curated sources, deduplication and quality filters, data mixtures and curricula, and public opt-out/licensing notes, with a runnable dedup and mixing demo. Lanjutan 35 menit ✓
- 26 Fine-tuning in Practice: SFT, LoRA and QLoRA When to fine-tune, how parameter-efficient methods work and how to evaluate the result. Lanjutan 25 menit ✓
- 27 Alignment Methods: Reward Models, RLHF, the DPO Family and Constitutional AI Bradley–Terry reward models, InstructGPT’s SFT, reward-model and PPO pipeline with a KL constraint, the closed-form optimal policy and the derivation of DPO, IPO, KTO, ORPO and SimPO, RLAIF and Constitutional AI, and failure modes such as reward overoptimisation, length bias and sycophancy, with runnable examples. Lanjutan 40 menit ✓
- 28 Reasoning Models: CoT, RLVR, GRPO and Test-Time Compute Chain-of-thought, self-consistency and Tree of Thoughts, outcome vs process supervision, RL with verifiable rewards, GRPO and DAPO, the DeepSeek-R1 recipe and distillation, test-time compute scaling and budget forcing, and CoT faithfulness, with a runnable GRPO advantage demo. Ahli 35 menit ✓
- 29 What Do LLMs Learn Inside? Representations and Interpretability Features, superposition, circuits and world models — what we know and what we don't. Lanjutan 25 menit ✓
- 30 Circuits and Sparse Autoencoders From the two-layer induction-head circuit and toy models of superposition to sparse autoencoders that unpack polysemantic activations, and attribution graphs that trace a single computation on a replacement model. Ahli 45 menit ✓
- 31 Probing, Editing and Steering Models From linear probes and the logit lens to activation patching and causal tracing, then rank-one knowledge editing with ROME and inference-time steering vectors. Ahli 40 menit ✓
- 32 How LLMs Generate Text: Decoding, KV Cache and Quantisation Sampling, temperature, the KV cache, batching and quantisation in one lesson. Menengah 20 menit ✓
- 33 Model Compression: Quantization, Pruning and Knowledge Distillation Affine quantisation and granularity, LLM.int8() and activation outliers, SmoothQuant, GPTQ, AWQ, GGUF, NF4 and BitNet b1.58; magnitude pruning, SparseGPT, Wanda, 2:4 sparsity and structured pruning; knowledge distillation with soft targets, forward and reverse KL, on-policy and sequence-level distillation; with perplexity measurements on Qwen3-0.6B and runnable code. Lanjutan 40 menit ✓
- 34 LLM Serving Engines: PagedAttention, Batching, Prefix Caching Serving metrics, PagedAttention, continuous batching, prefix caching, speculative decoding, PD disaggregation, and deploying and load-testing vLLM/SGLang. Lanjutan 35 menit ✓
- 35 Running LLMs on Your Own Computer Memory math, quantised models and desktop apps for private, offline AI. Menengah 30 menit ✓
- 36 Model Gateways, Routing and Cost Control One API for many models: fallbacks, caching, rate limits and spend tracking. Lanjutan 25 menit ✓
- 37 RAG Explained: Retrieval-Augmented Generation Chunking, embeddings, vector search, re-ranking and grounded answers with citations. Menengah 25 menit ✓
- 38 Vector Databases and Similarity Search Similarity metrics, exact search, IVF and HNSW tuning, PQ and binary quantization with re-scoring, filtered queries and choosing a store, with FAISS recall/latency benchmarks. Lanjutan 30 menit ✓
- 39 Chunking, Hybrid Search and Re-ranking Chunk size, overlap and separators, BM25 + vectors fused with RRF, cross-encoder re-ranking, contextual retrieval and evaluating with nDCG@10/Recall@k, measured on BEIR SciFact. Lanjutan 35 menit ✓
- 40 How AI Agents Work: The Agent Loop Model + tools + loop: observe, think, act, and the patterns that make agents reliable. Menengah 25 menit ✓
- 41 Tool Calling and MCP (Model Context Protocol) How function calling works and how MCP standardises tools for every AI app. Menengah 25 menit ✓
- 42 Agent Planning and Memory Plan-and-execute vs ReAct vs Tree of Thoughts, replanning, Reflexion with external signals, short- and long-term memory, Generative Agents retrieval, MemGPT and context engineering, with runnable code. Lanjutan 35 menit ✓
- 43 A2A and Multi-agent Systems When several agents beat one and what they cost; orchestrator-workers, handoffs, agents as tools, voting and debate; the A2A protocol's tasks, Agent Cards, discovery and security; MAST failure modes, with runnable A2A code. Lanjutan 35 menit ✓
- 44 Sandboxes, Browsers and Computer Use Threat model, isolation layers from OS sandboxes to gVisor and Firecracker, network egress and credentials, browser and computer-use risks, and permission gates, with bubblewrap and Playwright tests. Lanjutan 35 menit ✓
- 45 Agent Evaluation: SWE-bench, OSWorld, τ-bench and pass^k Outcome versus trajectory grading, pass@k and pass^k; SWE-bench, Verified and its retirement, SWE-bench Pro; OSWorld, WebArena, GAIA and METR time horizons; τ-bench user simulation; isolation, cost and anti-cheating, with runnable code. Lanjutan 35 menit ✓
- 46 Vision Transformers and Self-Supervised Vision: ViT, Contrastive Learning, MAE, and Segmentation and Detection From image patches and the Vision Transformer to Swin window attention, Faster R-CNN, YOLO and DETR detection, U-Net and SAM segmentation, and self-supervised methods including SimCLR, MAE, DINOv2 and I-JEPA, with a reproducible patch-grid and NT-Xent example. Lanjutan 45 menit ✓
- 47 Diffusion Models for Images and Video From VAEs, GANs and normalising flows to the DDPM forward process and noise-prediction objective, DDIM and score SDEs, latent diffusion, CFG, DiTs, flow matching, rectified flow, consistency models, ControlNet, and officially documented video generation methods. Lanjutan 45 menit ✓
- 48 LLM Evaluation and Benchmarks: Release Tables, Arena Rankings and Data Contamination How benchmark scores are produced, what MMLU, GPQA, SWE-bench and Chatbot Arena measure, Bradley–Terry rankings with confidence intervals, contamination checks, sampling error, and running lm-evaluation-harness. Menengah 40 menit ✓
- 49 Building Evals for LLM Applications Measurable success criteria, golden datasets from real failures, code/model/human graders, LLM-judge biases and TPR/TNR validation, paired confidence intervals, CI regression with promptfoo and online monitoring, with runnable code. Lanjutan 35 menit ✓
- 50 Prompt Injection and Tool Poisoning: Attack Vectors, Exfiltration, the Agents Rule of Two and Architectural Defenses Direct and indirect injection, carriers and exfiltration channels, MCP tool poisoning, the lethal trifecta and Agents Rule of Two, model/prompt/detection/architecture defenses and adaptive attacks, with runnable detection, permission-gate and test-set code. Menengah 45 menit ✓
- 51 LLM Attack Surface: Jailbreaks, Adversarial Examples, Data Poisoning, Watermarking and Privacy Attacks NIST attack taxonomy, why jailbreaks work, GCG, PAIR and many-shot jailbreaking, FGSM/PGD, poisoning and backdoors, watermark detection, training-data extraction, membership inference and DP-SGD, with runnable FGSM, watermark and DP code. Lanjutan 45 menit ✓
- 52 AI Governance and Regulation: EU AI Act, China, NIST and ISO EU AI Act risk tiers, GPAI obligations, penalties and the timeline revised by the 2026 Digital Omnibus; China's generative AI measures and AI-generated content labelling rules; NIST AI RMF and its generative AI profile; ISO/IEC 42001; and a practical compliance checklist. Menengah 35 menit ✓
- 53 Alignment and Frontier Risks: Oversight, Evaluations and Scaling Policies Specification gaming and reward hacking, scalable oversight (debate, Constitutional AI, weak-to-strong generalization, sandwiching), sleeper agents and alignment faking, dangerous-capability evaluations, and the responsible scaling frameworks of Anthropic, OpenAI and Google DeepMind. Ahli 35 menit ✓
- 54 Tracking the Frontier: Reading and Reproducing Papers Keshav’s three-pass method, a tracking workflow with arXiv, Hugging Face Daily Papers and official conference sites, and a small reproduction guided by the ML reproducibility checklist. Lanjutan 45 menit ✓
- 55 GPUs, Memory and FLOPs: Why AI Needs Them Parallel GEMM and the CUDA thread hierarchy, the Roofline split between compute and bandwidth, unified memory on Apple silicon, and a 16-byte-per-parameter mixed-precision Adam training-memory estimate. Menengah 35 menit ✓
- 56 Distributed Training and Clusters Data parallelism and staged ZeRO/FSDP sharding, Megatron tensor parallelism and GPipe pipeline parallelism, interconnect constraints, checkpointing and failure recovery. Ahli 40 menit ✓
- 57 The AI Chip Landscape NVIDIA and AMD GPUs and the CUDA/ROCm stacks, Google TPUs and custom cloud accelerators, official domestic Chinese accelerator lines, and the U.S. advanced-computing export-control framework. Lanjutan 35 menit ✓
- 58 AI for Science: Graph Networks, Protein Structure, Proofs, and Materials From message-passing graph networks to AlphaFold, AlphaGeometry, materials screening and autonomous labs, with a reproducible four-node GCN calculation. Lanjutan 45 menit ✓
- 59 AI in Finance: Research and Analysis, Risk and Fraud, Trading Limits, and Model Risk Financial text analysis, tabular risk and fraud models, backtest overfitting, and official model-risk guidance (SR 26-2, SS1/23), with a reproducible synthetic-series demonstration. Menengah 35 menit ✓
- 60 AI in Healthcare: Medical Imaging, Clinical Documentation, Drug Discovery, and Evidence Standards Medical image segmentation and classification, clinical language models, computational screening in drug discovery, and the distinction between retrospective accuracy and prospective evidence, including the scope of US FDA and WHO documents, with a reproducible PPV calculation. Menengah 35 menit ✓
- 61 AI in Education: Tutors, Feedback, Detection Limits, and Effective Use Intelligent tutoring and large-scale evaluations, automated scoring and spaced repetition, the limits of detectors and watermarks, and the effect of generative-model access during practice on later unassisted tests, with a reproducible PPV calculation. Pemula 35 menit ✓
- 62 AI for Software Development: Autocomplete, Coding Agents, Review Loops, and Security and Licensing From autocomplete to coding agents: HumanEval and the unbiased pass@k estimator, review loops in a controlled trial, SWE-bench and repository context, and verified security evaluations and official licensing statements, with a reproducible pass@k calculation. Menengah 35 menit ✓
- 63 Designing AI Products Choosing problems that suit AI, automation vs augmentation, error types and stakes-based routing, calibrated trust and overreliance, verifiable citations, human approval points with LangGraph, feedback loops and Microsoft's 18 guidelines, with runnable code. Menengah 30 menit ✓
- 64 AI Business Models and Unit Economics Pricing models (usage, subscription, seat, outcome), inference cost per task, caching, batch and routing, and inference gross margin. Menengah 30 menit ✓
- 65 Open vs Closed Models: Licences and Choosing Open Source AI Definition vs open weights, the terms of Apache 2.0, MIT, Llama 4, Gemma, Mistral research and RAIL licenses, closed-API data retention and model retirement, self-hosting costs and a selection checklist, with runnable scripts. Menengah 30 menit ✓
For AI and developers
- Seluruh kurikulum tersedia dalam JSON: URL, status, sasaran, perangkat lunak terkait, dan sumber tiap pelajaran.
- /api/learn.json · /api/learn/algorithms.json · /llms.txt