Skip to content

Commit

Permalink
Test HF online for SGD-GEN only (#3681)
Browse files Browse the repository at this point in the history
* Test HF online for SGD only

Signed-off-by: MaximumEntropy <[email protected]>

* Fix typo

Signed-off-by: MaximumEntropy <[email protected]>

Co-authored-by: Yang Zhang <[email protected]>
  • Loading branch information
MaximumEntropy and yzhang123 authored Feb 15, 2022
1 parent 5d5fedd commit 277b088
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ pipeline {
parallel {
stage('SGD-GEN') {
steps {
sh 'cd examples/nlp/dialogue_state_tracking_generative && \
sh 'TRANSFORMERS_OFFLINE=0 && cd examples/nlp/dialogue_state_tracking_generative && \
python sgd_gen.py \
model.dataset.data_dir=/home/TestData/nlp/sgd_small \
model.language_model.lm_checkpoint=/home/TestData/nlp/gpt2/pytorch_model.bin\
Expand All @@ -745,7 +745,7 @@ pipeline {
}
stage('SGD-GEN Backward compatible with SGDQA') {
steps {
sh 'cd examples/nlp/dialogue_state_tracking_generative && \
sh 'TRANSFORMERS_OFFLINE=0 && cd examples/nlp/dialogue_state_tracking_generative && \
python sgd_gen.py \
model.dataset.data_dir=/home/TestData/nlp/sgd_small \
model.dataset.dialogues_example_dir=sgd_gen_bert_outputs \
Expand All @@ -762,7 +762,7 @@ pipeline {
model.language_model.pretrained_model_name=bert-base-cased \
trainer.accelerator=ddp \
exp_manager=null && \
rm -rf sgd_gen_bert_outputs'
rm -rf sgd_gen_bert_outputs && TRANSFORMERS_OFFLINE=1'
}
}
}
Expand Down

0 comments on commit 277b088

Please sign in to comment.