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
007ad0e2
"docs/git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "124bb5e391c0afe1d47bb214ff884bdb0f93b945"
Unverified
Commit
007ad0e2
authored
Sep 02, 2024
by
Dhruv Nair
Committed by
GitHub
Sep 02, 2024
Browse files
[CI] More fixes for Fast GPU Tests on main (#9300)
update
parent
0e6a8403
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
0 deletions
+12
-0
tests/models/test_modeling_common.py
tests/models/test_modeling_common.py
+3
-0
tests/models/transformers/test_models_transformer_flux.py
tests/models/transformers/test_models_transformer_flux.py
+3
-0
tests/pipelines/flux/test_pipeline_flux.py
tests/pipelines/flux/test_pipeline_flux.py
+3
-0
tests/pipelines/pag/test_pag_sd3.py
tests/pipelines/pag/test_pag_sd3.py
+1
-0
tests/pipelines/stable_audio/test_stable_audio.py
tests/pipelines/stable_audio/test_stable_audio.py
+2
-0
No files found.
tests/models/test_modeling_common.py
View file @
007ad0e2
...
...
@@ -417,6 +417,9 @@ class ModelTesterMixin:
@
require_torch_gpu
def
test_set_attn_processor_for_determinism
(
self
):
if
self
.
uses_custom_attn_processor
:
return
torch
.
use_deterministic_algorithms
(
False
)
if
self
.
forward_requires_fresh_args
:
model
=
self
.
model_class
(
**
self
.
init_dict
)
...
...
tests/models/transformers/test_models_transformer_flux.py
View file @
007ad0e2
...
...
@@ -32,6 +32,9 @@ class FluxTransformerTests(ModelTesterMixin, unittest.TestCase):
# We override the items here because the transformer under consideration is small.
model_split_percents
=
[
0.7
,
0.6
,
0.6
]
# Skip setting testing with default: AttnProcessor
uses_custom_attn_processor
=
True
@
property
def
dummy_input
(
self
):
batch_size
=
1
...
...
tests/pipelines/flux/test_pipeline_flux.py
View file @
007ad0e2
...
...
@@ -25,6 +25,9 @@ class FluxPipelineFastTests(unittest.TestCase, PipelineTesterMixin):
params
=
frozenset
([
"prompt"
,
"height"
,
"width"
,
"guidance_scale"
,
"prompt_embeds"
,
"pooled_prompt_embeds"
])
batch_params
=
frozenset
([
"prompt"
])
# there is no xformers processor for Flux
test_xformers_attention
=
False
def
get_dummy_components
(
self
):
torch
.
manual_seed
(
0
)
transformer
=
FluxTransformer2DModel
(
...
...
tests/pipelines/pag/test_pag_sd3.py
View file @
007ad0e2
...
...
@@ -37,6 +37,7 @@ class StableDiffusion3PAGPipelineFastTests(unittest.TestCase, PipelineTesterMixi
]
)
batch_params
=
frozenset
([
"prompt"
,
"negative_prompt"
])
test_xformers_attention
=
False
def
get_dummy_components
(
self
):
torch
.
manual_seed
(
0
)
...
...
tests/pipelines/stable_audio/test_stable_audio.py
View file @
007ad0e2
...
...
@@ -68,6 +68,8 @@ class StableAudioPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
"callback_steps"
,
]
)
# There is not xformers version of the StableAudioPipeline custom attention processor
test_xformers_attention
=
False
def
get_dummy_components
(
self
):
torch
.
manual_seed
(
0
)
...
...
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