A model reads text as tokens, which are subword pieces cut by a fixed splitting rule. Token counts govern cost and fit, so this topic teaches counting, splitting and estimation.
Unit | Meaning |
|---|---|
Character | One text character. It is stable across tools, but a model does not consume it directly. |
Word | A whitespace-separated span. It is a rough human unit, not a model unit. |
Token | One subword piece the model consumes. Its boundaries vary by model, so measure them. |
Lesson | What it covers |
|---|---|
Three units compared, with counts on short fixed examples. | |
The merge idea plus a small runnable trainer. | |
Code, identifiers, numbers and other scripts split shorter. | |
Chars-per-token ranges, stated as approximate and variable. | |
Count characters, divide by a stated rate, add margin. |
Chars per token is approximate and tokenizer-dependent. A quotient is a range until measured on the actual splitter, so the count varies by model.