Earlier quoted context omitted.
Agreed. A former mentor of mine told me a nice way of viewing software development: 1. Make it work. 2. Make it fast. 3. Make it pretty. Transformers & LLMs have been developed to a point where they work quite well. I feel as though we're at a stage where most substantial progress is being made on the performance side.
Heh, seems people I've been learning from been biased away from beauty, as I know that as "Make It Work, Make It Right, Make It Fast".
Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
51–60 of 79 posts
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#52Earlier quoted context omitted.
What's the difference between make it work and make it right? Aren't they the same thing?
Yeah, if it's not right, it doesn't work.
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#53You know what's also faster to roughly get the amount of tokens? string.length/5
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#54Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#55Earlier quoted context omitted.
Yeah, if it's not right, it doesn't work.
Depends on your definition of "right" and "work". It could be a big ball of mud that always returns exactly the required response (so it 'works'), but be hellish hard change and very picky about dependencies and environment (so it's not 'right').
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#56Kudos, I think (in the short term at least) there is a large amount of perf. optimization to be found by coding parts of the whole AI/ML infrastructure in C++ like this one, not as a rewrite (god no!) but drop in and fix key bottlenecks. Anytime I see someone (seems Chinese engineers are good at this) put something out in C++, good chance some solid engineering tradeoffs have been made and dramatic improvement will b…
Agreed. A former mentor of mine told me a nice way of viewing software development: 1. Make it work. 2. Make it fast. 3. Make it pretty. Transformers & LLMs have been developed to a point where they work quite well. I feel as though we're at a stage where most substantial progress is being made on the performance side.
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#57Can you also compare the performance with https://github.com/huggingface/tokenizers/ ? Would be helpful, since the benchmark in the tiktoken readme seems to be very outdated.
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#58Can someone familiar with performance of LLMs please tell me how important this is to the overall perf? I'm interested in looking into optimizing tokenizers, and have not yet run the measurements. I would have assumed that the cost is generally dominated by matmuls but am encouraged by the reception of this post in the comments.
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#59Can someone familiar with performance of LLMs please tell me how important this is to the overall perf? I'm interested in looking into optimizing tokenizers, and have not yet run the measurements. I would have assumed that the cost is generally dominated by matmuls but am encouraged by the reception of this post in the comments.
GPU kernels typically dominate in terms of wall clock time, the only exception might be very small models.
Thus the latency of tokenization can essentially be “hidden”, by having the CPU prepare the next batch while the GPU finishes the current batch.
Re: Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
#60Kudos, I think (in the short term at least) there is a large amount of perf. optimization to be found by coding parts of the whole AI/ML infrastructure in C++ like this one, not as a rewrite (god no!) but drop in and fix key bottlenecks. Anytime I see someone (seems Chinese engineers are good at this) put something out in C++, good chance some solid engineering tradeoffs have been made and dramatic improvement will b…
Agreed. A former mentor of mine told me a nice way of viewing software development: 1. Make it work. 2. Make it fast. 3. Make it pretty. Transformers & LLMs have been developed to a point where they work quite well. I feel as though we're at a stage where most substantial progress is being made on the performance side.
Firmitas, utilitas, venustas - Strong, useful, and beautiful.