Index

Module 03 · AIPast the basics

Looking Inside the Model

Tokens and Embeddings
Tokens and Embeddings · Open board

The Tokens and Embeddings board ends on a map where directions mean things. This lesson hunts for such arrows deep inside a trained model, where nobody drew or labelled them.

Before you start. What a Neural Network Is showed that a network is layers of neurons, each multiplying inputs by weights and adding them up. Training sets billions of those weights, and nobody writes them. Tokens & Embeddings showed that each word is stored as a list of numbers, and moving in one direction through that list changes one meaning, such as male to female. Precision and Recall (where to set the spam filter's bar) built a spam filter: a weighted sum, squashed into a 0-to-1 score, then a threshold that says yes or no. Attention & the Transformer showed a transformer is a stack of layers, each handing the next a row of numbers per word.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Lab

One sentence, one tokenizer, a vocabulary you can grow. How many tokens does it cost?

Drag How many pieces it knows left to right, then open the tab Another script, and an emoji, and watch How many tokens.

Open Tokens and embeddings →

Related paper

Review AI →

Saved in this browser, and to your account when you sign in.