mirror of
https://github.com/huggingface/diffusers.git
synced 2025-12-06 12:34:13 +08:00
up
This commit is contained in:
@@ -21,7 +21,7 @@ import torch
|
||||
|
||||
from diffusers import ZImageTransformer2DModel
|
||||
|
||||
from ...testing_utils import torch_device
|
||||
from ...testing_utils import is_flaky, torch_device
|
||||
from ..test_modeling_common import ModelTesterMixin, TorchCompileTesterMixin
|
||||
|
||||
|
||||
@@ -139,6 +139,22 @@ class ZImageTransformerTests(ModelTesterMixin, unittest.TestCase):
|
||||
def test_group_offloading_with_disk(self):
|
||||
super().test_group_offloading_with_disk()
|
||||
|
||||
@is_flaky(max_attempts=10)
|
||||
def test_auto_model(self):
|
||||
super().test_auto_model()
|
||||
|
||||
@is_flaky(max_attempts=10)
|
||||
def test_determinism(self):
|
||||
super().test_determinism()
|
||||
|
||||
@is_flaky(max_attempts=10)
|
||||
def test_from_save_pretrained(self):
|
||||
super().test_from_save_pretrained()
|
||||
|
||||
@is_flaky(max_attempts=10)
|
||||
def test_from_save_pretrained_variant(self):
|
||||
super().test_from_save_pretrained_variant()
|
||||
|
||||
|
||||
class Flux2TransformerCompileTests(TorchCompileTesterMixin, unittest.TestCase):
|
||||
model_class = ZImageTransformer2DModel
|
||||
|
||||
Reference in New Issue
Block a user