Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_modeling_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4410,6 +4410,8 @@ def test_torch_compile_for_training(self):
self.skipTest(f"{self.__class__.__name__} doesn't have the attribute `_torch_compile_train_cls`.")

config, _ = self.model_tester.prepare_config_and_inputs_for_common()
if hasattr(config, "attention_dropout"):
config.attention_dropout = 0.0
cls = self._torch_compile_train_cls
attn_implementation = getattr(self, "_torch_compile_train_attn_implementation", None)
if attn_implementation is not None:
Expand Down