keras-team / keras-nlp

Modular Natural Language Processing workflows with Keras
Apache License 2.0
734 stars 216 forks source link

403 KaggleApiHTTPError while running GemmaCausalLM #1625

Closed nashschool closed 2 months ago

nashschool commented 2 months ago

Describe the bug

I was trying to run the keras_nlp notebook for Kaggle AIMO (link). This uses keras_nlp to generate GemmaCausalLM. gemma_lm = keras_nlp.models.GemmaCausalLM.from_preset(CFG.preset) I get the following error:

HTTPError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/kagglehub/exceptions.py in kaggle_api_raise_for_status(response, resource_handle) 57 try: ---> 58 response.raise_for_status() 59 except requests.HTTPError as e:

9 frames HTTPError: 403 Client Error: Forbidden for url: https://www.kaggle.com/api/v1/models/keras/gemma/keras/gemma_1.1_instruct_2b_en/3/download/config.json

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

KaggleApiHTTPError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/kagglehub/exceptions.py in kaggle_api_raise_for_status(response, resource_handle) 78 79 # Default handling ---> 80 raise KaggleApiHTTPError(message, response=response) from e 81 82

KaggleApiHTTPError: 403 Client Error.

You don't have permission to access resource at URL: https://www.kaggle.com/models/keras/gemma/keras/gemma_1.1_instruct_2b_en/3 Please make sure you are authenticated if you are trying to access a private resource or a resource requiring consent.

To Reproduce Link for notebook

Expected behavior I expect to use the Gemma model without issues. I have kaggle json linked to correctly - this does not seem an authentication issue.

Would you like to help us fix it? Yes please!

sachinprasadhs commented 2 months ago

@nashschool , I just checked and verified that everything is working as expected.

image

nashschool commented 2 months ago

Sorry my bad, I had not requested for permission to use Gemma from Kaggle.