Natural Language Processing

Follow text on its way through a language model: split into tokens, mapped to vectors, and turned back into words one sampled token at a time.

Key concepts

Tokenization

Text is split into subword pieces from a learned vocabulary before a model sees it

Embeddings

Each token becomes a vector, and similar meanings end up close together

Language Models

Predict a probability for every possible next token

Decoding

Temperature, top-k and top-p decide how the next token is picked from those probabilities

Visualizations