option: reduce connecting to huggingface

for assets if local cache is available
note: enabling this with prevent the assets from being updated
This commit is contained in:
w-e-w
2024-07-30 17:48:17 +09:00
parent 48239090f1
commit 842dd5ea75
3 changed files with 43 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ def imports():
import torch # noqa: F401
startup_timer.record("import torch")
from modules import patch_hf_hub_download # noqa: F401
import pytorch_lightning # noqa: F401
startup_timer.record("import torch")
warnings.filterwarnings(action="ignore", category=DeprecationWarning, module="pytorch_lightning")