@@ -74,6 +74,7 @@ def setUpClass(cls):
7474 def tearDownClass (cls ):
7575 shutil .rmtree (cls .tmpdir )
7676
77+ @slow
7778 @mock .patch .dict (os .environ , {"WANDB_MODE" : "offline" , "DVCLIVE_TEST" : "true" })
7879 def test_run_glue_no_trainer (self ):
7980 tmp_dir = self .get_auto_remove_tmp_dir ()
@@ -147,6 +148,7 @@ def test_run_mlm_no_trainer(self):
147148 self .assertTrue (os .path .exists (os .path .join (tmp_dir , "epoch_0" )))
148149 self .assertTrue (os .path .exists (os .path .join (tmp_dir , "mlm_no_trainer" )))
149150
151+ @slow
150152 @mock .patch .dict (os .environ , {"WANDB_MODE" : "offline" , "DVCLIVE_TEST" : "true" })
151153 def test_run_ner_no_trainer (self ):
152154 # with so little data distributed training needs more epochs to get the score on par with 0/1 gpu
@@ -175,6 +177,7 @@ def test_run_ner_no_trainer(self):
175177 self .assertTrue (os .path .exists (os .path .join (tmp_dir , "epoch_0" )))
176178 self .assertTrue (os .path .exists (os .path .join (tmp_dir , "ner_no_trainer" )))
177179
180+ @slow
178181 @mock .patch .dict (os .environ , {"WANDB_MODE" : "offline" , "DVCLIVE_TEST" : "true" })
179182 def test_run_squad_no_trainer (self ):
180183 tmp_dir = self .get_auto_remove_tmp_dir ()
@@ -203,6 +206,7 @@ def test_run_squad_no_trainer(self):
203206 self .assertTrue (os .path .exists (os .path .join (tmp_dir , "epoch_0" )))
204207 self .assertTrue (os .path .exists (os .path .join (tmp_dir , "qa_no_trainer" )))
205208
209+ @slow
206210 @mock .patch .dict (os .environ , {"WANDB_MODE" : "offline" , "DVCLIVE_TEST" : "true" })
207211 def test_run_swag_no_trainer (self ):
208212 tmp_dir = self .get_auto_remove_tmp_dir ()
@@ -305,6 +309,7 @@ def test_run_semantic_segmentation_no_trainer(self):
305309 result = get_results (tmp_dir )
306310 self .assertGreaterEqual (result ["eval_overall_accuracy" ], 0.10 )
307311
312+ @slow
308313 @mock .patch .dict (os .environ , {"WANDB_MODE" : "offline" , "DVCLIVE_TEST" : "true" })
309314 def test_run_image_classification_no_trainer (self ):
310315 tmp_dir = self .get_auto_remove_tmp_dir ()
0 commit comments