Unable to access Llama3.1 model despite having access granted

HTTPError: 400 Client Error: Bad Request for url: https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3.1-8B-Instruct

That’s normal. This model is Gated, so you have to provide personal information and use a token for your account to use it.
If that’s not possible, you’ll have to find another copy of one of these.