Skip to content

Commit b3ec481

Browse files
committed
Revert "fix kvae gradient checkpointing tests"
This reverts commit 52ecdb0.
1 parent 52ecdb0 commit b3ec481

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/models/autoencoders/test_models_autoencoder_kl_kvae_video.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ def test_training(self):
9797
def test_training_with_ema(self):
9898
_run_nondeterministic(super().test_training_with_ema)
9999

100-
def test_mixed_precision_training(self):
101-
_run_nondeterministic(super().test_mixed_precision_training)
102-
103100
@pytest.mark.skip(
104101
"Gradient checkpointing recomputes the forward pass, but the model uses a stateful cache_dict "
105102
"that is mutated during the first forward. On recomputation the cache is already populated, "
@@ -108,13 +105,13 @@ def test_mixed_precision_training(self):
108105
def test_gradient_checkpointing_equivalence(self):
109106
super().test_gradient_checkpointing_equivalence()
110107

108+
def test_layerwise_casting_training(self):
109+
_run_nondeterministic(super().test_layerwise_casting_training)
110+
111111

112112
class TestAutoencoderKLKVAEVideoMemory(AutoencoderKLKVAEVideoTesterConfig, MemoryTesterMixin):
113113
"""Memory optimization tests for AutoencoderKLKVAEVideo."""
114114

115-
def test_layerwise_casting_training(self):
116-
_run_nondeterministic(super().test_layerwise_casting_training)
117-
118115

119116
class TestAutoencoderKLKVAEVideoSlicingTiling(AutoencoderKLKVAEVideoTesterConfig, NewAutoencoderTesterMixin):
120117
"""Slicing and tiling tests for AutoencoderKLKVAEVideo."""

0 commit comments

Comments
 (0)