Skip to content

Commit 0c33bcc

Browse files
committed
fixes
1 parent ed0147b commit 0c33bcc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/diffusers/utils/testing_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,8 @@ def decorator(test_case):
289289
if not torch.cuda.is_available():
290290
return unittest.skip(test_case)
291291
else:
292-
compute_capability = get_torch_cuda_device_capability()
293-
current_compute_capability = f"{compute_capability[0]}.{compute_capability[1]}"
294-
return unittest.skipUnless(float(current_compute_capability) == float(expected_compute_capability))
292+
current_compute_capability = get_torch_cuda_device_capability()
293+
return unittest.skipUnless(float(current_compute_capability) == float(expected_compute_capability), "Test not supported for this compute capability.")
295294

296295
return decorator
297296

tests/quantization/quanto/test_quanto.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ def get_dummy_init_kwargs(self):
313313

314314

315315
@require_torch_cuda_compatibility(8.0)
316-
317-
318316
class FluxTransformerInt4WeightsTest(FluxTransformerQuantoMixin, unittest.TestCase):
319317
expected_memory_reduction = 0.55
320318

@@ -323,8 +321,6 @@ def get_dummy_init_kwargs(self):
323321

324322

325323
@require_torch_cuda_compatibility(8.0)
326-
327-
328324
class FluxTransformerInt2WeightsTest(FluxTransformerQuantoMixin, unittest.TestCase):
329325
expected_memory_reduction = 0.65
330326

0 commit comments

Comments
 (0)