Skip to content

Commit ae9d217

Browse files
committed
tests
1 parent f87d5e3 commit ae9d217

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/models/test_modeling_common.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ def test_torch_compile_recompilation_and_graph_break(self):
17771777
_ = model(**inputs_dict)
17781778
_ = model(**inputs_dict)
17791779

1780-
def test_compilation_with_group_offloading(self):
1780+
def test_compile_with_group_offloading(self):
17811781
torch._dynamo.config.cache_size_limit = 10000
17821782

17831783
init_dict, inputs_dict = self.prepare_init_args_and_inputs_for_common()
@@ -1798,11 +1798,7 @@ def test_compilation_with_group_offloading(self):
17981798
}
17991799
model.enable_group_offload(**group_offload_kwargs)
18001800
model.compile()
1801-
with (
1802-
torch._inductor.utils.fresh_inductor_cache(),
1803-
torch._dynamo.config.patch(error_on_recompile=True),
1804-
torch.no_grad(),
1805-
):
1801+
with torch.no_grad():
18061802
_ = model(**inputs_dict)
18071803
_ = model(**inputs_dict)
18081804

0 commit comments

Comments
 (0)