Artifactory supports resolving all model files using the snapshot_download API.
Note
Resolving Hugging Face models from Artifactory may take some time due to the size of the models.
To resolve all model files:
Run the following command:
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="<MODEL_NAME>", revision="<REVISION_ID>", etag_timeout=86400
)Where:
<MODEL_NAME>: The name of the model you want to resolve, formatted according to Hugging Face repository naming structureorganization/name<REVISION_ID>: The revision ID for the modelTip
To find the model's revision ID, navigate to the model card on Hugging Face Hub, open the Files and versions tab, and click History to view all commits. Click the copy icon to copy the full commit hash.
For example:
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="nsi319/legal-pegasus", revision="54ef2872d33bbff28eb09544bdecbf6699f5b0b8", etag_timeout=86400
)Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.