Skip to content

get_model should allow a parameter like cache_dir #86

Description

@chitralverma

Currently, the models and preprocessors are downloaded to ~/.cache/huggingface/hub/ ... path and users do not have capability to change this. Most libs like sentence_transformers, fastembed provide something similar.

This feature request allows users to set a custom path where the model etc. can be downloaded.

This option can also prevent unnecessary downloads if the model already exists at the provided location.

Let me know if this request makes sense, i can drop a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions