Skip to content

Commit

Permalink
Filter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbenayoun committed May 28, 2024
1 parent 4deb5df commit 53383a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/distributed/test_model_parallelization.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@


CLASSES_TO_IGNORE = [
"T5ForSequenceClassification",
# TODO: enable this class when it can be traced for pipeline parallelism.
"LlamaForQuestionAnswering",
]
Expand Down Expand Up @@ -128,7 +127,7 @@ def _generate_supported_model_classes(
for task in supported_tasks:
config_class = CONFIG_MAPPING[model_type]
model_class = task_mapping[task].get(config_class, None)
if model_class is not None and model_class not in CLASSES_TO_IGNORE:
if model_class is not None and model_class.__name__ not in CLASSES_TO_IGNORE:
model_classes.append(model_class)

return list(set(model_classes))
Expand Down

0 comments on commit 53383a2

Please sign in to comment.