Skip to content

Commit 57c064b

Browse files
Fix port numbers under Model Compression
1 parent 5b8fcab commit 57c064b

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

model_compression/bert/bash_script/XTC/layer_reduction.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mkdir -p ${SAVE_PATH}
1818
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
1919
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
2020
python -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 \

model_compression/bert/bash_script/XTC/layer_reduction_1bit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mkdir -p ${SAVE_PATH}
1919
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
2020
student_model=./out/XTC/layer_reduction/best/pytorch_model.bin # <====================================================================Need student model
2121
python -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 \

model_compression/bert/bash_script/XTC/quant_1bit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mkdir -p ${SAVE_PATH}
1818
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
1919
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
2020
python -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} \

model_compression/bert/bash_script/ZeroQuant/zero_quant.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mkdir -p ${SAVE_PATH}
1414
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
1515
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
1616
python -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} \

model_compression/bert/bash_script/ZeroQuant/zero_quant_lkd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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} \

model_compression/bert/bash_script/layer_reduction.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ CONFIG=${config_json}
6565
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6666
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
6767
run_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} \

model_compression/bert/bash_script/pruning_row.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CONFIG=${config_json}
6767
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6868
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
6969
run_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} \

model_compression/bert/bash_script/pruning_sparse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CONFIG=${config_json}
6767
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6868
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
6969
run_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} \

model_compression/bert/bash_script/quant_activation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CONFIG=${config_json}
6767
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6868
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
6969
run_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} \

model_compression/bert/bash_script/quant_weight.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CONFIG=${config_json}
6666
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the following command will first download huggingface models and then compress %%%%%%%
6767
MODEL=yoshitomo-matsubara/bert-base-uncased-${TASK_NAME} ## for both student and teacher
6868
run_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} \

0 commit comments

Comments
 (0)