Skip to content

Commit db03fc9

Browse files
committed
unbloat lora utils in tests
1 parent 3f3f0c1 commit db03fc9

10 files changed

+59
-254
lines changed

tests/lora/test_lora_layers_auraflow.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,6 @@ def test_modify_padding_mode(self):
119119
def test_simple_inference_with_partial_text_lora(self):
120120
pass
121121

122-
@unittest.skip("Text encoder LoRA is not supported in AuraFlow.")
123-
def test_simple_inference_with_text_lora(self):
124-
pass
125-
126122
@unittest.skip("Text encoder LoRA is not supported in AuraFlow.")
127123
def test_simple_inference_with_text_lora_and_scale(self):
128124
pass
129-
130-
@unittest.skip("Text encoder LoRA is not supported in AuraFlow.")
131-
def test_simple_inference_with_text_lora_fused(self):
132-
pass
133-
134-
@unittest.skip("Text encoder LoRA is not supported in AuraFlow.")
135-
def test_simple_inference_with_text_lora_save_load(self):
136-
pass

tests/lora/test_lora_layers_cogvideox.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,10 @@ 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(self):
157-
pass
158-
159155
@unittest.skip("Text encoder LoRA is not supported in CogVideoX.")
160156
def test_simple_inference_with_text_lora_and_scale(self):
161157
pass
162158

163-
@unittest.skip("Text encoder LoRA is not supported in CogVideoX.")
164-
def test_simple_inference_with_text_lora_fused(self):
165-
pass
166-
167-
@unittest.skip("Text encoder LoRA is not supported in CogVideoX.")
168-
def test_simple_inference_with_text_lora_save_load(self):
169-
pass
170-
171159
@unittest.skip("Not supported in CogVideoX.")
172160
def test_simple_inference_with_text_denoiser_multi_adapter_block_lora(self):
173161
pass

tests/lora/test_lora_layers_cogview4.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,6 @@ def test_modify_padding_mode(self):
171171
def test_simple_inference_with_partial_text_lora(self):
172172
pass
173173

174-
@unittest.skip("Text encoder LoRA is not supported in CogView4.")
175-
def test_simple_inference_with_text_lora(self):
176-
pass
177-
178174
@unittest.skip("Text encoder LoRA is not supported in CogView4.")
179175
def test_simple_inference_with_text_lora_and_scale(self):
180176
pass
181-
182-
@unittest.skip("Text encoder LoRA is not supported in CogView4.")
183-
def test_simple_inference_with_text_lora_fused(self):
184-
pass
185-
186-
@unittest.skip("Text encoder LoRA is not supported in CogView4.")
187-
def test_simple_inference_with_text_lora_save_load(self):
188-
pass

tests/lora/test_lora_layers_hunyuanvideo.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,22 +177,10 @@ def test_modify_padding_mode(self):
177177
def test_simple_inference_with_partial_text_lora(self):
178178
pass
179179

180-
@unittest.skip("Text encoder LoRA is not supported in HunyuanVideo.")
181-
def test_simple_inference_with_text_lora(self):
182-
pass
183-
184180
@unittest.skip("Text encoder LoRA is not supported in HunyuanVideo.")
185181
def test_simple_inference_with_text_lora_and_scale(self):
186182
pass
187183

188-
@unittest.skip("Text encoder LoRA is not supported in HunyuanVideo.")
189-
def test_simple_inference_with_text_lora_fused(self):
190-
pass
191-
192-
@unittest.skip("Text encoder LoRA is not supported in HunyuanVideo.")
193-
def test_simple_inference_with_text_lora_save_load(self):
194-
pass
195-
196184

197185
@nightly
198186
@require_torch_accelerator

tests/lora/test_lora_layers_ltx_video.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,6 @@ def test_modify_padding_mode(self):
130130
def test_simple_inference_with_partial_text_lora(self):
131131
pass
132132

133-
@unittest.skip("Text encoder LoRA is not supported in LTXVideo.")
134-
def test_simple_inference_with_text_lora(self):
135-
pass
136-
137133
@unittest.skip("Text encoder LoRA is not supported in LTXVideo.")
138134
def test_simple_inference_with_text_lora_and_scale(self):
139135
pass
140-
141-
@unittest.skip("Text encoder LoRA is not supported in LTXVideo.")
142-
def test_simple_inference_with_text_lora_fused(self):
143-
pass
144-
145-
@unittest.skip("Text encoder LoRA is not supported in LTXVideo.")
146-
def test_simple_inference_with_text_lora_save_load(self):
147-
pass

tests/lora/test_lora_layers_lumina2.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,11 @@ 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(self):
122-
pass
123-
124120
@unittest.skip("Text encoder LoRA is not supported in Lumina2.")
125121
def test_simple_inference_with_text_lora_and_scale(self):
126122
pass
127123

128124
@unittest.skip("Text encoder LoRA is not supported in Lumina2.")
129-
def test_simple_inference_with_text_lora_fused(self):
130-
pass
131-
132-
@unittest.skip("Text encoder LoRA is not supported in Lumina2.")
133-
def test_simple_inference_with_text_lora_save_load(self):
134-
pass
135-
136125
@skip_mps
137126
@pytest.mark.xfail(
138127
condition=torch.device(torch_device).type == "cpu" and is_torch_version(">=", "2.5"),

tests/lora/test_lora_layers_mochi.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,10 @@ 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(self):
126-
pass
127-
128124
@unittest.skip("Text encoder LoRA is not supported in Mochi.")
129125
def test_simple_inference_with_text_lora_and_scale(self):
130126
pass
131127

132-
@unittest.skip("Text encoder LoRA is not supported in Mochi.")
133-
def test_simple_inference_with_text_lora_fused(self):
134-
pass
135-
136-
@unittest.skip("Text encoder LoRA is not supported in Mochi.")
137-
def test_simple_inference_with_text_lora_save_load(self):
138-
pass
139-
140-
@unittest.skip("Not supported in CogVideoX.")
128+
@unittest.skip("Not supported in Mochi.")
141129
def test_simple_inference_with_text_denoiser_multi_adapter_block_lora(self):
142130
pass

tests/lora/test_lora_layers_sana.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,6 @@ def test_simple_inference_with_text_denoiser_block_scale_for_all_dict_options(se
121121
def test_simple_inference_with_partial_text_lora(self):
122122
pass
123123

124-
@unittest.skip("Text encoder LoRA is not supported in SANA.")
125-
def test_simple_inference_with_text_lora(self):
126-
pass
127-
128124
@unittest.skip("Text encoder LoRA is not supported in SANA.")
129125
def test_simple_inference_with_text_lora_and_scale(self):
130126
pass
131-
132-
@unittest.skip("Text encoder LoRA is not supported in SANA.")
133-
def test_simple_inference_with_text_lora_fused(self):
134-
pass
135-
136-
@unittest.skip("Text encoder LoRA is not supported in SANA.")
137-
def test_simple_inference_with_text_lora_save_load(self):
138-
pass

tests/lora/test_lora_layers_wan.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,6 @@ def test_modify_padding_mode(self):
126126
def test_simple_inference_with_partial_text_lora(self):
127127
pass
128128

129-
@unittest.skip("Text encoder LoRA is not supported in Wan.")
130-
def test_simple_inference_with_text_lora(self):
131-
pass
132-
133129
@unittest.skip("Text encoder LoRA is not supported in Wan.")
134130
def test_simple_inference_with_text_lora_and_scale(self):
135131
pass
136-
137-
@unittest.skip("Text encoder LoRA is not supported in Wan.")
138-
def test_simple_inference_with_text_lora_fused(self):
139-
pass
140-
141-
@unittest.skip("Text encoder LoRA is not supported in Wan.")
142-
def test_simple_inference_with_text_lora_save_load(self):
143-
pass

0 commit comments

Comments
 (0)