-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert word counts to u64 #1433
Conversation
hi @stephenroller - pinging @LysandreJik @ArthurZucker |
whoops. I did meant to do this in my fork. |
However, since I did open source it, I don't mind if the patch is upstreamed. This fixes #437. I haven't tested it yet but I can report back if it fixes it. |
This worked pretty well at fixing the overflow issue. I didn't time it. Can we at least let CI run? |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Sure! For the tests, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
Parent revision (888dd4b):
This revision (fd24c27):
|
Thanks for the PR and making sure we have no performance issues! Merging 🤗 |
Fixes #437, where BPE trainer will overflow and fail to merge the most common words into the vocabulary when training on a very large corpus.