by alexvitkov · 2y ago · 0 comments
The reason being that there's less context needed to do it this way, for addition at every step there's only 3 digits that need to be considered and they're already in the token stream.
12345678987654321 is tokenized on various models like so:
GPT4 123-456-789-876-543-21
GPT3 123-45-678-98-765-43-21
Llama-2, Mistral 1-2-3-4-5-6-7-8-9-8-7-6-5-4-3-2-1
[1] https://huggingface.co/spaces/Xenova/the-tokenizer-playgroun...