HuggingFace tokens for the model garden may be invalid when used in Google Console due to incorrect configuration, such as missing permissions, incorrect API key usage, or using the wrong token type. Ensure you're using the correct token for authentication (e.g., an API token, not a model-specific token). Here is the code snippet you can refer to:

In the above code, we are using the following key points:
- Ensure the token is from HuggingFace’s API and has the correct scope.
- Use the token in API requests or as an environment variable.
- Verify the token is active and has sufficient permissions.