Description
Describe the bug
Download starts but fails after a few seconds
huggingface-cli download meta-llama/Meta-Llama-3-70B-Instruct --local-dir ./Llama-3-70B-Instruct --resume-download
Fetching 50 files: 0%| | 0/50 [00:00<?, ?it/s]/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: resume_download
is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True
.
warnings.warn(
Fetching 50 files: 0%| | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
response.raise_for_status()
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct/resolve/28bd9fa9d94b23cb6ded08f92d5672b2aabe695f/.gitattributes
Reproduction
huggingface-cli download meta-llama/Meta-Llama-3-70B-Instruct --local-dir ./Llama-3-70B-Instruct --resume-download
Logs
huggingface-cli download meta-llama/Meta-Llama-3-70B-Instruct --local-dir ./Llama-3-70B-Instruct --resume-download
Fetching 50 files: 0%| | 0/50 [00:00<?, ?it/s]/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
Fetching 50 files: 0%| | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
response.raise_for_status()
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct/resolve/28bd9fa9d94b23cb6ded08f92d5672b2aabe695f/.gitattributes
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1220, in hf_hub_download
return _hf_hub_download_to_local_dir(
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1468, in _hf_hub_download_to_local_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1857, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache.
System info
huggingface_hub version: 0.24.5
- Platform: Linux-5.15.0-1073-azure-x86_64-with-glibc2.31
- Python version: 3.10.11
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Token path ?: /home/azureuser/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: Clairemuwanguzi2025
- Configured git credential helpers:
- FastAI: 1.0.61
- Tensorflow: 2.17.0
- Torch: 2.4.1
- Jinja2: 3.1.4
- Graphviz: N/A
- keras: 3.5.0
- Pydot: N/A
- Pillow: 9.2.0
- hf_transfer: N/A
- gradio: N/A
- tensorboard: 2.6.2.2
- numpy: 1.23.5
- pydantic: 2.9.2
- aiohttp: 3.10.1
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: /home/azureuser/.cache/huggingface/hub
- HF_ASSETS_CACHE: /home/azureuser/.cache/huggingface/assets
- HF_TOKEN_PATH: /home/azureuser/.cache/huggingface/token
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10