Skip to content

Commit 9f384f4

Browse files
committed
skip case for hang
1 parent ddcb722 commit 9f384f4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/transformers/jamba/test_modeling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
repeat_kv,
3737
)
3838

39-
from ...testing_utils import slow
39+
from ...testing_utils import slow, skip_for_none_ce_case
4040

4141
# from ..generation import GenerationTesterMixin
4242
from ..test_configuration_common import ConfigTester
@@ -588,7 +588,7 @@ def test_FakeMLPForwardBackward(self):
588588
and up_weight.grad.sum() == 0
589589
and down_weight.grad.sum() == 0
590590
)
591-
591+
@skip_for_none_ce_case
592592
def test_from_hf_hub(self):
593593
model_id = "ai21labs/Jamba-tiny-random"
594594
model = JambaForCausalLM.from_pretrained(model_id, dtype="bfloat16", from_hf_hub=True, convert_from_torch=True)

tests/utils/test_import_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
import unittest
1616

1717
from paddlenlp.utils import install_package, uninstall_package
18-
18+
from ..testing_utils import skip_for_none_ce_case
1919

2020
class ImportUntilsTest(unittest.TestCase):
21+
@skip_for_none_ce_case
2122
def test_install_specific_package(self):
2223
install_package("loguru", "0.6.0")
2324
from loguru import __version__

0 commit comments

Comments
 (0)