Fix check_training_gradient_checkpointing (#34806)

fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar 2024-11-19 17:48:34 +01:00 committed by GitHub
parent 05ebe8b9b0
commit 469eddbe2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -847,7 +847,9 @@ class ModelTesterMixin:
]
or not model_class.supports_gradient_checkpointing
):
self.skipTest(reason=f"`supports_gradient_checkpointing` is False for {model_class.__name__}.")
# TODO (ydshieh): use `skipTest` once pytest-dev/pytest-subtests/pull/169 is merged
# self.skipTest(reason=f"`supports_gradient_checkpointing` is False for {model_class.__name__}.")
continue
config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common()
config.use_cache = False