Gradient LabSign up free

ML glossary › Token

What is token in machine learning?

A small piece of text, like a word or part of a word, that a language model reads.

Where it shows up

Sequences and text

Tokenization

Modern models split text into tokens: common words stay whole, rarer ones break into familiar pieces like “un” + “believ” + “ably”. Any text at all can be built from a vocabulary of tens of thousands of pieces.

See token in motion. The lesson animates it step by step, free.

Open the lesson

Related terms