Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
ef47d4f8
Unverified
Commit
ef47d4f8
authored
Dec 23, 2021
by
Patrick von Platen
Committed by
GitHub
Dec 23, 2021
Browse files
[AutoTokenizer] Fix incorrect from pretrained (#14900)
parent
8f2cc1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/auto/tokenization_auto.py
src/transformers/models/auto/tokenization_auto.py
+1
-1
No files found.
src/transformers/models/auto/tokenization_auto.py
View file @
ef47d4f8
...
@@ -350,7 +350,7 @@ def get_tokenizer_config(
...
@@ -350,7 +350,7 @@ def get_tokenizer_config(
use_auth_token
=
use_auth_token
,
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."
)
logger
.
info
(
"Could not locate the tokenizer configuration file, will try to use the model config instead."
)
return
{}
return
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment