Configure Hugging Face SDK With Anonymous Access

JFrog Artifactory Documentation

JFrog Artifactory
Content Type
User Guide

Artifactory supports unauthenticated access to Hugging Face repositories.

To configure the Hugging Face client against Artifactory anonymously:

  1. Log out of Hugging Face Hub on your local machine

  2. Add your repository using the following command:

    export HF_HUB_ETAG_TIMEOUT=1500000000
    export HF_ENDPOINT=<JFROG_HOST_URL>/artifactory/api/huggingfaceml/<REPOSITORY_KEY>

    Make sure not to authenticate the Hugging Face client by passing your Hugging Face token.