File tree Expand file tree Collapse file tree 10 files changed +13
-13
lines changed
model_compression/bert/bash_script Expand file tree Collapse file tree 10 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ mkdir -p ${SAVE_PATH}
1818# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
1919MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
2020python -m torch.distributed.launch --nproc_per_node=1 \
21- --master_port 66665 \
21+ --master_port 6665 \
2222 run_glue_no_trainer.py \
2323 --seed 42 \
2424 --distill_method ${STAGE} \
@@ -47,7 +47,7 @@ python -m torch.distributed.launch --nproc_per_node=1 \
4747# MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
4848# student_model=./out/XTC/layer_reduction/best/pytorch_model.bin # <====================================================================Need student model
4949# python -m torch.distributed.launch --nproc_per_node=1 \
50- # --master_port 66665 \
50+ # --master_port 6665 \
5151# run_glue_no_trainer.py \
5252# --pretrained_dir_student ${student_model} \
5353# --seed 42 \
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ mkdir -p ${SAVE_PATH}
1919MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
2020student_model=./out/XTC/layer_reduction/best/pytorch_model.bin # <====================================================================Need student model
2121python -m torch.distributed.launch --nproc_per_node=1 \
22- --master_port 66664 \
22+ --master_port 6664 \
2323 run_glue_no_trainer.py \
2424 --pretrained_dir_student ${student_model} \
2525 --seed 42 \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ mkdir -p ${SAVE_PATH}
1818# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
1919MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
2020python -m torch.distributed.launch --nproc_per_node=1 \
21- --master_port 66664 \
21+ --master_port 6664 \
2222 run_glue_no_trainer.py \
2323 --seed 42 \
2424 --distill_method ${STAGE} \
@@ -43,7 +43,7 @@ python -m torch.distributed.launch --nproc_per_node=1 \
4343# TEACHER=/blob/users/xwu/compression/huggingface_models/bert-base-uncased-${TASK_NAME}/pytorch_model.bin
4444# STUDENT=${TEACHER}
4545# python -m torch.distributed.launch --nproc_per_node=1 \
46- # --master_port 66667 \
46+ # --master_port 6667 \
4747# run_glue_no_trainer_clean.py \
4848# --seed 42 \
4949# --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mkdir -p ${SAVE_PATH}
1414# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
1515MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
1616python -m torch.distributed.launch --nproc_per_node=1 \
17- --master_port 66664 \
17+ --master_port 6664 \
1818 run_glue_no_trainer.py \
1919 --seed 42 \
2020 --distill_method one_stage \
@@ -37,7 +37,7 @@ python -m torch.distributed.launch --nproc_per_node=1 \
3737# TEACHER=/blob/users/xwu/compression/huggingface_models/bert-base-uncased-${TASK_NAME}/pytorch_model.bin
3838# STUDENT=${TEACHER}
3939# python -m torch.distributed.launch --nproc_per_node=1 \
40- # --master_port 66667 \
40+ # --master_port 6667 \
4141# run_glue_no_trainer_clean.py \
4242# --seed 42 \
4343# --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ python -m torch.distributed.launch --nproc_per_node=1 \
3939# TEACHER=/blob/users/xwu/compression/huggingface_models/bert-base-uncased-${TASK_NAME}/pytorch_model.bin
4040# STUDENT=${TEACHER}
4141# python -m torch.distributed.launch --nproc_per_node=1 \
42- # --master_port 66667 \
42+ # --master_port 6667 \
4343# run_glue_no_trainer_clean.py \
4444# --seed 42 \
4545# --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ CONFIG=${config_json}
6565# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6666MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
6767run_cmd=" python -m torch.distributed.launch --nproc_per_node=1 \
68- --master_port 66664 \
68+ --master_port 6664 \
6969 run_glue_no_trainer.py \
7070 --seed 42 \
7171 --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ CONFIG=${config_json}
6767# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6868MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
6969run_cmd=" python -m torch.distributed.launch --nproc_per_node=1 \
70- --master_port 66669 \
70+ --master_port 6669 \
7171 run_glue_no_trainer.py \
7272 --seed 42 \
7373 --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ CONFIG=${config_json}
6767# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6868MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
6969run_cmd=" python -m torch.distributed.launch --nproc_per_node=1 \
70- --master_port 66668 \
70+ --master_port 6668 \
7171 run_glue_no_trainer.py \
7272 --seed 42 \
7373 --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ CONFIG=${config_json}
6767# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6868MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
6969run_cmd=" python -m torch.distributed.launch --nproc_per_node=1 \
70- --master_port 66666 \
70+ --master_port 6666 \
7171 run_glue_no_trainer.py \
7272 --seed 42 \
7373 --distill_method ${STAGE} \
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ CONFIG=${config_json}
6666# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6767MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} # # for both student and teacher
6868run_cmd=" python -m torch.distributed.launch --nproc_per_node=1 \
69- --master_port 66665 \
69+ --master_port 6665 \
7070 run_glue_no_trainer.py \
7171 --seed 42 \
7272 --distill_method ${STAGE} \
You can’t perform that action at this time.
0 commit comments