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

[Feature] Set cache_dir like the one used in AutoModel in HuggingFace transformers #3096

Open
Yuco-Z opened this issue Jan 27, 2025 · 3 comments

Comments

@Yuco-Z
Copy link

Yuco-Z commented Jan 27, 2025

Motivation

How to set the cache_dir in pipeline for model downloading?

Related resources

No response

Additional context

No response

@youyc22
Copy link

youyc22 commented Jan 28, 2025

downlod_dir in PytorchEngineConfig and TurbomindEngineConfig

@Lychee-acaca
Copy link

You can add HF_HOME path to your system environment variables, this path will be the default path where the model is saved.
https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables#hfhome

@lvhan028
Copy link
Collaborator

Hi, @Yuco-Z we recommand the method provided by @Lychee-acaca above

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

No branches or pull requests

4 participants