Skip to content

PyQt widget designed to conveniently set up a cache directory for storing Hugging Face models

License

Notifications You must be signed in to change notification settings

yjg30737/pyqt-huggingface-set-path-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-huggingface-set-path-widget

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.

Requirements

  • PyQt5 >= 5.14
  • transformers

How to Run

  1. git clone ~
  2. pip install -r requirements.txt
  3. python main.py

Method & Signal Overview

Signal

  • findClicked
  • onCacheDirSet

Method

  • resetCacheDir
  • getCacheDirectory

Preview

image

About

PyQt widget designed to conveniently set up a cache directory for storing Hugging Face models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages