Unverified Commit d2da2cb2 authored by Sam Shleifer's avatar Sam Shleifer Committed by GitHub
Browse files

allow spaces in bash args with "$@" (#6521)

parent b41cc0b8
......@@ -23,7 +23,7 @@ python finetune.py \
--output_dir=$OUTPUT_DIR \
--num_train_epochs=1 \
--gpus=0 \
--do_train $@
--do_train "$@"
rm -rf cnn_tiny
rm -rf $OUTPUT_DIR
......
......@@ -11,4 +11,4 @@ python finetune.py \
--val_check_interval 0.25 \
--max_source_length 512 --max_target_length 56 \
--freeze_embeds --max_target_length 56 --label_smoothing 0.1 \
$@
"$@"
......@@ -11,4 +11,4 @@ python finetune.py \
--max_target_length=56 \
--val_check_interval=0.1 --n_val=200 \
--do_train --do_predict \
$@
"$@"
......@@ -7,4 +7,4 @@ python distillation.py \
--do_predict \
--fp16 \
--val_check_interval 0.1 \
$@
"$@"
......@@ -20,5 +20,5 @@ python finetune.py \
--tokenizer_name facebook/bart-large \
--warmup_steps 500 \
--output_dir distilbart-cnn-12-6 \
$@
"$@"
......@@ -18,4 +18,4 @@ python distillation.py \
--tokenizer_name facebook/bart-large \
--warmup_steps 500 \
--output_dir distilbart_xsum_12_6 \
$@
"$@"
......@@ -15,4 +15,4 @@ python finetune.py \
--warmup_steps 500 \
--freeze_embeds \
--model_name_or_path=facebook/mbart-large-cc25 \
$@
"$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment