Option to use ~/.cache/huggingface/hub
for downloaded models
#102
Labels
hub
Related to the Swift -> Hugging Face Hub integration
The Python transformers library downloads models to
~/.cache/huggingface/hub
. This allows reuse of previously downloaded models by multiple apps. Currently, callingHubApi.shapshot
in swift-transformers downloads the models to a specified directory, with a different directory structure than the one used by Python transformers. As more apps get built with these libraries, it would be great if swift-transformers and Python transformers could share models in the user's home directory on macOS. (If I understand correctly, this isn't possible on iOS, although apps within the same app group can save models to the app group's shared directory.)The text was updated successfully, but these errors were encountered: