Model downloading issue when using huggingface pipeline
My request for accessing this model has been accepted. I can access the model within the broswer. However, when run the pipeline example code, I got the following error:
HTTPError Traceback (most recent call last)
File ~/embedding/.venv/lib/python3.10/site-packages/huggingface_hub/utils/_http.py:409, in hf_raise_for_status(response, endpoint_name)
408 try:
--> 409 response.raise_for_status()
410 except HTTPError as e:
File ~/embedding/.venv/lib/python3.10/site-packages/requests/models.py:1026, in Response.raise_for_status(self)
1025 if http_error_msg:
-> 1026 raise HTTPError(http_error_msg, response=self)
HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/facebook/dinov3-vit7b16-pretrain-lvd1689m/resolve/main/config.json
The above exception was the direct cause of the following exception:
HfHubHTTPError Traceback (most recent call last)
File ~/embedding/.venv/lib/python3.10/site-packages/huggingface_hub/file_download.py:1546, in _get_metadata_or_catch_error(repo_id, filename, repo_type, revision, endpoint, proxies, etag_timeout, headers, token, local_files_only, relative_filename, storage_folder)
1545 try:
-> 1546 metadata = get_hf_file_metadata(
1547 url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token, endpoint=endpoint
1548 )
1549 except EntryNotFoundError as http_error:
File ~/embedding/.venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py:114, in validate_hf_hub_args.._inner_fn(*args, **kwargs)
112 kwargs = smoothly_deprecate_use_auth_token(fn_name=fn.name, has_token=has_token, kwargs=kwargs)
...
559 # later on anyway and re-raised if needed
560 elif isinstance(e, HTTPError) and not isinstance(e, EntryNotFoundError):
OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.
Is the user running the pipeline logged into Hugging Face? This is required to download the models, see the documentation for different ways to achieve this in a pipeline.