@@ -48,6 +48,7 @@ class CogVideoXLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
4848 pipeline_class = CogVideoXPipeline
4949 scheduler_cls = CogVideoXDPMScheduler
5050 scheduler_kwargs = {"timestep_spacing" : "trailing" }
51+ scheduler_classes = [CogVideoXDDIMScheduler , CogVideoXDPMScheduler ]
5152
5253 transformer_kwargs = {
5354 "num_attention_heads" : 4 ,
@@ -126,8 +127,7 @@ def get_dummy_inputs(self, with_generator=True):
126127
127128 @skip_mps
128129 def test_lora_fuse_nan (self ):
129- scheduler_classes = [CogVideoXDDIMScheduler , CogVideoXDPMScheduler ]
130- for scheduler_cls in scheduler_classes :
130+ for scheduler_cls in self .scheduler_classes :
131131 components , text_lora_config , denoiser_lora_config = self .get_dummy_components (scheduler_cls )
132132 pipe = self .pipeline_class (** components )
133133 pipe = pipe .to (torch_device )
@@ -156,10 +156,22 @@ def test_lora_fuse_nan(self):
156156 self .assertTrue (np .isnan (out ).all ())
157157
158158 def test_simple_inference_with_text_lora_denoiser_fused_multi (self ):
159- super ().test_simple_inference_with_text_lora_denoiser_fused_multi (expected_atol = 5e -3 )
159+ super ().test_simple_inference_with_text_lora_denoiser_fused_multi (expected_atol = 9e -3 )
160160
161161 def test_simple_inference_with_text_denoiser_lora_unfused (self ):
162- super ().test_simple_inference_with_text_denoiser_lora_unfused (expected_atol = 5e-3 )
162+ super ().test_simple_inference_with_text_denoiser_lora_unfused (expected_atol = 9e-3 )
163+
164+ @unittest .skip ("Not supported in CogVideoX." )
165+ def test_simple_inference_with_text_denoiser_block_scale (self ):
166+ pass
167+
168+ @unittest .skip ("Not supported in CogVideoX." )
169+ def test_simple_inference_with_text_denoiser_block_scale_for_all_dict_options (self ):
170+ pass
171+
172+ @unittest .skip ("Not supported in CogVideoX." )
173+ def test_modify_padding_mode (self ):
174+ pass
163175
164176 @unittest .skip ("Text encoder LoRA is not supported in CogVideoX." )
165177 def test_simple_inference_with_partial_text_lora (self ):
0 commit comments