Resolve Hugging Face Models From Private Repositories

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Starting from Artifactory version 7.77.x, Artifactory supports resolving models from private Hugging Face repositories.

To configure a remote repository to resolve models from a private repository:

  1. Go to Hugging Face Hub, click on your profile on the top right side of the screen, and click Settings

  2. Select Access Tokens from the sidebar menu

  3. Select the token you’d like to use and click the copy icon to copy the token

    1. (Optional) If you do not have a token, click New token, enter a name for the token and select the read role, and then click Generate a token

    Screenshot_2023-12-24_at_11_20_07.png
  4. Go to your remote repository settings in Artifactory, and enter the token you copied from Hugging face in the Password / Access Token field. There is no need to fill in the User Name field. You can now resolve models from your private repository to your Hugging Face remote repository.

    Screenshot_2023-12-21_at_11_25_44.png