Update huggingface hub requirement. Remove forced xet removal as some models are so large it wont work without it. Hopefully the latest version of huggingface_hub doesnt have the hanging issues.

This commit is contained in:
Jaret Burkett
2026-07-16 08:52:24 -06:00
parent e1e1996c16
commit 31c45cf37d
2 changed files with 2 additions and 3 deletions

3
run.py
View File

@@ -4,8 +4,7 @@ from dotenv import load_dotenv
# Load the .env file if it exists
load_dotenv()
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = os.getenv("HF_HUB_ENABLE_HF_TRANSFER", "1")
# the hf-xet download backend stalls forever mid-download (no timeout); force plain HTTP
os.environ["HF_HUB_DISABLE_XET"] = os.getenv("HF_HUB_DISABLE_XET", "1")
os.environ["HF_HUB_DISABLE_XET"] = os.getenv("HF_HUB_DISABLE_XET", "0")
os.environ["NO_ALBUMENTATIONS_UPDATE"] = "1"
seed = None
if "SEED" in os.environ: