Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
80f27d7e
Unverified
Commit
80f27d7e
authored
Jun 25, 2025
by
Sayak Paul
Committed by
GitHub
Jun 25, 2025
Browse files
[tests] skip instead of returning. (#11793)
skip instead of returning.
parent
d3e27e05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/models/test_modeling_common.py
tests/models/test_modeling_common.py
+2
-2
No files found.
tests/models/test_modeling_common.py
View file @
80f27d7e
...
...
@@ -2107,7 +2107,7 @@ class LoraHotSwappingForModelTesterMixin:
@
parameterized
.
expand
([(
11
,
11
),
(
7
,
13
),
(
13
,
7
)])
# important to test small to large and vice versa
def
test_hotswapping_compiled_model_conv2d
(
self
,
rank0
,
rank1
):
if
"unet"
not
in
self
.
model_class
.
__name__
.
lower
():
return
pytest
.
skip
(
"Test only applies to UNet."
)
# It's important to add this context to raise an error on recompilation
target_modules
=
[
"conv"
,
"conv1"
,
"conv2"
]
...
...
@@ -2117,7 +2117,7 @@ class LoraHotSwappingForModelTesterMixin:
@
parameterized
.
expand
([(
11
,
11
),
(
7
,
13
),
(
13
,
7
)])
# important to test small to large and vice versa
def
test_hotswapping_compiled_model_both_linear_and_conv2d
(
self
,
rank0
,
rank1
):
if
"unet"
not
in
self
.
model_class
.
__name__
.
lower
():
return
pytest
.
skip
(
"Test only applies to UNet."
)
# It's important to add this context to raise an error on recompilation
target_modules
=
[
"to_q"
,
"conv"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment