"git@developer.sourcefind.cn:wuxk1/dcu-comui.git" did not exist on "000fbec3c9a9093386f5a7d8eae6b4682e9d5084"
Unverified Commit 83d2d55c authored by Julien Chaumond's avatar Julien Chaumond Committed by GitHub
Browse files

[ci, flax] non-existing models are unlikely to pass tests (#10409)

😂
parent 17b6e0d4
...@@ -41,7 +41,7 @@ class FlaxAutoModelTest(unittest.TestCase): ...@@ -41,7 +41,7 @@ class FlaxAutoModelTest(unittest.TestCase):
@slow @slow
def test_roberta_from_pretrained(self): def test_roberta_from_pretrained(self):
for model_name in ["roberta-base-cased", "roberta-large-uncased"]: for model_name in ["roberta-base", "roberta-large"]:
with self.subTest(model_name): with self.subTest(model_name):
config = AutoConfig.from_pretrained(model_name) config = AutoConfig.from_pretrained(model_name)
self.assertIsNotNone(config) self.assertIsNotNone(config)
...@@ -66,7 +66,7 @@ class FlaxAutoModelTest(unittest.TestCase): ...@@ -66,7 +66,7 @@ class FlaxAutoModelTest(unittest.TestCase):
@slow @slow
def test_roberta_jax_jit(self): def test_roberta_jax_jit(self):
for model_name in ["roberta-base-cased", "roberta-large-uncased"]: for model_name in ["roberta-base", "roberta-large"]:
tokenizer = AutoTokenizer.from_pretrained(model_name) tokenizer = AutoTokenizer.from_pretrained(model_name)
model = FlaxRobertaModel.from_pretrained(model_name) model = FlaxRobertaModel.from_pretrained(model_name)
tokens = tokenizer("Do you support jax jitted function?", return_tensors=TensorType.JAX) tokens = tokenizer("Do you support jax jitted function?", return_tensors=TensorType.JAX)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment