Earlier quoted context omitted.
I run an AI platform and we need to tokenize fast and early to make a lot of decisions on the subsequent steps (things like routing, rate limiting and such). Its really important to do this efficiently even though its not a large % of total end to end time for the request.
To concur it's "latency critical", not "performance critical", people often confuse those two - optimize it all, but especially the chained critical path latency!
GigaToken: ~1000x faster Language model tokenization
71–80 of 137 posts
Re: GigaToken: ~1000x faster Language model tokenization
#72Re: GigaToken: ~1000x faster Language model tokenization
#73engineering effort to make something 1000x faster that accounts for 0.1% of total runtime is the most software developer thing imaginable
[0] Yes, for LLMs we're closer to the bound than 1000x. Even there though, basic pytorch operations are often 2x slower than simple rewrites, better scheduling algorithms have a history of closer to 5x-10x gains, and all of that supposes you don't have further architectural improvements over time. Moreover, who's to say that legitimately fast tokenization doesn't unlock additional capabilities elsewhere which people have ignored because it was never close to viable?
Re: GigaToken: ~1000x faster Language model tokenization
#74Re: GigaToken: ~1000x faster Language model tokenization
#75Earlier quoted context omitted.
To concur it's "latency critical", not "performance critical", people often confuse those two - optimize it all, but especially the chained critical path latency!
Latency isn't performance? Maybe you mean "not throughput-critical"?
If I have the same number of CPU cores and they all can do their work in half the time they can double the number of requests now
Re: GigaToken: ~1000x faster Language model tokenization
#76And screw all the 0.1% haters on here, this is great stuff.
Re: GigaToken: ~1000x faster Language model tokenization
#77Earlier quoted context omitted.
Latency isn't performance? Maybe you mean "not throughput-critical"?
but according to Little’s law, if you improve latency, you also improve throughput, right? If I have the same number of CPU cores and they all can do their work in half the time they can double the number of requests now
Re: GigaToken: ~1000x faster Language model tokenization
#78Re: GigaToken: ~1000x faster Language model tokenization
#79Can I say this seems to be fantastic work. I cloned your repo earlier today after seeing it on the tokenization discord. I know everyone in the tokenization community wants to absorb the lessons of how you got such a speedup. The caching and replacing the regex for pretokenization seem like generally useful ideas. And screw all the 0.1% haters on here, this is great stuff.
Re: GigaToken: ~1000x faster Language model tokenization
#80Can I say this seems to be fantastic work. I cloned your repo earlier today after seeing it on the tokenization discord. I know everyone in the tokenization community wants to absorb the lessons of how you got such a speedup. The caching and replacing the regex for pretokenization seem like generally useful ideas. And screw all the 0.1% haters on here, this is great stuff.
[flagged]
There is a serious research community on tokenization, and we are quite interested in this work.