Resolve Hugging Face Models using Libraries

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Artifactory supports resolving specific models and related files using libraries like Transformers and Diffusers, among others.

Requirements:

  • Artifactory version 7.77 and above

  • Hugging Face client version 0.19.0 and above

  • HF_HUB_ETAG_TIMEOUT parameter enabled

If these requirements are not met, you can resolve Hugging Face models by resolving whole repositories via API. For more information, see Resolve Hugging Face Models via API.

To resolve a model using libraries:

  1. On the model card in Hugging Face Hub, click Use this model on the top right side of the screen, and select a library.

    HF_Resolve_model_using_library.png
  2. Click Copy next to the command you want to use

    HF_copy.png
  3. Run the command in your code to resolve the model.