Token
Category: Generative AI / LLM
The basic unit of text that language models process, which may represent a word, subword, character, or byte sequence depending on the tokenizer.
Full Explanation
A token is the fundamental unit of text that language models read and produce. Depending on the tokenizer, tokens may correspond to whole words ("hello"), subwords ("un" + "likely"), individual characters, or byte sequences. Most modern language models use subword tokenization, where common words are single tokens and rare words are split into multiple tokens. On average, one token is approximately 3-4 characters or about 0.75 words in English, though this varies significantly across languages. Tokens are central to understanding model capabilities and costs: context window sizes are measured in tokens, API pricing is per token, and generation speed is measured in tokens per second. The token vocabulary typically ranges from 30,000 to 100,000 entries. Understanding tokenization is essential for estimating costs, managing context windows, and debugging unexpected model behavior when words are split in unintuitive ways.
Related Terms
More in Generative AI / LLM
Explore More
- AI Tools Library — Discover AI tools related to Token
- AI Education — Courses to learn about Generative AI / LLM
- AI News — Latest news and updates