-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled auto-truncation for any pretrained models (#192)
* Made truncation parameter automatically processed Signed-off-by: Yerzhaisang Taskali <[email protected]> * Made max_length parameter dynamic Signed-off-by: yerzhaisang <[email protected]> * Added unit test for checking truncation parameter Signed-off-by: yerzhaisang <[email protected]> * Updated CHANGELOG.md Signed-off-by: yerzhaisang <[email protected]> * Included the test of max_length parameter value Signed-off-by: yerzhaisang <[email protected]> * Slightly modeified the test of max_length parameter value Signed-off-by: yerzhaisang <[email protected]> * Modified CHANGELOG.md and removed the duplicate Signed-off-by: yerzhaisang <[email protected]> * Enabled auto-truncation format also for ONNX Signed-off-by: yerzhaisang <[email protected]> * Implemented reusable function Signed-off-by: yerzhaisang <[email protected]> * Fixed the lint Signed-off-by: yerzhaisang <[email protected]> * Change tokenizer.json only if truncation is null Signed-off-by: yerzhaisang <[email protected]> * Removed function which had been accidentally added Signed-off-by: yerzhaisang <[email protected]> * Renamed reusable function and added the description Signed-off-by: yerzhaisang <[email protected]> * Fixed the lint Signed-off-by: yerzhaisang <[email protected]> --------- Signed-off-by: Yerzhaisang Taskali <[email protected]> Signed-off-by: yerzhaisang <[email protected]>
- Loading branch information
1 parent
7622af5
commit e0d1750
Showing
3 changed files
with
70 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