

fix: enabling `hf_transfer` breaks downloads when running as docker container
@78c55feb7f704ed3ec842ec7c2c2838a2dfdf4aa
--- Dockerfile
+++ Dockerfile
... | ... | @@ -35,7 +35,9 @@ |
35 | 35 |
ENV UVICORN_PORT=8000 |
36 | 36 |
ENV PATH="$HOME/faster-whisper-server/.venv/bin:$PATH" |
37 | 37 |
# https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hfhubenablehftransfer |
38 |
-ENV HF_HUB_ENABLE_HF_TRANSFER=1 |
|
38 |
+# NOTE: I've disabled this because it doesn't inside of Docker container. I couldn't pinpoint the exact reason. This doesn't happen when running the server locally. |
|
39 |
+# RuntimeError: An error occurred while downloading using `hf_transfer`. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling. |
|
40 |
+ENV HF_HUB_ENABLE_HF_TRANSFER=0 |
|
39 | 41 |
# https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#donottrack |
40 | 42 |
# https://www.reddit.com/r/StableDiffusion/comments/1f6asvd/gradio_sends_ip_address_telemetry_by_default/ |
41 | 43 |
ENV DO_NOT_TRACK=1 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?