-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some more overhead from GPT3Tokenizer (#675)
### Motivation and Context Some more low-hanging fruit reduction in GPT3Tokenizer. ### Description - We can both simplify and make faster the parsing of the vocab.bpe file - We can remove the SortedDictionary from BytePairEncoding, including a full O(N) iteration of the dictionary on every iteration of the outer loop (as part of the Min() call). Co-authored-by: Devis Lucato <dluc@users.noreply.github.com> Co-authored-by: Devis Lucato <devis@microsoft.com>
- Loading branch information
1 parent
eea509e
commit 8fc9d7a
Showing
2 changed files
with
38 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters