Serving Private & Gated Models
Serving Private & Gated Models
If the model you wish to serve is behind gated access or the model repository on Hugging Face Hub is private, and you have access to the model, you can provide your Hugging Face Hub access token. You can generate and copy a read token from Hugging Face Hub tokens page
If youβre using the CLI, set the HUGGING_FACE_HUB_TOKEN
environment variable. For example:
Copied
If you would like to do it through Docker, you can provide your token by specifying HUGGING_FACE_HUB_TOKEN
as shown below.
Copied
Last updated