-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic coverage for ModularTokenizerOp (#388)
* done after hooks * forgot the test lol <3 * add missing req * another missing req * another missing reqgit add -u! --------- Co-authored-by: Sagi Polaczek <[email protected]>
- Loading branch information
1 parent
804c185
commit 238f84f
Showing
3 changed files
with
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import unittest | ||
|
||
from fuse.data.tokenizers.modular_tokenizer.op import ModularTokenizerOp | ||
|
||
|
||
class TestInitialization(unittest.TestCase): | ||
def test_from_pretrained(self) -> None: | ||
tokenizer_op = ModularTokenizerOp.from_pretrained( | ||
"ibm/biomed.omics.bl.sm.ma-ted-458m" | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,6 @@ clearml | |
x-transformers | ||
jsonargparse | ||
click | ||
huggingface_hub | ||
tokenizers | ||
transformers |