55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
1–10 of 10 posts
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#2Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#3Wait what?
Is that some sort of inside joke?
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#4> 307MB of Enron emails Wait what? Is that some sort of inside joke?
See for example: https://www.cs.cmu.edu/~./enron/
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#5Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#6This adds PyTorch/CUDA training support to Andrej Karpathy's minbpe. It takes 2min 28sec (148 seconds) on an RTX4090 to train the BasicTokenizer with a vocab_size of 512 on 307MB of Enron emails. The original code takes 2hrs 15min (8076 seconds) on an M2 Air with Python 3.11 to do this. That is a 55x speedup.
If so this doesn’t seem like a logical comparison and the 55x claim would likely not translate when using the same hardware.
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#7> 307MB of Enron emails Wait what? Is that some sort of inside joke?
Nope! See for example: https://www.cs.cmu.edu/~./enron/
Interesting. Something good came out of Enron after all
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#8This adds PyTorch/CUDA training support to Andrej Karpathy's minbpe. It takes 2min 28sec (148 seconds) on an RTX4090 to train the BasicTokenizer with a vocab_size of 512 on 307MB of Enron emails. The original code takes 2hrs 15min (8076 seconds) on an M2 Air with Python 3.11 to do this. That is a 55x speedup.
Am I reading this right? A 55x improvement while also going from an M2 Air to an RTX 4090? If so this doesn’t seem like a logical comparison and the 55x claim would likely not translate when using the same hardware.
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#9Earlier quoted context omitted.
Am I reading this right? A 55x improvement while also going from an M2 Air to an RTX 4090? If so this doesn’t seem like a logical comparison and the 55x claim would likely not translate when using the same hardware.
The M2 Air was actually much faster than whatever CPU was on the cloud RTX4090 machine I rented. I chose the stronger benchmark to compare to
Re: 55x Speedup of Andrej Karpathy's Minbpe LLM Tokenizer with PyTorch/CUDA
#10This adds PyTorch/CUDA training support to Andrej Karpathy's minbpe. It takes 2min 28sec (148 seconds) on an RTX4090 to train the BasicTokenizer with a vocab_size of 512 on 307MB of Enron emails. The original code takes 2hrs 15min (8076 seconds) on an M2 Air with Python 3.11 to do this. That is a 55x speedup.
Am I reading this right? A 55x improvement while also going from an M2 Air to an RTX 4090? If so this doesn’t seem like a logical comparison and the 55x claim would likely not translate when using the same hardware.