01Chapter 1: Embeddings: representing images and text as vectorsThis chapter assumes basic Python and PyTorch tensor operations. You should also know that neural networks learn numeric representations and that a vector has both a direction and a length.2 min read
02Chapter 2: Cosine similarity and why embeddings are normalizedThis chapter assumes basic Python and PyTorch tensor operations, vector norms, dot products, and neural-network embeddings. You should also know that an embedding is a vector of numbers used to represent an item, such as an image or a sentence.2 min read
03Chapter 3: The idea of a joint image-text embedding spaceThis chapter assumes you know basic Python and PyTorch tensors, neural-network embeddings, dot products, and vector norms. It also assumes you understand that an embedding is a numeric vector representing an input.2 min read
04Chapter 4: CLIP's dual-encoder architectureThis chapter assumes you know basic neural-network layers, vector embeddings, dot products, and PyTorch tensor shapes. You should also understand that a Transformer processes token sequences and that an image encoder converts pixels into learned features.2 min read
05Chapter 5: The image encoder: ResNet and Vision Transformer variantsThis chapter assumes you know basic neural-network layers, tensor shapes, convolutional networks, and Transformers. You should also understand that an embedding is a vector representation of an input.2 min read
06Chapter 6: The text encoder: a Transformer over captionsAssume you know basic neural-network layers, embeddings, softmax, and Transformer self-attention. You should also know that CLIP trains an image encoder and a text encoder to produce vectors in the same space.3 min read
07Chapter 7: Training data: image-text pairs from the webThis chapter assumes you know basic Python and PyTorch, neural-network training, embeddings, and vector similarity. It focuses on how CLIP’s web-scale data shapes what the model learns.2 min read
08Chapter 8: Contrastive learning and in-batch negativesThis chapter assumes basic PyTorch tensor operations, embeddings, softmax, and cross-entropy loss. It also assumes that you know CLIP uses one image encoder and one text encoder. Each encoder maps its input to a vector in the same space.2 min read
09Chapter 9: The symmetric contrastive loss, step by stepAssume you know basic Python and PyTorch tensors, embeddings, dot products, softmax, and cross-entropy loss. You should also know that CLIP has an image encoder and a text encoder. Each encoder turns its input into a vector.2 min read
10Chapter 10: The learned temperature (logit scale)This chapter assumes you know vector normalization, dot products, softmax, and cross-entropy loss. It also assumes the basic CLIP setup: an image encoder and a text encoder produce one vector for each input, and matching image-text pairs should have similar vectors.2 min read
11Chapter 11: Zero-shot classification with text promptsThis chapter assumes that you know Python, PyTorch tensors, softmax, and vector similarity. It also assumes that you understand that CLIP has an image encoder and a text encoder that produce vectors in the same embedding space.2 min read
12Chapter 12: Prompt templates and prompt ensemblingThis chapter assumes that you understand CLIP embeddings, cosine similarity, softmax, and basic PyTorch tensor operations. It also assumes that a pretrained CLIP model can map images and text into the same vector space.2 min read
13Chapter 13: Image-text retrieval and semantic searchThis chapter assumes that you know basic Python and PyTorch tensor operations, vector norms, dot products, and the main idea of CLIP's dual-encoder architecture.2 min read
14Chapter 14: Linear probes and evaluating learned featuresAssume you know basic Python, PyTorch tensors, embeddings, softmax, and cross-entropy loss. You should also understand that a CLIP image encoder maps an image to a vector.2 min read
15Chapter 15: Limitations, biases, and failure modesAssume you know embeddings, cosine similarity, softmax, and the difference between zero-shot classification and a trained classifier. This chapter focuses on when CLIP’s shared image-text space gives misleading results and how to test those failures.3 min read
16Chapter 16: Successors and variants: OpenCLIP, ALIGN, SigLIPThis chapter assumes you understand CLIP's dual-encoder design, normalized embeddings, cosine similarity, and symmetric contrastive loss. The main question here is how later systems change the data, model scale, or training objective.2 min read
17Chapter 17: Using CLIP embeddings in other systemsAssume you know basic Python, PyTorch tensors, cosine similarity, and the CLIP image and text encoders. This chapter focuses on using already-trained CLIP embeddings inside larger applications.2 min read