teste: /usr/local/lib/python3.10/dist-packages/huggingfacehub/utils/token.py:89:…
- User
teste: /usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_token.py:89: UserWarning: The secret
HF_TOKENdoes not exist in your Colab secrets. To authenticate with the Hugging Face Hub, create a token in your settings tab (https://huggingface.co/settings/tokens), set it as secret in your Google Colab and restart your session. You will be able to reuse this secret in all of your notebooks. Please note that authentication is recommended but still optional to access public models or datasets. warnings.warn(HTTPError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name) 303 try: --> 304 response.raise_for_status() 305 except HTTPError as e:
18 frames HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/allenai/WildLlama-7b-user-assistant/resolve/main/config.json
The above exception was the direct cause of the following exception:
GatedRepoError Traceback (most recent call last) GatedRepoError: 401 Client Error. (Request ID: Root=1-66f078c2-12db02ac40f95d761654ac91;87097f71-09a2-48b8-9738-594b719fce65)
Cannot access gated repo for url https://huggingface.co/allenai/WildLlama-7b-user-assistant/resolve/main/config.json. Access to model allenai/WildLlama-7b-user-assistant is restricted. You must have access to it and be authenticated to access it. Please log in.
The above exception was the direct cause of the following exception:
OSError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py 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) 418 if resolved_file is not None or not _raise_exceptions_for_gated_repo: 419 return resolved_file --> 420 raise EnvironmentError( 421 "You are trying to access a gated repo.\nMake sure to have access to it at " 422 f"https://huggingface.co/{path_or_repo_id}.\n{str(e)}"
OSError: You are trying to access a gated repo. Make sure to have access to it at . 401 Client Error. (Request ID: Root=1-66f078c2-12db02ac40f95d761654ac91;87097f71-09a2-48b8-9738-594b719fce65)
- Assistant
The error message you're seeing indicates that you're trying to access a restricted model repository on the Hugging Face Hub without proper authentication. The repository
allenai/WildLlama-7b-user-assistantis gated, meaning that it requires special access permissions or specific authentication to use.Here's how you can resolve the issue: