Change `force_download` back to False
This is to prevent fully downloaded models from being re-downloaded in Colab.
This commit is contained in:
parent
6d481ca57e
commit
2ebba9488b
2
utils.py
2
utils.py
|
@ -135,7 +135,7 @@ def decodenewlines(txt):
|
|||
#==================================================================#
|
||||
# Downloads sharded huggingface checkpoints using aria2c if possible
|
||||
#==================================================================#
|
||||
def aria2_hook(pretrained_model_name_or_path: str, force_download=True, cache_dir=None, proxies=None, resume_download=False, local_files_only=False, use_auth_token=None, user_agent=None, revision=None, mirror=None, **kwargs):
|
||||
def aria2_hook(pretrained_model_name_or_path: str, force_download=False, cache_dir=None, proxies=None, resume_download=False, local_files_only=False, use_auth_token=None, user_agent=None, revision=None, mirror=None, **kwargs):
|
||||
import transformers
|
||||
import transformers.modeling_utils
|
||||
from huggingface_hub import HfFolder
|
||||
|
|
Loading…
Reference in New Issue