Text Generation
Transformers
Safetensors
dbrx
conversational
text-generation-inference

Unable to Access Gated Model Repository databricks/dbrx-instruct

#11
by lambda1989 - opened

Hello,

image.png

I am encountering an issue while trying to access the databricks/dbrx-instruct model. I received an error message indicating that I do not have the permissions to access this gated repository. I have been granted access to this model, but I am still unable to access this model from https://huggingface.co/spaces/hf-accelerate/model-memory-usage.

Here is the complete error message I received:

You are trying to access a gated repo.
Make sure to have access to it at https://huggingface.co/databricks/dbrx-instruct.
401 Client Error. (Request ID: Root=1-66052354-3ce16674589d74e62a9c0b23;a9f75ddc-11b4-46cf-82ac-71c94ebaf5e0)
Cannot access gated repo for url https://huggingface.co/databricks/dbrx-instruct/resolve/main/modeling_dbrx.py.
Repo model databricks/dbrx-instruct is gated. You must be authenticated to access it.

I am unsure if there are additional steps I need to take to gain access, or if there are certain authentication details I need to configure in my environment. I would appreciate any assistance in resolving this issue.

Thank you!

Databricks org

Did you supply your HF token when loading the model?

add the following code to the python script

from huggingface_hub import login
login()

and apply your HF token.

it work for me.

Databricks org

Closing, thanks @srowen for updating the model card text as well.

abhi-db changed discussion status to closed

Sign up or log in to comment