TOKENIZATION / BYTE BY BYTE
Byte Pair
Merge Desk
Learn merge ranks from a tiny corpus. See how ranks change the boundaries of a new byte sequence.
A bounded teaching profile. Pair-count learning is not neural network training or a vendor tokenizer replica.
Corpus & probe
Each corpus record is a separate boundary. Repeated records count again. Raw hex controls the result; no text decoding or pre-tokenization is applied.
1–16 records, each ≤128 bytes; corpus ≤512 bytes; probe ≤256 bytes; merge budget 0–32. Empty records and empty probes are valid. JSON ≤4096 UTF-16 units.
Ready
One vocabulary, two encodings
Deliberate longest-prefix shortcut
Both encodings reconstruct the same bytes. Equal token counts do not imply equal boundaries, and fewer tokens alone do not establish better language modeling or compression.
Inspect a learned round
Adjacent-pair frequency includes overlapping candidates. Replacements consume nonoverlapping pairs from left to right.
Record states
All pair candidates in this round
Complete learned vocabulary
The full 256-byte base is retained, including unused bytes. Distinct IDs with identical byte spellings remain separate symbols if they occur.