(opens in new tab)
pasqualepillitteri.it
Tutorial
Tokens and context window, how the LLM really works
Translated title. Original: Tokeny i okno kontekstowe, jak naprawdę działa LLM
The document describes how LLMs rely on tokens and context windows, detailing tokenization, costs, and how language and formatting affect token counts. It explains that models predict the next token, with tokenizers (including OpenAI and Hugging Face variants) converting text into token sequences, and that BPE underlies most tokenizers.