Skip to content

Commit 8b33123

Browse files
committed
cog
1 parent c56add7 commit 8b33123

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/lora/test_lora_layers_cogvideox.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from diffusers.utils.testing_utils import (
3030
floats_tensor,
3131
is_peft_available,
32+
is_torch_version,
3233
require_peft_backend,
3334
skip_mps,
3435
torch_device,
@@ -126,6 +127,10 @@ def get_dummy_inputs(self, with_generator=True):
126127
return noise, input_ids, pipeline_inputs
127128

128129
@skip_mps
130+
@unittest.skipIf(
131+
torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),
132+
"Test not supported on PyTorch 2.5 and CPU.",
133+
)
129134
def test_lora_fuse_nan(self):
130135
for scheduler_cls in self.scheduler_classes:
131136
components, text_lora_config, denoiser_lora_config = self.get_dummy_components(scheduler_cls)

0 commit comments

Comments
 (0)