Closed stefan-apollo closed 8 months ago
Set environ["HF_HOME"] = "/mnt/ssd-interp/huggingface_cache/" in the run files at the beginning before importing other packages.
environ["HF_HOME"] = "/mnt/ssd-interp/huggingface_cache/"
Set "HF_HOME": "/mnt/ssd-interp/huggingface_cache/", in the debugger config.
"HF_HOME": "/mnt/ssd-interp/huggingface_cache/",
None.
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.
Using it for feature viz code and seems good so far.
No.
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.