rocm_sdk_builder icon indicating copy to clipboard operation
rocm_sdk_builder copied to clipboard

401 Client Error huggingface

Open oldschoola opened this issue 8 months ago • 1 comments

Creating model from config: /opt/rocm_sdk_612/apps/stable-diffusion-webui/configs/v1-inference.yaml /opt/rocm_sdk_612/lib/python3.11/site-packages/transformers/tokenization_utils_base.py:1617: FutureWarning: clean_up_tokenization_spaces was not set. It will be set to True by default. This behavior will be deprecated in transformers v4.45, and will be then set to False by default. For more details check this issue: https://github.com/huggingface/transformers/issues/31884 warnings.warn( creating model quickly: OSError Traceback (most recent call last): File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status response.raise_for_status() File "/opt/rocm_sdk_612/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/None/resolve/main/config.json

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/rocm_sdk_612/lib/python3.11/site-packages/transformers/utils/hub.py", line 403, in cached_file resolved_file = hf_hub_download( ^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 961, in hf_hub_download return _hf_hub_download_to_cache_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1068, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1596, in _raise_on_head_call_error raise head_call_error File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1484, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( ^^^^^^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1401, in get_hf_file_metadata r = _request_wrapper( ^^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 285, in _request_wrapper response = _request_wrapper( ^^^^^^^^^^^^^^^^^ File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 309, in _request_wrapper hf_raise_for_status(response) File "/opt/rocm_sdk_612/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 459, in hf_raise_for_status raise _format(RepositoryNotFoundError, message, response) from e huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67f5cbe0-6e06fd5c747619070b6a6586;35aa50c9-fcba-464b-b4a2-6c5280f27a6c)

Repository Not Found for url: https://huggingface.co/None/resolve/main/config.json. Please make sure you specified the correct repo_id and repo_type. If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface.co/docs/huggingface_hub/authentication Invalid username or password.

oldschoola avatar Apr 09 '25 01:04 oldschoola

You need to make an account on huggingface, create an API token and add it to the SD-webui (and possibly request access to the model on the model page on the huggingface website). The error you're getting is that you're not authorized to download the model without authentication.

leovanalphen avatar Apr 09 '25 08:04 leovanalphen