You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/en/package_reference/environment_variables.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,11 @@ For more details, see [logging reference](../package_reference/utilities#hugging
73
73
74
74
### HF_HUB_ETAG_TIMEOUT
75
75
76
-
Integer value to define the number of seconds to wait for server response when fetching the latest metadata from a repo before downloading a file. If the request times out, `huggingface_hub` will default to the locally cached files. Setting a lower value speeds up the workflow for machines with a slow connection that have already cached files. A higher value guarantees the metadata call to succeed in more cases. Default to 10s.
76
+
Integer value to define the initial number of seconds to wait for server response when fetching the latest metadata from a repo before downloading a file. If the request times out, `huggingface_hub` will default to the locally cached files. If no cached file is found, a retry is attempted with a longer timeout (see `HF_HUB_ETAG_TIMEOUT_RETRY`). Setting a lower value speeds up the workflow for machines with a slow connection that have already cached files. Default to 10s.
77
+
78
+
### HF_HUB_ETAG_TIMEOUT_RETRY
79
+
80
+
Integer value to define the number of seconds to wait when retrying metadata fetch after an initial timeout. When the initial metadata request times out and no local cached file is found, `huggingface_hub` will retry with this longer timeout before failing. This helps handle transient network slowdowns while keeping the initial timeout fast for cached files. Default to 60s.
0 commit comments