Getting Forbidden error although I have been granted access to the model

#5
by anothercoder2 - opened

Hi,
I am trying to access the google/paligemma-3b-mix-224
I have agreed to terms and conditions and see "You have been granted access to this model.
I have multiple tokens read, write and custom (all of which I tried)
Trying to run this sample
https://colab.research.google.com/drive/1bMIfHh1mpQv1qxzRXYNVtXiB3HqLlNhL?usp=sharing#scrollTo=HKYYuWe_s7Rs
From
https://www.youtube.com/watch?v=z14pypZebtQ
But get the error below.
Thanks in advance.

HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/google/paligemma-3b-mix-224/resolve/main/config.json

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

HfHubHTTPError Traceback (most recent call last)
HfHubHTTPError: (Request ID: Root=1-665a5ab1-466f5a9b4c41eb4623a523ba;154c891c-ffad-477c-927a-4f52484838f6)

403 Forbidden: Authorization error..
Cannot access content at: https://huggingface.co/google/paligemma-3b-mix-224/resolve/main/config.json.
If you are trying to create or update content,make sure you have a token with the write role.

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

LocalEntryNotFoundError Traceback (most recent call last)
LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

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)
443 ):
444 return resolved_file
--> 445 raise EnvironmentError(
446 f"We couldn't connect to '{HUGGINGFACE_CO_RESOLVE_ENDPOINT}' to load this file, couldn't find it in the"
447 f" cached files and it looks like {path_or_repo_id} is not the path to a directory containing a file named"

OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like google/paligemma-3b-mix-224 is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

anothercoder2 changed discussion status to closed

Hi, could you tell me, how do i fix this?

Google org

@hohoho9 likely passing in a valid token should fix

@merve Yes, my token was incorrect, thank you

Sign up or log in to comment