File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
tests/inference/diffusers Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 16
16
import tempfile
17
17
import unittest
18
18
19
+ import pytest
19
20
from optimum .utils import logging
20
21
21
22
from optimum .exporters .neuron .model_configs import * # noqa: F403
22
23
from optimum .neuron .utils .testing_utils import is_inferentia_test , requires_neuronx
24
+ from optimum .neuron .version import __sdk_version__ as sdk_version
23
25
24
26
25
27
logger = logging .get_logger (__name__ ) # pylint: disable=invalid-name
@@ -87,6 +89,7 @@ def test_pixart(self):
87
89
check = True ,
88
90
)
89
91
92
+ @pytest .mark .skipif (sdk_version == "2.26.0" , reason = "This test hangs with SDK 2.26.0" )
90
93
@requires_neuronx
91
94
def test_flux_tp2 (self ):
92
95
model_ids = ["hf-internal-testing/tiny-flux-pipe-gated-silu" ]
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
import PIL
17
+ import pytest
17
18
import torch
18
19
from diffusers .utils import load_image
19
20
from optimum .utils .testing_utils import require_diffusers
26
27
NeuronModelVaeEncoder ,
27
28
)
28
29
from optimum .neuron .utils .testing_utils import is_inferentia_test , requires_neuronx
30
+ from optimum .neuron .version import __sdk_version__ as sdk_version
29
31
30
32
33
+ @pytest .mark .skipif (sdk_version == "2.26.0" , reason = "This test hangs with SDK 2.26.0" )
31
34
@is_inferentia_test
32
35
@requires_neuronx
33
36
@require_diffusers
@@ -47,6 +50,7 @@ def test_flux_txt2img(neuron_flux_tp2_path):
47
50
assert isinstance (image , PIL .Image .Image )
48
51
49
52
53
+ @pytest .mark .skipif (sdk_version == "2.26.0" , reason = "This test hangs with SDK 2.26.0" )
50
54
@is_inferentia_test
51
55
@requires_neuronx
52
56
@require_diffusers
@@ -68,6 +72,7 @@ def test_flux_inpaint(neuron_flux_tp2_path):
68
72
assert isinstance (image , PIL .Image .Image )
69
73
70
74
75
+ @pytest .mark .skipif (sdk_version == "2.26.0" , reason = "This test hangs with SDK 2.26.0" )
71
76
@is_inferentia_test
72
77
@requires_neuronx
73
78
@require_diffusers
You can’t perform that action at this time.
0 commit comments