PyQt widget designed to conveniently set up a cache directory for storing Hugging Face models
When you are concerned about hard disk space or want to save models in a specific directory, this widget allows you to manage the cache directory in a GUI manner. The default value is TRANSFORMERS_CACHE (the default path where Hugging Face models are downloaded), but you can change it to your preferred location.
The modified path is saved in an ini file, and if you want to revert to the default value, simply call the resetCacheDir
. You can also open the file from the input field's context menu by right-clicking, which will allow you to navigate to the desired location.
This is directly used in huggingface_gui.
- PyQt5 >= 5.14
- transformers
- git clone ~
- pip install -r requirements.txt
- python main.py
- findClicked
- onCacheDirSet
- resetCacheDir
- getCacheDirectory