"tests/models/bert/test_modeling_tf_bert.py" did not exist on "bd0eab351a338175053998ddfc059f1cb6424ab4"
Commit 0a21a485 authored by Sylvain Gugger's avatar Sylvain Gugger
Browse files

Revert "Make sharded checkpoints work in offline mode"

This reverts commit 3564c657.
parent 3564c657
......@@ -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."
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment