ApolloResearch / rib

Library for methods related to the Local Interaction Basis (LIB)
MIT License
2 stars 0 forks source link

Set huggingface cache at the right point #356

Closed stefan-apollo closed 4 months ago

stefan-apollo commented 4 months ago

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.