@@ -48,6 +48,7 @@ class CogVideoXLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
48
48
pipeline_class = CogVideoXPipeline
49
49
scheduler_cls = CogVideoXDPMScheduler
50
50
scheduler_kwargs = {"timestep_spacing" : "trailing" }
51
+ scheduler_classes = [CogVideoXDDIMScheduler , CogVideoXDPMScheduler ]
51
52
52
53
transformer_kwargs = {
53
54
"num_attention_heads" : 4 ,
@@ -126,8 +127,7 @@ def get_dummy_inputs(self, with_generator=True):
126
127
127
128
@skip_mps
128
129
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 :
131
131
components , text_lora_config , denoiser_lora_config = self .get_dummy_components (scheduler_cls )
132
132
pipe = self .pipeline_class (** components )
133
133
pipe = pipe .to (torch_device )
@@ -156,10 +156,22 @@ def test_lora_fuse_nan(self):
156
156
self .assertTrue (np .isnan (out ).all ())
157
157
158
158
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 )
160
160
161
161
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
163
175
164
176
@unittest .skip ("Text encoder LoRA is not supported in CogVideoX." )
165
177
def test_simple_inference_with_partial_text_lora (self ):
0 commit comments