Lurker News

Comments (2,366) 351 threads

Show all comments

Showing thread 20 of 351

minimaxir#
For posterity, GPT-3.5/4's tokenizer was 100k. The benefit of a larger tokenizer is more efficient tokenization (and therefore cheaper/faster) but with massive diminishing returns: the larger tokenizer makes the model more difficult to train but tends to reduce token usage by 10-15%.
simonw1 reply#
Oh interesting, does that mean languages other than English won't be paying such a large penalty in terms of token lengths?

With previous tokenizers there was a notable increase in the number of tokens needed to represent non-English sentences: https://simonwillison.net/2023/Jun/8/gpt-tokenizers/

tedsanders1 reply#
Yep. Non-English text gets a much bigger cost drop and speedup compared to English. Has always been a bummer that GPT-4 is like 5x slower and more expensive in Japanese, etc.
simonw#
Just found there's a whole section about that in this post: https://openai.com/index/hello-gpt-4o/

It says "Japanese 1.4x fewer tokens (from 37 to 26)" - some other languages get much bigger improvements though, best is "Gujarati 4.4x fewer tokens (from 145 to 33)".

mike_hearn1 reply#
Does that imply they retrained the foundation model from scratch? I thought changing the tokenization was something you couldn't really retrofit to an existing model. I mean sure they might have initialized the weights from the prior GPT-4 model but it'd still require a lot of retraining.
famouswaffles#
Yeah and they say as much in the blog.
moffkalast1 reply#
Lots of those tokens would have to be pixel patches and sound samples right?
nojvek#
Yep. Since it’s multimodal. Pictures, text, audio all go into token space.
kristofferR1 reply#
How are they able to use such a brand name, Tiktoken? Is it because TikTok is Chinese? Tiktoken, it's almost like if Apple released the Facebooken library for something entirely unrelated to Facebook.
gemeral1 reply#
That's not the right analogy. The "tok" in "Tiktoken" comes from "token", not "TikTok".
meiraleal#
And the "tik" comes from TikTok.