Tokenization
Properties
created
Empty
modified
18.07.2026, 16:33
published
Empty
topics
Tokenization
authors
Empty
ai-assisted
No
Tokenization is the process of converting text into a sequence of tokens, which can be words, subwords, or characters. These tokens are the smallest units of meaning in a text that can be processed by a language model. For example, the sentence “Hello, world!” can be tokenized into ,[“Hello”, “,”, “world”, “!”]. Tokenization simplifies the text and allows the model to work with manageable chunks of data.
In the LLM pre-training and inference workflows, after the tokenization, each token is assigned a unique integer. For each integer, there is a corresponding row in a lookup table, which is the vector representation of that token. This vector is then used as input for a particular token in the language model.