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.
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.
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.
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:
- HuggingFace Repositories
- How to download models from Artifactory using HuggingFace Repositories
- How to download private/gated models from Artifactory using HuggingFace Repositories