-
Notifications
You must be signed in to change notification settings - Fork 303
Description
Is Gemma not available? How do I obtain permission to uses it?
preprocessor = keras_nlp.models.GemmaCausalLMPreprocessor.from_preset(
"gemma_2b_en", sequence_length=256
)
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)
61 try:
---> 62 response.raise_for_status()
63 except requests.HTTPError as e:
11 frames
HTTPError: 403 Client Error: Forbidden for url: https://www.kaggle.com/api/v1/models/keras/gemma/keras/gemma_2b_en/3/download/config.json
The above exception was the direct cause of the following exception:
KaggleApiHTTPError Traceback (most recent call last)
KaggleApiHTTPError: 403 Client Error.
You don't have permission to access resource at URL: https://www.kaggle.com/models/keras/gemma/keras/gemma_2b_en/3. The server reported the following issues: User has not consented to terms of use.
Please make sure you are authenticated if you are trying to access a private resource or a resource requiring consent.
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/keras_hub/src/utils/preset_utils.py in get_file(preset, path)
156 )
157 else:
--> 158 raise ValueError(message)
159 except ValueError as e:
160 message = str(e)
ValueError: 403 Client Error.
You don't have permission to access resource at URL: https://www.kaggle.com/models/keras/gemma/keras/gemma_2b_en/3. The server reported the following issues: User has not consented to terms of use.
Please make sure you are authenticated if you are trying to access a private resource or a resource requiring consent.