Skip to content

Option to use ~/.cache/huggingface/hub for downloaded models #102

@DePasqualeOrg

Description

@DePasqualeOrg

The Python transformers library downloads models to ~/.cache/huggingface/hub. This allows reuse of previously downloaded models by multiple apps. Currently, calling HubApi.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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershubRelated to the Swift -> Hugging Face Hub integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions