Issues with tests/test_train_bpe.py::test_train_bpe_speed
#87
Unanswered
prateekgargX
asked this question in
Help
Replies: 1 comment 7 replies
|
A couple of suggestions to get better performance with multiprocessing:
Hope this helps! |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have been trying to optimise my tokenizer using multiprocessing. After two days of debugging, I still see no speedup on this testcase, if anything it slows down. Without multiprocessing, it executes in 1.5 seconds and with multiprocessing it takes around 1.9-2.5 seconds based on the number of processes I use. But I see a lot of gains on TinyStories. I was able to train 10K vocab with wallclock time of 15 minutes. This was on Macbook Air M2 with 16gb RAM.
All reactions