How to change cache directory?
Hello everyone. I am trying to change the installation path with the command:os.environ['HF_HOME'] = 'E:/modelsHowever, the model is downloaded to disk C anyway. How can this problem be solved?
2025-01-18T02:29:03Z
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.stackoverflow.comHow to change huggingface transformers default cache directoryhuggingface-transformersasked byIvan Leeon07:28AM - 08 Aug 20 UTC
2025-01-18T10:15:26Z
Thank you man. It helped!
2025-01-18T22:16:01Z
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.