Tokenization is at the heart of much weirdness of LLMs. Do not brush it off.


Good tokenization web app: https://tiktokenizer.vercel.app

what is tokenization?

Tokenization in natural language processing splits raw text into smaller pieces across sentence-level, word-level, subword-level, and character-level granularities

what is byte level tokenization? and why it is ?

Byte-level tokenization treats text as a sequence of raw bytes (0 to 255) rather than characters. It is the core mechanism used by modern Large Language Models (LLMs) like GPT-4, Llama, and Mistral to convert text into numbers.

Why Byte-Level Tokenization Matters