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
a96b1453
Unverified
Commit
a96b1453
authored
Nov 19, 2025
by
Dhruv Nair
Committed by
GitHub
Nov 19, 2025
Browse files
[CI] Fix failing Pipeline CPU tests (#12681)
update Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
6d8973ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
30 deletions
+33
-30
tests/pipelines/audioldm2/test_audioldm2.py
tests/pipelines/audioldm2/test_audioldm2.py
+27
-29
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py
+2
-1
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py
+2
-0
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py
...table_diffusion_2/test_stable_diffusion_latent_upscale.py
+2
-0
No files found.
tests/pipelines/audioldm2/test_audioldm2.py
View file @
a96b1453
...
@@ -21,11 +21,9 @@ import numpy as np
...
@@ -21,11 +21,9 @@ import numpy as np
import
pytest
import
pytest
import
torch
import
torch
from
transformers
import
(
from
transformers
import
(
ClapAudioConfig
,
ClapConfig
,
ClapConfig
,
ClapFeatureExtractor
,
ClapFeatureExtractor
,
ClapModel
,
ClapModel
,
ClapTextConfig
,
GPT2Config
,
GPT2Config
,
GPT2LMHeadModel
,
GPT2LMHeadModel
,
RobertaTokenizer
,
RobertaTokenizer
,
...
@@ -111,33 +109,33 @@ class AudioLDM2PipelineFastTests(PipelineTesterMixin, unittest.TestCase):
...
@@ -111,33 +109,33 @@ class AudioLDM2PipelineFastTests(PipelineTesterMixin, unittest.TestCase):
latent_channels
=
4
,
latent_channels
=
4
,
)
)
torch
.
manual_seed
(
0
)
torch
.
manual_seed
(
0
)
text_branch_config
=
ClapTextConfig
(
text_branch_config
=
{
bos_token_id
=
0
,
"
bos_token_id
"
:
0
,
eos_token_id
=
2
,
"
eos_token_id
"
:
2
,
hidden_size
=
8
,
"
hidden_size
"
:
8
,
intermediate_size
=
37
,
"
intermediate_size
"
:
37
,
layer_norm_eps
=
1e-05
,
"
layer_norm_eps
"
:
1e-05
,
num_attention_heads
=
1
,
"
num_attention_heads
"
:
1
,
num_hidden_layers
=
1
,
"
num_hidden_layers
"
:
1
,
pad_token_id
=
1
,
"
pad_token_id
"
:
1
,
vocab_size
=
1000
,
"
vocab_size
"
:
1000
,
projection_dim
=
8
,
"
projection_dim
"
:
8
,
)
}
audio_branch_config
=
ClapAudioConfig
(
audio_branch_config
=
{
spec_size
=
8
,
"
spec_size
"
:
8
,
window_size
=
4
,
"
window_size
"
:
4
,
num_mel_bins
=
8
,
"
num_mel_bins
"
:
8
,
intermediate_size
=
37
,
"
intermediate_size
"
:
37
,
layer_norm_eps
=
1e-05
,
"
layer_norm_eps
"
:
1e-05
,
depths
=
[
1
,
1
],
"
depths
"
:
[
1
,
1
],
num_attention_heads
=
[
1
,
1
],
"
num_attention_heads
"
:
[
1
,
1
],
num_hidden_layers
=
1
,
"
num_hidden_layers
"
:
1
,
hidden_size
=
192
,
"
hidden_size
"
:
192
,
projection_dim
=
8
,
"
projection_dim
"
:
8
,
patch_size
=
2
,
"
patch_size
"
:
2
,
patch_stride
=
2
,
"
patch_stride
"
:
2
,
patch_embed_input_channels
=
4
,
"
patch_embed_input_channels
"
:
4
,
)
}
text_encoder_config
=
ClapConfig
(
text_encoder_config
=
ClapConfig
(
text_config
=
text_branch_config
,
audio_config
=
audio_branch_config
,
projection_dim
=
16
text_config
=
text_branch_config
,
audio_config
=
audio_branch_config
,
projection_dim
=
16
)
)
...
...
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py
View file @
a96b1453
...
@@ -23,7 +23,7 @@ from diffusers import (
...
@@ -23,7 +23,7 @@ from diffusers import (
KandinskyV22InpaintCombinedPipeline
,
KandinskyV22InpaintCombinedPipeline
,
)
)
from
...testing_utils
import
enable_full_determinism
,
require_torch_accelerator
,
torch_device
from
...testing_utils
import
enable_full_determinism
,
require_accelerator
,
require_torch_accelerator
,
torch_device
from
..test_pipelines_common
import
PipelineTesterMixin
from
..test_pipelines_common
import
PipelineTesterMixin
from
.test_kandinsky
import
Dummies
from
.test_kandinsky
import
Dummies
from
.test_kandinsky_img2img
import
Dummies
as
Img2ImgDummies
from
.test_kandinsky_img2img
import
Dummies
as
Img2ImgDummies
...
@@ -402,6 +402,7 @@ class KandinskyV22PipelineInpaintCombinedFastTests(PipelineTesterMixin, unittest
...
@@ -402,6 +402,7 @@ class KandinskyV22PipelineInpaintCombinedFastTests(PipelineTesterMixin, unittest
def
test_save_load_optional_components
(
self
):
def
test_save_load_optional_components
(
self
):
super
().
test_save_load_optional_components
(
expected_max_difference
=
5e-4
)
super
().
test_save_load_optional_components
(
expected_max_difference
=
5e-4
)
@
require_accelerator
def
test_sequential_cpu_offload_forward_pass
(
self
):
def
test_sequential_cpu_offload_forward_pass
(
self
):
super
().
test_sequential_cpu_offload_forward_pass
(
expected_max_diff
=
5e-4
)
super
().
test_sequential_cpu_offload_forward_pass
(
expected_max_diff
=
5e-4
)
...
...
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py
View file @
a96b1453
...
@@ -37,6 +37,7 @@ from ...testing_utils import (
...
@@ -37,6 +37,7 @@ from ...testing_utils import (
load_image
,
load_image
,
load_numpy
,
load_numpy
,
numpy_cosine_similarity_distance
,
numpy_cosine_similarity_distance
,
require_accelerator
,
require_torch_accelerator
,
require_torch_accelerator
,
slow
,
slow
,
torch_device
,
torch_device
,
...
@@ -254,6 +255,7 @@ class KandinskyV22InpaintPipelineFastTests(PipelineTesterMixin, unittest.TestCas
...
@@ -254,6 +255,7 @@ class KandinskyV22InpaintPipelineFastTests(PipelineTesterMixin, unittest.TestCas
def
test_save_load_optional_components
(
self
):
def
test_save_load_optional_components
(
self
):
super
().
test_save_load_optional_components
(
expected_max_difference
=
5e-4
)
super
().
test_save_load_optional_components
(
expected_max_difference
=
5e-4
)
@
require_accelerator
def
test_sequential_cpu_offload_forward_pass
(
self
):
def
test_sequential_cpu_offload_forward_pass
(
self
):
super
().
test_sequential_cpu_offload_forward_pass
(
expected_max_diff
=
5e-4
)
super
().
test_sequential_cpu_offload_forward_pass
(
expected_max_diff
=
5e-4
)
...
...
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py
View file @
a96b1453
...
@@ -37,6 +37,7 @@ from ...testing_utils import (
...
@@ -37,6 +37,7 @@ from ...testing_utils import (
floats_tensor
,
floats_tensor
,
load_image
,
load_image
,
load_numpy
,
load_numpy
,
require_accelerator
,
require_torch_accelerator
,
require_torch_accelerator
,
slow
,
slow
,
torch_device
,
torch_device
,
...
@@ -222,6 +223,7 @@ class StableDiffusionLatentUpscalePipelineFastTests(
...
@@ -222,6 +223,7 @@ class StableDiffusionLatentUpscalePipelineFastTests(
def
test_attention_slicing_forward_pass
(
self
):
def
test_attention_slicing_forward_pass
(
self
):
super
().
test_attention_slicing_forward_pass
(
expected_max_diff
=
7e-3
)
super
().
test_attention_slicing_forward_pass
(
expected_max_diff
=
7e-3
)
@
require_accelerator
def
test_sequential_cpu_offload_forward_pass
(
self
):
def
test_sequential_cpu_offload_forward_pass
(
self
):
super
().
test_sequential_cpu_offload_forward_pass
(
expected_max_diff
=
3e-3
)
super
().
test_sequential_cpu_offload_forward_pass
(
expected_max_diff
=
3e-3
)
...
...
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