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

Set huggingface cache at the right point #356

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

stefan-apollo
Copy link
Collaborator

@stefan-apollo stefan-apollo commented Mar 5, 2024

Set huggingface cache at the right point

Description

Set environ["HF_HOME"] = "/mnt/ssd-interp/huggingface_cache/" in the run files at the beginning before importing other packages.

Set "HF_HOME": "/mnt/ssd-interp/huggingface_cache/", in the debugger config.

Related Issue

None.

Motivation and Context

The previous PR #350 just changed settings.py but settings.py is loaded too late.

Also setting it in the debugger config in case the user runs some non run_ script with the debugger.

How Has This Been Tested?

Using it for feature viz code and seems good so far.

Does this PR introduce a breaking change?

No.

@stefan-apollo stefan-apollo merged commit 68a2fc7 into main Mar 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant