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
1c50a5f7
Unverified
Commit
1c50a5f7
authored
Jul 23, 2025
by
Sayak Paul
Committed by
GitHub
Jul 23, 2025
Browse files
[tests] enforce torch version in the compilation tests. (#11979)
enforce torch version in the compilation tests.
parent
7ae6347e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/models/test_modeling_common.py
tests/models/test_modeling_common.py
+2
-0
No files found.
tests/models/test_modeling_common.py
View file @
1c50a5f7
...
@@ -1948,6 +1948,7 @@ class ModelPushToHubTester(unittest.TestCase):
...
@@ -1948,6 +1948,7 @@ class ModelPushToHubTester(unittest.TestCase):
@
require_torch_2
@
require_torch_2
@
is_torch_compile
@
is_torch_compile
@
slow
@
slow
@
require_torch_version_greater
(
"2.7.1"
)
class
TorchCompileTesterMixin
:
class
TorchCompileTesterMixin
:
different_shapes_for_compilation
=
None
different_shapes_for_compilation
=
None
...
@@ -2046,6 +2047,7 @@ class TorchCompileTesterMixin:
...
@@ -2046,6 +2047,7 @@ class TorchCompileTesterMixin:
@
require_torch_accelerator
@
require_torch_accelerator
@
require_peft_backend
@
require_peft_backend
@
require_peft_version_greater
(
"0.14.0"
)
@
require_peft_version_greater
(
"0.14.0"
)
@
require_torch_version_greater
(
"2.7.1"
)
@
is_torch_compile
@
is_torch_compile
class
LoraHotSwappingForModelTesterMixin
:
class
LoraHotSwappingForModelTesterMixin
:
"""Test that hotswapping does not result in recompilation on the model directly.
"""Test that hotswapping does not result in recompilation on the model directly.
...
...
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