Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0a21a485
Commit
0a21a485
authored
Jul 13, 2022
by
Sylvain Gugger
Browse files
Revert "Make sharded checkpoints work in offline mode"
This reverts commit
3564c657
.
parent
3564c657
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/transformers/utils/hub.py
src/transformers/utils/hub.py
+2
-3
No files found.
src/transformers/utils/hub.py
View file @
0a21a485
...
...
@@ -552,9 +552,8 @@ def get_from_cache(
# the models might've been found if local_files_only=False
# Notify the user about that
if
local_files_only
:
fname
=
url
.
split
(
"/"
)[
-
1
]
raise
EntryNotFoundError
(
f
"Cannot find the requested file (
{
fname
}
) in the cached path and outgoing traffic has been"
raise
FileNotFoundError
(
"Cannot find the requested files in the cached path and outgoing traffic has been"
" disabled. To enable model look-ups and downloads online, set 'local_files_only'"
" to False."
)
...
...
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