Spaces:
Running
Running
fix: replace deprecated HF_HUB_ENABLE_HF_TRANSFER with HF_XET_HIGH_PERFORMANCE
Browse files- hermes-sync.py +1 -1
hermes-sync.py
CHANGED
|
@@ -18,7 +18,7 @@ from pathlib import Path
|
|
| 18 |
os.environ.setdefault("HF_HUB_DISABLE_PROGRESS_BARS", "1")
|
| 19 |
os.environ.setdefault("HF_HUB_VERBOSITY", "error")
|
| 20 |
os.environ.setdefault("HF_HUB_DOWNLOAD_TIMEOUT", "300") # 5 min — default 10s causes timeout on large state
|
| 21 |
-
os.environ.setdefault("
|
| 22 |
|
| 23 |
from huggingface_hub import HfApi, snapshot_download, upload_folder
|
| 24 |
from huggingface_hub.errors import HfHubHTTPError, RepositoryNotFoundError
|
|
|
|
| 18 |
os.environ.setdefault("HF_HUB_DISABLE_PROGRESS_BARS", "1")
|
| 19 |
os.environ.setdefault("HF_HUB_VERBOSITY", "error")
|
| 20 |
os.environ.setdefault("HF_HUB_DOWNLOAD_TIMEOUT", "300") # 5 min — default 10s causes timeout on large state
|
| 21 |
+
os.environ.setdefault("HF_XET_HIGH_PERFORMANCE", "1") # faster multipart upload/download (replaces deprecated HF_HUB_ENABLE_HF_TRANSFER)
|
| 22 |
|
| 23 |
from huggingface_hub import HfApi, snapshot_download, upload_folder
|
| 24 |
from huggingface_hub.errors import HfHubHTTPError, RepositoryNotFoundError
|