Skip to content

Commit f80a051

Browse files
authored
Skip dynamic to static test cases (#9196)
1 parent 1b8f37f commit f80a051

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/transformers/test_modeling_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ def tearDown(self):
926926
paddle.disable_static()
927927
super().setUp()
928928

929+
@unittest.skip("Paddle enable PIR API in Python")
929930
def test_to_static_use_top_k(self):
930931
tokenizer = self.TokenizerClass.from_pretrained(self.internal_testing_model)
931932
if tokenizer.__class__.__name__ == "LlamaTokenizer":
@@ -1006,6 +1007,7 @@ def test_to_static_use_top_k(self):
10061007
self.assertEqual(len(static_decoded_ids[0]), self.max_new_tokens)
10071008
self.assertEqual(dygraph_decoded_ids, static_decoded_ids)
10081009

1010+
@unittest.skip("Paddle enable PIR API in Python")
10091011
def test_to_static_use_top_p(self):
10101012
tokenizer = self.TokenizerClass.from_pretrained(self.internal_testing_model)
10111013
if tokenizer.__class__.__name__ == "LlamaTokenizer":

0 commit comments

Comments
 (0)