How to change cache directory?

Hello everyone. I am trying to change the installation path with the command: os.environ['HF_HOME'] = 'E:/models
However, the model is downloaded to disk C anyway. How can this problem be solved?

1 Like

If you specify the environment variable in Python code, the settings may be reverted when Python is closed, so it may be better to set them in the OS environment variable settings.

Thank you man. It helped!

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.