Some model_types cannot be in the mapping (#13259)
* Some tokenizers cannot be in the mapping * Style
This commit is contained in:
@@ -1799,7 +1799,9 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if model_type is not None:
|
if model_type is not None:
|
||||||
config_tokenizer_class, config_tokenizer_class_fast = TOKENIZER_MAPPING_NAMES[model_type]
|
config_tokenizer_class, config_tokenizer_class_fast = TOKENIZER_MAPPING_NAMES.get(
|
||||||
|
model_type, (None, None)
|
||||||
|
)
|
||||||
if config_tokenizer_class is None:
|
if config_tokenizer_class is None:
|
||||||
config_tokenizer_class = config_tokenizer_class_fast
|
config_tokenizer_class = config_tokenizer_class_fast
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user