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
f4fa3bee
Unverified
Commit
f4fa3bee
authored
May 14, 2025
by
Seokhyeon Jeong
Committed by
GitHub
May 14, 2025
Browse files
[tests] Add torch.compile test for UNet2DConditionModel (#11537)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
7e335319
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
tests/models/unets/test_models_unet_2d_condition.py
tests/models/unets/test_models_unet_2d_condition.py
+7
-2
No files found.
tests/models/unets/test_models_unet_2d_condition.py
View file @
f4fa3bee
...
...
@@ -53,7 +53,12 @@ from diffusers.utils.testing_utils import (
torch_device
,
)
from
..test_modeling_common
import
LoraHotSwappingForModelTesterMixin
,
ModelTesterMixin
,
UNetTesterMixin
from
..test_modeling_common
import
(
LoraHotSwappingForModelTesterMixin
,
ModelTesterMixin
,
TorchCompileTesterMixin
,
UNetTesterMixin
,
)
if
is_peft_available
():
...
...
@@ -351,7 +356,7 @@ def create_custom_diffusion_layers(model, mock_weights: bool = True):
class
UNet2DConditionModelTests
(
ModelTesterMixin
,
LoraHotSwappingForModelTesterMixin
,
UNetTesterMixin
,
unittest
.
TestCase
ModelTesterMixin
,
TorchCompileTesterMixin
,
LoraHotSwappingForModelTesterMixin
,
UNetTesterMixin
,
unittest
.
TestCase
):
model_class
=
UNet2DConditionModel
main_input_name
=
"sample"
...
...
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