Tokenizer Vocabulary
Definition
Tokenizer Vocabulary — a fixed set of units (tokens) into which the Tokenizer breaks down the input text. The size of the vocabulary directly affects the number of parameters in the embedding layer and the model's output layer.
Properties
| Parameter | Influence |
|---|---|
| Vocabulary Size | Larger — shorter sequences, more parameters |
| Language Coverage | Affects the number of tokens for non-English text |
| Special Tokens | Control roles, boundaries, tools |
Special Tokens
<bos>,<eos>— sequence boundaries.<pad>— batch alignment.<|user|>,<|assistant|>— roles in Chat Template.<|tool_call|>— markers for Tool Calling.
Impact on Cost
The number of tokens defines the Token Budget and the cost of a request. Poor language coverage increases the token usage for the same text.