allow spaces in bash args with "$@" (#6521)
This commit is contained in:
@@ -23,7 +23,7 @@ python finetune.py \
|
|||||||
--output_dir=$OUTPUT_DIR \
|
--output_dir=$OUTPUT_DIR \
|
||||||
--num_train_epochs=1 \
|
--num_train_epochs=1 \
|
||||||
--gpus=0 \
|
--gpus=0 \
|
||||||
--do_train $@
|
--do_train "$@"
|
||||||
|
|
||||||
rm -rf cnn_tiny
|
rm -rf cnn_tiny
|
||||||
rm -rf $OUTPUT_DIR
|
rm -rf $OUTPUT_DIR
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ python finetune.py \
|
|||||||
--val_check_interval 0.25 \
|
--val_check_interval 0.25 \
|
||||||
--max_source_length 512 --max_target_length 56 \
|
--max_source_length 512 --max_target_length 56 \
|
||||||
--freeze_embeds --max_target_length 56 --label_smoothing 0.1 \
|
--freeze_embeds --max_target_length 56 --label_smoothing 0.1 \
|
||||||
$@
|
"$@"
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ python finetune.py \
|
|||||||
--max_target_length=56 \
|
--max_target_length=56 \
|
||||||
--val_check_interval=0.1 --n_val=200 \
|
--val_check_interval=0.1 --n_val=200 \
|
||||||
--do_train --do_predict \
|
--do_train --do_predict \
|
||||||
$@
|
"$@"
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ python distillation.py \
|
|||||||
--do_predict \
|
--do_predict \
|
||||||
--fp16 \
|
--fp16 \
|
||||||
--val_check_interval 0.1 \
|
--val_check_interval 0.1 \
|
||||||
$@
|
"$@"
|
||||||
|
|||||||
@@ -20,5 +20,5 @@ python finetune.py \
|
|||||||
--tokenizer_name facebook/bart-large \
|
--tokenizer_name facebook/bart-large \
|
||||||
--warmup_steps 500 \
|
--warmup_steps 500 \
|
||||||
--output_dir distilbart-cnn-12-6 \
|
--output_dir distilbart-cnn-12-6 \
|
||||||
$@
|
"$@"
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ python distillation.py \
|
|||||||
--tokenizer_name facebook/bart-large \
|
--tokenizer_name facebook/bart-large \
|
||||||
--warmup_steps 500 \
|
--warmup_steps 500 \
|
||||||
--output_dir distilbart_xsum_12_6 \
|
--output_dir distilbart_xsum_12_6 \
|
||||||
$@
|
"$@"
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ python finetune.py \
|
|||||||
--warmup_steps 500 \
|
--warmup_steps 500 \
|
||||||
--freeze_embeds \
|
--freeze_embeds \
|
||||||
--model_name_or_path=facebook/mbart-large-cc25 \
|
--model_name_or_path=facebook/mbart-large-cc25 \
|
||||||
$@
|
"$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user