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

infer download_root from XDG_CACHE_HOME if avail #257

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

dmarx
Copy link
Contributor

@dmarx dmarx commented Oct 5, 2022

This PR facilitates user-specified override download location for model checkpoints.

The environment variable XDG_CACHE_HOME defaults to the user cache (~/.cache) and is widely adopted for specifying checkpoint download locations across the pytorch ecosystem, see for example how it is used by huggingface and torch.hub.

Details regarding this and related environment variables can be found here: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@jongwook jongwook merged commit 82725ce into openai:main Oct 9, 2022
pessimal pushed a commit to pessimal/whisper-for-low-vram that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants