AI / LLM Basics Interview Questions
What are Tokens in an LLM?
Tokens are the basic units of text an LLM actually reads and generates, they can be whole words, parts of words, or even single characters, depending on how common that piece of text is.
- A common word like "the" is usually a single token
- A rarer or longer word might be split into two or three tokens, like "unbelievable" becoming "un", "believ", "able"
- Numbers, punctuation, and even spaces can each count as their own tokens
Everything an LLM does, reading a prompt, generating a response, counting against a context window, is measured in tokens rather than words or characters.
More Related questions...