File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
tests/models/transformers Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 2121
2222from diffusers import ZImageTransformer2DModel
2323
24- from ...testing_utils import torch_device
24+ from ...testing_utils import is_flaky , torch_device
2525from ..test_modeling_common import ModelTesterMixin , TorchCompileTesterMixin
2626
2727
@@ -139,6 +139,22 @@ def test_group_offloading(self):
139139 def test_group_offloading_with_disk (self ):
140140 super ().test_group_offloading_with_disk ()
141141
142+ @is_flaky (max_attempts = 10 )
143+ def test_auto_model (self ):
144+ super ().test_auto_model ()
145+
146+ @is_flaky (max_attempts = 10 )
147+ def test_determinism (self ):
148+ super ().test_determinism ()
149+
150+ @is_flaky (max_attempts = 10 )
151+ def test_from_save_pretrained (self ):
152+ super ().test_from_save_pretrained ()
153+
154+ @is_flaky (max_attempts = 10 )
155+ def test_from_save_pretrained_variant (self ):
156+ super ().test_from_save_pretrained_variant ()
157+
142158
143159class Flux2TransformerCompileTests (TorchCompileTesterMixin , unittest .TestCase ):
144160 model_class = ZImageTransformer2DModel
You can’t perform that action at this time.
0 commit comments