-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for FastSentencepieceTokenizer.
The implementation of the tokenizer is here: https://www.tensorflow.org/text/api_docs/python/text/FastSentencepieceTokenizer This change should enable small student models, which use T5 as the backbone, to use the fast tokenizer, which for long sequences can slash several miliseconds of inference time on accelerators, since the tokenization happens on Device and not on Host. PiperOrigin-RevId: 589615741
- Loading branch information
SeqIO Team
authored and
SeqIO
committed
Dec 10, 2023
1 parent
cff6544
commit 6c34de7
Showing
3 changed files
with
24 additions
and
0 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
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