You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify TokenizerArgs.__post_init__ with Enum Tokenizer Type (#1535)
* Simplify `TokenizerArgs.__post_init__` with Enum Tokenizer Type
Summary:
Simplify `TokenizerArgs.__post_init__` with enum tokenizer type, since
only one of the tokenizer type can be true.
We want to touch as less code outside of `__post_init__` as possible at
the moment.
Test Plan:
python torchchat.py generate llama2|llama3|granite-code
Reviewers:
@Jack-Khuu
Subscribers:
Issue:
#1518
* Simplify `TokenizerArgs.__post_init__` with Enum Tokenizer Type
Summary:
Simplify `TokenizerArgs.__post_init__` with enum tokenizer type, since
only one of the tokenizer type can be true.
We want to touch as less code outside of `__post_init__` as possible at
the moment.
Test Plan:
python torchchat.py generate llama2|llama3|granite-code
Reviewers:
@Jack-Khuu
Subscribers:
Issue:
#1518
* Add check no tokenizer
* Rollback to 98eaf8f
* Add No Tokenizer Checker
* Reply to nits
* Reply to nits
---------
Co-authored-by: zhenyanzhang <[email protected]>
0 commit comments