Dummy_agent_library.ipynb not working for me

Hi
This may sound dumb, but I am not able to get the output for cell 3 of the dummy_agent_library.ipynb.
I am getting the error “Invalid credentials in Authorization header”.
I already have access to the Meta Llama models.
I have tested the model with read and write tokens. I have copied these tokens in the secret as well as in cell 2.
I have also tried #client = InferenceClient(“https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud”)

But nothing is working for me

1 Like

This is the complete error

HTTPError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)
408 try:
→ 409 response.raise_for_status()
410 except HTTPError as e:

6 frames
HTTPError: 401 Client Error: Unauthorized for url: https://router.huggingface.co/hf-inference/models/meta-llama/Llama-3.2-3B-Instruct

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

HfHubHTTPError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)
480 # Convert HTTPError into a HfHubHTTPError to display request information
481 # as well (request id and/or server error message)
→ 482 raise _format(HfHubHTTPError, str(e), response) from e
483
484

HfHubHTTPError: 401 Client Error: Unauthorized for url: https://router.huggingface.co/hf-inference/models/meta-llama/Llama-3.2-3B-Instruct (Request ID: Root=1-681a5d47-07dc05de5cc5d36a3bdf2179;2ff8c0a3-3b5d-404c-862d-6b6fbad084bd)

Invalid credentials in Authorization header

1 Like

Same for me. I went to the inference endpoint. Seems like the Llama model is not deployed there.

1 Like

Currently, many models are in a non-deploy state.