Why Can’t LLMs Count the R’s in “Strawberry”?
Why LLMs famously miscounted the r’s in strawberry, what tokenization hides from the model, and why newer models get it right.
The Blog
Articles tagged Python.
Why LLMs famously miscounted the r’s in strawberry, what tokenization hides from the model, and why newer models get it right.
What the KV cache is, why it makes LLMs fast, why the first token is slow, and why long contexts cost so much memory.
What temperature, top-k and top-p actually do when an LLM picks its next token, how they differ, and which values to use for your tasks.