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_TIMEOUTparameter 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:
On the model card in Hugging Face Hub, click Use this model on the top right side of the screen, and select a library.
Click Copy next to the command you want to use
Run the command in your code to resolve the model.