An open-source toolkit for how models read text
BYTES
Most language models never see a single letter. On 7 October a paper in Nature showed how to retrofit them to read raw bytes for under 1 % of the cost of training them. Look at the problem yourself.
FZu9nxS72VUGqCzdezNbPNfbAduMpnoPfY3dUg8pumpUse the arrow keys, scroll, or the bytes at the bottom.
How many r's in strawberry?
Try it
Three ways to read the same text
Bytes
Tokens
Patches
The idea
Keep the middle. Replace the edges.
Figures as reported by the authors and AI2. Sources on the paper slides.
The bill
One sentence, nine languages, nine prices
Measure it
Give a model twenty letter questions
bytewise technical note, 10 October 2026 1 / 3
What a subword model cannot see: hidden letters, uneven prices and entropy patches
The bytewise maintainers
Abstract. Subword tokenizers hide the letters inside each token from the model that reads them. We measure how often that happens with a byte-level BPE tokenizer trained on English: of the letters in a set of character-task words sit inside longer tokens, and a reader that sees only whole tokens answers of seeded character tasks correctly, against 100 % for a reader of letters. The same tokenizer charges up to as many tokens for the same sentence in other languages. A 3-byte entropy model groups English bytes into patches of bytes on average, close to its tokens, while unfamiliar scripts fall back towards one byte per patch. These are the problems byteification addresses [1].
1. Hidden letters. A token's letters are available to a model only through what it learned about that token. For each
occurrence of a letter in a text, hidden() reports whether its token is longer than the letter. Table 1 lists the
share per word.
bytewise technical note 2 / 3
2. Character tasks. tasks() draws seeded questions of five kinds with exact answers. As a lower bound we
answer them as a reader that sees only whole tokens would (tokenGuess()); Figure 1 shows its accuracy per kind.
Real subword models do better, because they learn a lot about the spelling of their tokens: the byteified Bolmo 7B scores
78.6 on the CUTE benchmark against 56.9 for OLMo 3 7B [2].
| Word | Tokens | Letter | Hidden |
|---|
bytewise technical note 3 / 3
3. Patches. Byte-level models avoid long sequences by grouping bytes. We count which byte follows each run of up to three bytes and start a patch where the next byte's entropy rises by more than 0.6 bits or exceeds 6 bits. Figure 2 shows the average patch length per language: long in the language the model knows, near one byte elsewhere.
4. Limits. The tokenizer and byte model are trained on 6 KB of English and are far smaller than production ones; their absolute numbers are illustrative, the patterns are not. The token-only reader is a lower bound, not a model. Byteified models learn their patch boundaries; ours are counted.
- Minixhofer et al., "Retrofitting language models to operate over bytes," Nature, 7 October 2026; news: Nature News & Views, LMU via Newswise.
- "AI2's Bolmo byteified language model," WinBuzzer, 16 December 2025. winbuzzer.com
- "Allen AI retrofits OLMo, Qwen3, Llama 3 to byte-level models," AI Weekly, 8 October 2026. aiweekly.co
Use it
Four lines to see what a tokenizer does
JavaScript, Node or browser
Command line
$ bytewise view "Byteification sees every letter" $ bytewise hidden strawberry r $ bytewise languages $ bytewise tasks --n 20 --seed 1 --out tasks.json $ bytewise grade tasks.json answers.json $ bytewise train my-text.txt --vocab 2000
grade exits with code 3 when any answer is wrong, so it can sit in a test script.
Open
bytewise 0.1.0, byte by byte
Get it
unzip bytewise-0.1.0.zip && cd bytewise && npm test
The coin
$BYTES
—
- 24h
- —
- Market cap
- —
- Volume 24h
- —
- Liquidity
- —
- Supply
- 1,000,000,000
- Tax
- 0%