Cap huggingface_hub below 1.0 (resume_download removal)
Browse files- requirements.txt +12 -1
requirements.txt
CHANGED
|
@@ -17,6 +17,17 @@ audiocraft==1.3.0
|
|
| 17 |
# "module torch has no attribute int1" crash on the Coda Space.
|
| 18 |
transformers==4.40.2
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# Written with soundfile rather than torchaudio.save — torchcodec fails to load
|
| 21 |
# on the HF Space image.
|
| 22 |
soundfile==0.12.1
|
|
@@ -24,4 +35,4 @@ numpy<2.0
|
|
| 24 |
|
| 25 |
fastapi==0.115.0
|
| 26 |
uvicorn==0.30.6
|
| 27 |
-
pydantic==2.9.2
|
|
|
|
| 17 |
# "module torch has no attribute int1" crash on the Coda Space.
|
| 18 |
transformers==4.40.2
|
| 19 |
|
| 20 |
+
# Written with soundfile rather than torchaudio.save — torchcodec fails to load
|
| 21 |
+
# on the HF Space image.
|
| 22 |
+
# Capped below 1.0 deliberately. audiocraft and transformers 4.40.2 both call
|
| 23 |
+
# hf_hub_download(resume_download=...), which 1.0.0 REMOVES — the current
|
| 24 |
+
# FutureWarning becomes a TypeError on the first weight fetch, i.e. the Space
|
| 25 |
+
# stops loading the model at all. The other two warnings in the boot log
|
| 26 |
+
# (torch weight_norm, encodec torch.tensor copy-construct) are cosmetic and
|
| 27 |
+
# originate inside the pinned torch/transformers, so they cannot rot while
|
| 28 |
+
# those pins hold and there is nothing to fix in our own code.
|
| 29 |
+
huggingface_hub>=0.20,<1.0
|
| 30 |
+
|
| 31 |
# Written with soundfile rather than torchaudio.save — torchcodec fails to load
|
| 32 |
# on the HF Space image.
|
| 33 |
soundfile==0.12.1
|
|
|
|
| 35 |
|
| 36 |
fastapi==0.115.0
|
| 37 |
uvicorn==0.30.6
|
| 38 |
+
pydantic==2.9.2
|