Skip to content

Tokenizer

The component that splits raw text into tokens the model can process, and converts them back to text.

Most modern tokenizers use subword schemes like BPE, so a rare word may split into several tokens while common words stay whole. This is why token counts differ across languages for the same meaning.

Related resources