init
Browse files- hf_change_visibility.py +11 -0
- hf_remove_models.py +11 -0
- training_scripts/script.sh +14 -3
hf_change_visibility.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pprint import pprint
|
2 |
+
from huggingface_hub import ModelFilter, HfApi
|
3 |
+
|
4 |
+
api = HfApi()
|
5 |
+
filt = ModelFilter(author='cardiffnlp')
|
6 |
+
models = api.list_models(filter=filt)
|
7 |
+
models_filtered = [i.modelId for i in models if 'mt5' in i.modelId]
|
8 |
+
pprint(sorted(models_filtered))
|
9 |
+
input("private all? >>>")
|
10 |
+
for i in models_filtered:
|
11 |
+
api.update_repo_visibility(repo_id=i, repo_type='model', private=True)
|
hf_remove_models.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pprint import pprint
|
2 |
+
from huggingface_hub import ModelFilter, HfApi
|
3 |
+
|
4 |
+
api = HfApi()
|
5 |
+
filt = ModelFilter(author='cardiffnlp')
|
6 |
+
models = api.list_models(filter=filt)
|
7 |
+
models_filtered = [i.modelId for i in models if 'cross-validation' in i.modelId]
|
8 |
+
pprint(sorted(models_filtered))
|
9 |
+
input("delete all? >>>")
|
10 |
+
for i in models_filtered:
|
11 |
+
api.delete_repo(repo_id=i, repo_type='model')
|
training_scripts/script.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
|
2 |
# training
|
3 |
## en_2022
|
4 |
-
python finetune_t5.py --dataset-name en_2022 --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
5 |
git clone https://huggingface.co/cardiffnlp/mt5-small-tweet-topic-multi-en-2022
|
6 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name en --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
7 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name ja --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
@@ -9,19 +9,30 @@ python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name gr -
|
|
9 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name es --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
10 |
cd mt5-small-tweet-topic-multi-en-2022 && git add . && git commit -m "update" && git push origin main && cd ..
|
11 |
## mix
|
12 |
-
python finetune_t5.py --dataset-name mix --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
13 |
git clone https://huggingface.co/cardiffnlp/mt5-small-tweet-topic-multi-mix
|
14 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name en --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
15 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name ja --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
16 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name gr --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
17 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name es --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
18 |
cd mt5-small-tweet-topic-multi-mix && git add . && git commit -m "update" && git push origin main && cd ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
## single
|
20 |
python finetune_t5.py --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en --model-organization cardiffnlp --use-auth-token
|
21 |
python finetune_t5.py --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-ja --model-organization cardiffnlp --use-auth-token
|
22 |
python finetune_t5.py --dataset-name gr --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-gr --model-organization cardiffnlp --use-auth-token
|
23 |
python finetune_t5.py --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-es --model-organization cardiffnlp --use-auth-token
|
24 |
-
##
|
25 |
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-es --model-organization cardiffnlp --use-auth-token
|
26 |
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-en --model-organization cardiffnlp --use-auth-token
|
27 |
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-ja --model-organization cardiffnlp --use-auth-token
|
|
|
1 |
|
2 |
# training
|
3 |
## en_2022
|
4 |
+
python finetune_t5.py --dataset-name en_2022 --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token --skip-test
|
5 |
git clone https://huggingface.co/cardiffnlp/mt5-small-tweet-topic-multi-en-2022
|
6 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name en --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
7 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name ja --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
|
|
9 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022 --dataset-name es --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022 --model-organization cardiffnlp --use-auth-token
|
10 |
cd mt5-small-tweet-topic-multi-en-2022 && git add . && git commit -m "update" && git push origin main && cd ..
|
11 |
## mix
|
12 |
+
python finetune_t5.py --dataset-name mix --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token --skip-test
|
13 |
git clone https://huggingface.co/cardiffnlp/mt5-small-tweet-topic-multi-mix
|
14 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name en --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
15 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name ja --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
16 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name gr --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
17 |
python finetune_t5.py -m mt5-small-tweet-topic-multi-mix --dataset-name es --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-mix --model-organization cardiffnlp --use-auth-token
|
18 |
cd mt5-small-tweet-topic-multi-mix && git add . && git commit -m "update" && git push origin main && cd ..
|
19 |
+
|
20 |
+
## en_2022 -> mix
|
21 |
+
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name mix --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-mix --model-organization cardiffnlp --use-auth-token --skip-test
|
22 |
+
git clone https://huggingface.co/cardiffnlp/mt5-small-tweet-topic-multi-en-2022-mix
|
23 |
+
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022-mix --dataset-name en --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-mix --model-organization cardiffnlp --use-auth-token
|
24 |
+
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022-mix --dataset-name ja --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-mix --model-organization cardiffnlp --use-auth-token
|
25 |
+
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022-mix --dataset-name gr --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-mix --model-organization cardiffnlp --use-auth-token
|
26 |
+
python finetune_t5.py -m mt5-small-tweet-topic-multi-en-2022-mix --dataset-name es --skip-train --skip-validate --skip-upload --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-mix --model-organization cardiffnlp --use-auth-token
|
27 |
+
cd mt5-small-tweet-topic-multi-en-2022-mix && git add . && git commit -m "update" && git push origin main && cd ..
|
28 |
+
|
29 |
+
|
30 |
## single
|
31 |
python finetune_t5.py --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en --model-organization cardiffnlp --use-auth-token
|
32 |
python finetune_t5.py --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-ja --model-organization cardiffnlp --use-auth-token
|
33 |
python finetune_t5.py --dataset-name gr --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-gr --model-organization cardiffnlp --use-auth-token
|
34 |
python finetune_t5.py --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-es --model-organization cardiffnlp --use-auth-token
|
35 |
+
## en_2022 -> single
|
36 |
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-es --model-organization cardiffnlp --use-auth-token
|
37 |
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-en --model-organization cardiffnlp --use-auth-token
|
38 |
python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en-2022-ja --model-organization cardiffnlp --use-auth-token
|