[AutoTokenizer] Fix incorrect from pretrained (#14900)

This commit is contained in:
Patrick von Platen 2021-12-23 17:22:33 +01:00 committed by GitHub
parent 8f2cc1c3ab
commit ef47d4f848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,7 @@ def get_tokenizer_config(
use_auth_token=use_auth_token,
)
except EnvironmentError:
except (EnvironmentError, ValueError):
logger.info("Could not locate the tokenizer configuration file, will try to use the model config instead.")
return {}