--------------------------------------------------------------------------- HTTPError…
- User
HTTPError Traceback (most recent call last) File c:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\huggingface_hub\utils_http.py:406, in hf_raise_for_status(response, endpoint_name) 405 try: --> 406 response.raise_for_status() 407 except HTTPError as e:
File c:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py:1024, in Response.raise_for_status(self) 1023 if http_error_msg: -> 1024 raise HTTPError(http_error_msg, response=self)
HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/google-bert/mobilebert-uncased/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
RepositoryNotFoundError Traceback (most recent call last) File c:\Users\Marcin\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\utils\hub.py:403, in cached_file(path_or_repo_id, filename, cache_dir, force_download, resume_download, proxies, token, revision, local_files_only, subfolder, repo_type, user_agent, _raise_exceptions_for_gated_repo, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash, **deprecated_kwargs) 401 try: 402 # Load from URL or cache if already cached --> 403 resolved_file = hf_hub_download( 404 path_or_repo_id, 405 filename, 406 subfolder=None if len(subfolder) == 0 else subfolder, 407 repo_type=repo_type, 408 revision=revision, ... 436 f"'https://huggingface.co/{path_or_repo_id}' for available revisions." 437 ) from e
OSError: google-bert/mobilebert-uncased is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo either by logging in with
huggingface-cli loginor by passingtoken=<your_token>Output is truncated. - Assistant
The error message you are encountering indicates that there is a problem with authorization when trying to access a model from the Hugging Face Hub. Here's a breakdown of the error and steps to resolve it:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.