mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[AutoTokenizer] Fix incorrect from pretrained (#14900)
This commit is contained in:
parent
8f2cc1c3ab
commit
ef47d4f848
@ -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 {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user