ARTIFACTORY: Step by Step guide to configure HuggingFace Smart Remote Repository

Products
Frog_Artifactory
Content Type
Administration_Platform
AuthorFullName__c
Vaibhav Jain
articleNumber
000006489
FirstPublishedDate
2025-06-30T07:11:23Z
lastModifiedDate
2025-06-29

ARTIFACTORY: Step by Step guide to configure HuggingFace Smart Remote Repository

Introduction 

This article details the configuration of a HuggingFace smart remote repository.

A smart remote repository acts as a proxy for local, remote, and federated repositories residing on a separate Artifactory instance. A crucial prerequisite for this setup is that both Artifactory instances must possess distinct licenses. The subsequent steps outline the process for establishing a HuggingFace smart remote repository.


Creating a HuggingFace Smart Remote Repository: A Step-by-Step Guide

We will use two Artifactory instances, `art1` and `art2`, as examples.

Step 1: Create a Source Repository in `art1`

On the `art1` instance, you can create a source repository by:
  • Navigating to the User menu and selecting 'Quick Repository Creation'.
  • Going directly to the Repositories Section and initiating repository creation there.
User-added image 
Step 2: Choose 'HuggingFace' as the package type, assign a name, and click 'Create'. This action will generate both local and remote repositories for the HuggingFace package.

To verify the newly created remote repository, go to Administration -> Repositories -> Remote. You'll observe that the remote repository is set to https://huggingface.co by default.
   
User-added image 
Step 3: On a second Artifactory instance (art2), configure a new remote repository of type HuggingFace. Set the URL to that of art1, appending `/api/huggingfaceml` to make it a Smart repository.

For example: `http://host:port/artifactory/api/huggingfaceml/repoKey`

Enter the necessary username and password, then test the connection.

User-added image 

Step 4: Test the new smart repository in Artifactory Administration by configuring it according to the "Set Me Up" instructions, then proceed to install your models and datasets.

The HuggingFace Smart Remote Repository is now fully configured.

For further details on HuggingFace Repositories and their setup, please consult the following documentation:
  1. HuggingFace Repositories
  2. How to download models from Artifactory using HuggingFace Repositories
  3. How to download private/gated models from Artifactory using HuggingFace Repositories