Don't run fp16 MusicGen tests on CPU (#30466)
This commit is contained in:
@@ -35,6 +35,7 @@ from transformers.testing_utils import (
|
||||
is_torch_available,
|
||||
require_flash_attn,
|
||||
require_torch,
|
||||
require_torch_accelerator,
|
||||
require_torch_fp16,
|
||||
require_torch_gpu,
|
||||
require_torch_sdpa,
|
||||
@@ -1483,6 +1484,7 @@ class MusicgenTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin,
|
||||
self.assertIsNotNone(output_ids_generate)
|
||||
|
||||
@require_torch_fp16
|
||||
@require_torch_accelerator # not all operations are supported in fp16 on CPU
|
||||
def test_generate_fp16(self):
|
||||
config, input_dict = self.model_tester.prepare_config_and_inputs()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user