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
40fc389c
Unverified
Commit
40fc389c
authored
Dec 05, 2024
by
Sayak Paul
Committed by
GitHub
Dec 05, 2024
Browse files
[Tests] fix condition argument in xfail. (#10099)
* fix condition argument in xfail. * revert init changes.
parent
98d0cd57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tests/lora/test_lora_layers_cogvideox.py
tests/lora/test_lora_layers_cogvideox.py
+1
-1
tests/lora/test_lora_layers_mochi.py
tests/lora/test_lora_layers_mochi.py
+1
-1
tests/lora/utils.py
tests/lora/utils.py
+1
-1
No files found.
tests/lora/test_lora_layers_cogvideox.py
View file @
40fc389c
...
...
@@ -129,7 +129,7 @@ class CogVideoXLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
@
skip_mps
@
pytest
.
mark
.
xfail
(
condtion
=
torch
.
device
(
torch_device
).
type
==
"cpu"
and
is_torch_version
(
">="
,
"2.5"
),
cond
i
tion
=
torch
.
device
(
torch_device
).
type
==
"cpu"
and
is_torch_version
(
">="
,
"2.5"
),
reason
=
"Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1."
,
strict
=
True
,
)
...
...
tests/lora/test_lora_layers_mochi.py
View file @
40fc389c
...
...
@@ -108,7 +108,7 @@ class MochiLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
return
noise
,
input_ids
,
pipeline_inputs
@
pytest
.
mark
.
xfail
(
condtion
=
torch
.
device
(
torch_device
).
type
==
"cpu"
and
is_torch_version
(
">="
,
"2.5"
),
cond
i
tion
=
torch
.
device
(
torch_device
).
type
==
"cpu"
and
is_torch_version
(
">="
,
"2.5"
),
reason
=
"Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1."
,
strict
=
True
,
)
...
...
tests/lora/utils.py
View file @
40fc389c
...
...
@@ -1513,7 +1513,7 @@ class PeftLoraLoaderMixinTests:
@
skip_mps
@
pytest
.
mark
.
xfail
(
condtion
=
torch
.
device
(
torch_device
).
type
==
"cpu"
and
is_torch_version
(
">="
,
"2.5"
),
cond
i
tion
=
torch
.
device
(
torch_device
).
type
==
"cpu"
and
is_torch_version
(
">="
,
"2.5"
),
reason
=
"Test currently fails on CPU and PyTorch 2.5.1 but not on PyTorch 2.4.1."
,
strict
=
True
,
)
...
...
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