forked from NVIDIA/NeMo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle in HF AutoTokenizer with pad_token=None (NVIDIA#8068)
* check if none before encode special token Signed-off-by: Huiying Li <[email protected]> * handle when pad_id does not exist for hf Autotokenizer Signed-off-by: Huiying Li <[email protected]> * refactor pad_id assignment to use getattr for cleaner code readability Signed-off-by: Huiying Li <[email protected]> --------- Signed-off-by: Huiying Li <[email protected]> Co-authored-by: yaoyu-33 <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
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