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.
Whats the prefered LLM runtime to use? vLLM? Tips & Tricks on parameters/settings? What happens at peak? Do people have to wait now? Increase of latency?
GigaToken: ~1000x faster Language model tokenization
131–137 of 137 posts
Re: GigaToken: ~1000x faster Language model tokenization
#132engineering effort to make something 1000x faster that accounts for 0.1% of total runtime is the most software developer thing imaginable
This depends on what your workflow is. There are use cases for tokenization that don't always involve immediately feeding the text into a model.
Re: GigaToken: ~1000x faster Language model tokenization
#133Spectacular... Reminds me of the SimdJson algorithm in terms of jaw dropping nearly unbelievable speeds through creative programming. I hope this code get popular, as it will save tons of electricity, money, CO2, etc. Have you considered publishing a rust crate as well? (If not, I volunteer.)
Is there any write up regarding the SimdJson Algo? Definitely love to read more of it!
It showcases an especially ingenious scheme for escaping json strings, as well as the other tokens necessary to parse json.
Daniel Lemire - One of the authors at QCon 2019: https://www.youtube.com/watch?v=wlvKAT7SZIQ
Another Youtube video that explains it: https://www.youtube.com/watch?v=vd9J9PPmAMM
Re: GigaToken: ~1000x faster Language model tokenization
#134What sort of setups do people have that are bounded by the speed of the tokenizer?
Author here! In my case it's mostly pretraining experiments, where you might want to change your data mixture/filtering/processing of training data, and splits are usually done at a token-level instead of a text level. In this case we usually run for days on a huge number of CPUs to finish tokenizing something like DCLM. From what I can tell it's also useful for inference when considering time-to-first-token (TTFT) a…
Re: GigaToken: ~1000x faster Language model tokenization
#135Spectacular... Reminds me of the SimdJson algorithm in terms of jaw dropping nearly unbelievable speeds through creative programming. I hope this code get popular, as it will save tons of electricity, money, CO2, etc. Have you considered publishing a rust crate as well? (If not, I volunteer.)
Re: GigaToken: ~1000x faster Language model tokenization
#136This is awesome, but tokenization is typically Presumably there's a host of applications that just need to tokenize, though, and this would be great for those!