We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e5ba1 commit 4d6b35dCopy full SHA for 4d6b35d
src/huggingface_hub/file_download.py
@@ -225,7 +225,7 @@ def _request_with_retry(
225
logger.info(
226
f"{method} request to {url} timed out, retrying... [{tries/max_retries}]"
227
)
228
- sleep_time = max(
+ sleep_time = min(
229
max_wait_time, base_wait_time * 2 ** (tries - 1)
230
) # Exponential backoff
231
time.sleep(sleep_time)
0 commit comments