Skip to content

Commit 54301d9

Browse files
committed
revise batch squad
1 parent e019e27 commit 54301d9

6 files changed

Lines changed: 13 additions & 4 deletions

File tree

scripts/question_answering/commands/run_squad2_albert_base.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MODEL_NAME=google_albert_base_v2
55
nlp_data prepare_squad --version ${VERSION}
66

77
# Run the script
8+
89
python3 run_squad.py \
910
--model_name ${MODEL_NAME} \
1011
--data_dir squad \

scripts/question_answering/commands/run_squad2_albert_large.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MODEL_NAME=google_albert_large_v2
55
nlp_data prepare_squad --version ${VERSION}
66

77
# Run the script
8+
89
python3 run_squad.py \
910
--model_name ${MODEL_NAME} \
1011
--data_dir squad \

scripts/question_answering/commands/run_squad2_albert_xlarge.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MODEL_NAME=google_albert_xlarge_v2
55
nlp_data prepare_squad --version ${VERSION}
66

77
# Run the script
8+
89
python3 run_squad.py \
910
--model_name ${MODEL_NAME} \
1011
--data_dir squad \

scripts/question_answering/commands/run_squad2_albert_xxlarge.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ MODEL_NAME=google_albert_xxlarge_v2
55
nlp_data prepare_squad --version ${VERSION}
66

77
# Run the script
8+
89
python3 run_squad.py \
910
--model_name ${MODEL_NAME} \
1011
--data_dir squad \

tools/batch/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Batch Job Examples
2+
3+
## Conversion Toolkits
4+
## Question Answering
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
python3 tools/batch/submit-job.py \
1+
MODEL_NAME=$1
2+
3+
python3 submit-job.py \
24
--region us-east-1 \
35
--source-ref batch \
46
--job-type g4dn.12x \
5-
--name test_squad_electra_base \
7+
--name test_squad_${MODEL_NAME} \
68
--work-dir scripts/question_answering \
79
--remote https://github.com/zheyuye/gluon-nlp/ \
8-
--command 'bash commands/run_squad2_electra_base.sh | tee stdout.log' \
9-
--wait
10+
--command 'bash commands/run_squad2_'${MODEL_NAME}'.sh | tee stdout.log'

0 commit comments

Comments
 (0)