Skip to content

Commit 359754e

Browse files
committed
update
1 parent f157e98 commit 359754e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/pipelines/stable_video_diffusion/test_stable_video_diffusion.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
StableVideoDiffusionPipeline,
1919
UNetSpatioTemporalConditionModel,
2020
)
21-
from diffusers.utils import is_accelerate_available, is_accelerate_version, load_image, logging
21+
from diffusers.utils import load_image, logging
2222
from diffusers.utils.import_utils import is_xformers_available
2323
from diffusers.utils.testing_utils import (
2424
CaptureLogger,
@@ -404,10 +404,8 @@ def test_to_dtype(self):
404404
model_dtypes = [component.dtype for component in pipe.components.values() if hasattr(component, "dtype")]
405405
self.assertTrue(all(dtype == torch.float16 for dtype in model_dtypes))
406406

407-
@unittest.skipIf(
408-
not is_accelerate_available() or is_accelerate_version("<", "0.14.0"),
409-
reason="CPU offload is only available with `accelerate v0.14.0` or higher",
410-
)
407+
@require_non_cpu
408+
@require_accelerate_version_greater("0.14.0")
411409
def test_sequential_cpu_offload_forward_pass(self, expected_max_diff=1e-4):
412410
components = self.get_dummy_components()
413411
pipe = self.pipeline_class(**components)

0 commit comments

Comments
 (0)