Skip to content

Commit bca3e27

Browse files
committed
up
1 parent a11cdd2 commit bca3e27

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tests/models/transformers/test_models_transformer_z_image.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from diffusers import ZImageTransformer2DModel
2323

24-
from ...testing_utils import torch_device
24+
from ...testing_utils import is_flaky, torch_device
2525
from ..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

143159
class Flux2TransformerCompileTests(TorchCompileTesterMixin, unittest.TestCase):
144160
model_class = ZImageTransformer2DModel

0 commit comments

Comments
 (0)