Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Jul 26, 2023
1 parent dd67595 commit 0fcdff8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/bettertransformer/test_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def test_accelerate_compatibility_single_gpu_without_keeping(self):
)
)
def test_logits(self, test_name: str, model_type: str, batch_size: int):
# TODO: enable those tests
if model_type in ["rocbert", "splinter", "markuplm", "bert-generation"]:
self.skipTest(f"tiny tokenizers are broken on the Hub {model_type}")
if model_type in ["tapas"]:
Expand All @@ -273,6 +274,7 @@ def test_logits(self, test_name: str, model_type: str, batch_size: int):
)
)
def test_logits_backward(self, test_name: str, model_type: str, batch_size: int):
# TODO: enable those tests
if model_type in ["rocbert", "splinter", "markuplm", "bert-generation"]:
self.skipTest(f"tiny tokenizer is broken on the Hub for {model_type}")
if model_type in ["tapas"]:
Expand All @@ -293,6 +295,12 @@ def test_save_load_invertible(self, test_name: str, model_type: str, keep_origin

@parameterized.expand(grid_parameters(FULL_GRID))
def test_invert_model_logits(self, test_name: str, model_type: str, keep_original_model=False):
# TODO: reenable those tests
if model_type in ["rocbert", "splinter", "markuplm", "bert-generation"]:
self.skipTest(f"tiny tokenizers are broken on the Hub {model_type}")
if model_type in ["tapas"]:
self.skipTest(f"{model_type} requires dataframe")

model_id = MODELS_DICT[model_type]
self._test_invert_model_logits(
model_id=model_id, model_type=model_type, keep_original_model=keep_original_model
Expand Down

0 comments on commit 0fcdff8

Please sign in to comment.