Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_model should allow a parameter like cache_dir #86

Open
chitralverma opened this issue May 10, 2024 · 1 comment
Open

get_model should allow a parameter like cache_dir #86

chitralverma opened this issue May 10, 2024 · 1 comment

Comments

@chitralverma
Copy link

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.

@ashvardanian
Copy link
Contributor

Makes sense! Can you please open a PR, @chitralverma?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants