Collection of scripts that should make your life easier when working with the HF model hub.
This script can be used to change a parameter of multiple config files.
In the beginning the script should be run without --do_upload
to make sure the changed
configs can be checked locally before uploading them to the respective git repos, e.g.:
./change_config.py --search_key patrickvonplaten/t5-tiny-ra --key max_length --value 10
Having checked that the configs look as expected locally, one can upload them
to the repective git repos by adding --do_upload
. Adding the --rf
arg force deletes previously cloned
model repos.
./change_config.py --search_key patrickvonplaten/t5-tiny-ra --key max_length --value 10 --rf --upload
This script can be used to quickly create a new repo.
./upload_a_new_repo.py --user patrickvonplaten --pw 12345678 --org google --model mt5-small