Is tokenizing really the bottleneck? If we go from 20ms to 15ms does it really matter?
GigaToken: ~1000x faster Language model tokenization
91–100 of 137 posts
Re: GigaToken: ~1000x faster Language model tokenization
#92So the question becomes, how many other parts of the inference pipeline have left 1000x optimization opportunities lying on the table?
The problem with the rest of inference is that changes are not trivially correct or incorrect, as they are with the tokenization layer.
BTW throughput is measured for a 12 GiB file. Would be interesting to see the throughput for something more like 32 KiB, with cold start (token cache not yet populated).
Re: GigaToken: ~1000x faster Language model tokenization
#93Re: GigaToken: ~1000x faster Language model tokenization
#94[flagged]
The Gigatoken API instead prefers input bytes or paths to iterate, and returns an Awkward array by default. Again, no difference in correctness.
Re: GigaToken: ~1000x faster Language model tokenization
#95Have you considered publishing a rust crate as well? (If not, I volunteer.)
Re: GigaToken: ~1000x faster Language model tokenization
#96Re: GigaToken: ~1000x faster Language model tokenization
#97Is tokenizing really the bottleneck? If we go from 20ms to 15ms does it really matter?
You sound like someone who used to write fastruby
So you speed up 1% of the pipeline by some factor, and the end result is unobservable for a human.
Re: GigaToken: ~1000x faster Language model tokenization
#98engineering effort to make something 1000x faster that accounts for 0.1% of total runtime is the most software developer thing imaginable
Re: GigaToken: ~1000x faster Language model tokenization
#99What sort of setups do people have that are bounded by the speed of the tokenizer?
If you are training an LLM, you need to tokenize the text before it’s trained on. A lot of time this can be done in parallel with the GPU though. I have spent way too much time waiting 10-15 minutes tokenizing my training dataset only for the run to crash over some minor bug after that. (If I was smarter, I’d test on a smaller batch first.)
Ah, Python.
Re: GigaToken: ~1000x faster Language model tokenization
#100This 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!