1. Mathematics

  • Basic Maths — logs, exponents, functions, bias, geometry, and trig. Recall what a function and a bias are before any model. The calculus heading at the bottom of this note is the next file.
  • Permutation and combination — order matters versus order does not. Recall the two formulas.
  • Algebra Vectors & matrics — vectors, dot product, span, basis, rank, null space, determinants, eigenvectors. Recall a matrix as a linear transformation. Solving a system is the next note.
  • System of linear equation — Gaussian elimination and singular systems. Recall rank and determinant as the test for “one solution”.
  • Calculs — slope, limits, derivative rules, chain rule, partial derivatives. Recall the chain rule; it is backprop. The perceptron section at the end is the bridge into a loss.
  • Probability — axioms, conditional probability, Bayes, random variables, distributions. Recall Bayes and the difference between a mass function and a density.
  • Statistics — descriptive versus inferential, outliers, five-number summary. Recall mean, variance, and why an outlier matters before you normalize data.
  • Markov Chain — transition probabilities, stationary distribution, then a tiny language-model example. Recall the Markov property: the next step depends on the current state.
  • Information theory — outline of entropy, cross-entropy, KL, mutual information, plus the paper link. Missing: the prose for those terms. The KL walk-through that does exist is inside Generative Modeling.
  • Maths for ML — two external mathematics roadmaps.
  • Information theory — pointer. The paper link lives on the mathematics note.

2. Machine learning concepts

3. Deep learning foundations

  • Deep Learning RoadMap — map from the neuron through training, architectures, and later topics. It is an outline. Where a branch has no note below, that branch is missing as prose.
  • Perceptron — one neuron, then the multi-input formula. Recall weighted sum, bias, activation.
  • Universal Approximation Theorem — enough neurons and a nonlinear activation can approximate a function. Recall why a stack of purely linear layers cannot.
  • Gradient — a one-weight network, a loss, and why training multiplies by the gradient. Recall the sign of the update.
  • Regularization — dropout, batch norm, layer norm, gradient clipping, Weight intilization, residual connections. Recall a residual link as a path that lets the gradient skip layers. The exponentially weighted average example points at Activation functions.
  • Missing: one backprop note. The pieces are Gradient, the backward pass in Convolutional Neural Network, and backpropagation through time in RNN (Recurrent Neural Network).
  • Pytroch — tensors, shapes, and a training step. Use this to redo the perceptron by hand in code.
  • Tensorflow — constants, variables, graphs, and gradients in TensorFlow.
  • Convolutional Neural Network — kernels, padding, stride, pooling, a backward pass, residual block. Recall a kernel as a small sliding dot product.
  • RNN (Recurrent Neural Network) — forward equations, BPTT, RNN shapes, next-word prediction. Recall the hidden state as the memory passed to the next step.
  • Dimensionality Reduction algorithm — PCA, t-SNE, UMAP, Isomap, LLE. Read it with unsupervised learning above.

4. Language, then the transformer

5. Generative models and reinforcement learning

  • Generative Modeling — discriminative versus generative, autoencoders, variational autoencoders, the reparameterization trick, reconstruction loss, and KL. This is the KL lesson the information-theory outline does not contain. Recall the bottleneck as a distribution, not a single point.
  • Reinforcement learning — the agent loop, return, discount, policy, and the moved lesson on state value, action value, and the Bellman equation. Recall return as discounted future reward, and the Bellman equation as “now plus discounted next”.
  • Reasoning in LLM — inference-time scaling, distillation, then the RL pointer, then the illusion-of-thinking notes and the Anthropic chain-of-thought faithfulness notes. Recall test-time compute as spending more search at answer time without changing weights.

6. Training and adapting language models

  • Neurons indepth — the Chinchilla scaling law: parameters and tokens move together. Recall about twenty tokens per parameter for the dense compute-optimal point.
  • PreTraining LLM — a stub. Missing: a pretraining lesson (objective, data, the training loop).
  • LLM DataSets — finetuning data and data quality.
  • Fine-Tunning — read supervised finetuning, then LoRA and QLoRA, then preference alignment and DPO, then Model Merging (SLURP, DeRA, pass-through, mixture of experts). Tool notes (Axolotl, Unsloth, Lamini, Ray) sit in the same file after the methods.
  • LLM Post-Training — table of instruction tuning, chain-of-thought tuning, dialogue, distillation.
  • Large Language Model — 1-bit weights (BitNet). Merging points at Fine-Tunning. The resource list at the bottom is a reading pile.
  • Model Quantization — integer grids, block size, GGUF names, dequantization. Recall quantization as storing weights in fewer bits and dequantizing them for the multiply.
  • Building reasoning model from Scratch — short list: self-consistency, chain of thought, self-refinement. The longer versions are in the prompting stage.

7. Retrieval and RAG

  • Information Retrieval — boolean search, bag of words, TF-IDF, BM25, inverted index, sentence transformers. Recall BM25 as the lexical ranker you compare embeddings against.
  • Vector DB and embedding — dense and sparse vectors, HNSW, IVF, LSH, then specific databases. Recall a vector index as a way to avoid comparing the query to every row.
  • Encoder and reranker — bi-encoder versus cross-encoder. Recall the bi-encoder as “encode once, compare vectors” and the cross-encoder as “score this pair together”.
  • RAG — the retrieve-then-generate loop, chunking, retrieval variants, and the later named systems (fusion, CRAG, LightRAG, HippoRAG, and the rest). Recall the failure mode: the answer is only as good as the retrieved passages. Graph RAG points at the next note.
  • Graph Rag — knowledge-graph definition, then entity extraction, community query, and updates. Recall nodes as entities and edges as relations.
  • Generative AI — unstructured documents into a pipeline, and long-text summarization.
  • Web scraper — which crawler fits a RAG pipeline.
  • LLM strucuted output and Parser — constrained decoding, Pydantic, and document parsers.

8. Prompting, reasoning, and agents

  • Prompt Engineering — prompt patterns, then chain of thought, self-consistency, ReAct, tree of thoughts. Recall chain of thought as writing the intermediate steps in the context. DSPy and the product prompts later in the same note are the applied half.
  • Multi-Step Reasoning with Large Language Models — generate a step, evaluate a step, control a step.
  • Prompt learning — a tool-description conflict that made answers inconsistent.
  • Agents prompts — one source link for an agent prompt builder.
  • Product — one product note.
  • Agent desgin patterns — plan, execute, evaluate, and the loop.
  • LLM Agents — catalog of agent tools and orchestration projects.
  • GenaI protocol — WebMCP, agent-to-agent, and related protocols.
  • Understanding AI — the model writes as if you already share its context.
  • AI in Coding — coding agents and completion tools.
  • AI Content System — content-generation prompts and workflow.
  • LLM Hacking — prompt injection, jailbreaks, and why safety filters miss them. Recall that the model follows the text in the context, including text an attacker put there.

9. Inference and running models

  • How Model is partitioned — config, weights, layer map, tokenizer. Recall that the weights file and the tokenizer are separate artifacts.
  • GPU — streaming multiprocessors, memory for parameters, FLOPs, clusters.
  • LLM Inference — speculative decoding, KV cache, prefix cache, continuous batching, paged attention. Recall the KV cache as “do not recompute keys and values for tokens you already emitted”.
  • Attention And Types — Ring Attention and Flash Attention. Read after the attention section of Transformer.
  • LLM optimization — LMCache.
  • VLLM — GPU and CPU serving notes.
  • Running Model locally — Ollama, llamafile, and the other local runners.
  • Running model on edge — ExecuTorch and on-device runners.
  • Free LLM API — hosted inference endpoints.
  • Model Paramerter — temperature, top-k, top-p. Recall temperature as sharpening or flattening the next-token distribution.

10. Evaluation

  • LLM Observability And Eval — perplexity, precision/recall/F1, SFT and preference evals, LLM-as-judge, agent-as-judge. Recall perplexity as how surprised the model is by the next token.
  • Eval on chat bot — task completion, coherence, and context retention for a chatbot.

11. Memory and context

12. Vision and model case studies