Skip to content

Commit 66f922c

Browse files
committed
unify more.
1 parent be922ae commit 66f922c

10 files changed

+1
-42
lines changed

tests/lora/test_lora_layers_auraflow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,3 @@ def test_modify_padding_mode(self):
118118
@unittest.skip("Text encoder LoRA is not supported in AuraFlow.")
119119
def test_simple_inference_with_partial_text_lora(self):
120120
pass
121-
122-
@unittest.skip("Text encoder LoRA is not supported in AuraFlow.")
123-
def test_simple_inference_with_text_lora_and_scale(self):
124-
pass

tests/lora/test_lora_layers_cogvideox.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ def test_modify_padding_mode(self):
152152
def test_simple_inference_with_partial_text_lora(self):
153153
pass
154154

155-
@unittest.skip("Text encoder LoRA is not supported in CogVideoX.")
156-
def test_simple_inference_with_text_lora_and_scale(self):
157-
pass
158-
159155
@unittest.skip("Not supported in CogVideoX.")
160156
def test_simple_inference_with_text_denoiser_multi_adapter_block_lora(self):
161157
pass

tests/lora/test_lora_layers_cogview4.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,3 @@ def test_modify_padding_mode(self):
138138
@unittest.skip("Text encoder LoRA is not supported in CogView4.")
139139
def test_simple_inference_with_partial_text_lora(self):
140140
pass
141-
142-
@unittest.skip("Text encoder LoRA is not supported in CogView4.")
143-
def test_simple_inference_with_text_lora_and_scale(self):
144-
pass

tests/lora/test_lora_layers_hunyuanvideo.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ def test_modify_padding_mode(self):
172172
def test_simple_inference_with_partial_text_lora(self):
173173
pass
174174

175-
@unittest.skip("Text encoder LoRA is not supported in HunyuanVideo.")
176-
def test_simple_inference_with_text_lora_and_scale(self):
177-
pass
178-
179175

180176
@nightly
181177
@require_torch_accelerator

tests/lora/test_lora_layers_ltx_video.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,3 @@ def test_modify_padding_mode(self):
129129
@unittest.skip("Text encoder LoRA is not supported in LTXVideo.")
130130
def test_simple_inference_with_partial_text_lora(self):
131131
pass
132-
133-
@unittest.skip("Text encoder LoRA is not supported in LTXVideo.")
134-
def test_simple_inference_with_text_lora_and_scale(self):
135-
pass

tests/lora/test_lora_layers_lumina2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ def test_modify_padding_mode(self):
117117
def test_simple_inference_with_partial_text_lora(self):
118118
pass
119119

120-
@unittest.skip("Text encoder LoRA is not supported in Lumina2.")
121-
def test_simple_inference_with_text_lora_and_scale(self):
122-
pass
123-
124120
@unittest.skip("Text encoder LoRA is not supported in Lumina2.")
125121
@skip_mps
126122
@pytest.mark.xfail(

tests/lora/test_lora_layers_mochi.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ def test_modify_padding_mode(self):
121121
def test_simple_inference_with_partial_text_lora(self):
122122
pass
123123

124-
@unittest.skip("Text encoder LoRA is not supported in Mochi.")
125-
def test_simple_inference_with_text_lora_and_scale(self):
126-
pass
127-
128124
@unittest.skip("Not supported in Mochi.")
129125
def test_simple_inference_with_text_denoiser_multi_adapter_block_lora(self):
130126
pass

tests/lora/test_lora_layers_sana.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,3 @@ def test_simple_inference_with_text_denoiser_block_scale_for_all_dict_options(se
120120
@unittest.skip("Text encoder LoRA is not supported in SANA.")
121121
def test_simple_inference_with_partial_text_lora(self):
122122
pass
123-
124-
@unittest.skip("Text encoder LoRA is not supported in SANA.")
125-
def test_simple_inference_with_text_lora_and_scale(self):
126-
pass

tests/lora/test_lora_layers_wan.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,3 @@ def test_modify_padding_mode(self):
125125
@unittest.skip("Text encoder LoRA is not supported in Wan.")
126126
def test_simple_inference_with_partial_text_lora(self):
127127
pass
128-
129-
@unittest.skip("Text encoder LoRA is not supported in Wan.")
130-
def test_simple_inference_with_text_lora_and_scale(self):
131-
pass

tests/lora/utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,7 @@ def test_lora_text_encoder_actions(self, action):
391391
"Loading from a saved checkpoint should yield the same result as the original LoRA.",
392392
)
393393

394-
@parameterized.expand(
395-
[
396-
("text_encoder_only",),
397-
("text_and_denoiser",),
398-
]
399-
)
394+
@parameterized.expand([("text_encoder_only",), ("text_and_denoiser",)])
400395
def test_lora_scaling(self, lora_components_to_add):
401396
"""
402397
Tests inference with LoRA scaling applied via attention_kwargs

0 commit comments

Comments
 (0)