Skip to content

huggingface/efficient_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Efficient_scripts

Collection of scripts that should make your life easier when working with the HF model hub.

change_config.py

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

upload_a_new_repo.py

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages