Skip to content

Commit 266f5f9

Browse files
committed
enbale more
1 parent 961a8e5 commit 266f5f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/models/test_modeling_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def test_cpu_offload(self):
783783

784784
self.assertTrue(torch.allclose(base_output[0], new_output[0], atol=1e-5))
785785

786-
@require_torch_gpu
786+
@require_torch_accelerator
787787
def test_disk_offload_without_safetensors(self):
788788
config, inputs_dict = self.prepare_init_args_and_inputs_for_common()
789789
model = self.model_class(**config).eval()
@@ -817,7 +817,7 @@ def test_disk_offload_without_safetensors(self):
817817

818818
self.assertTrue(torch.allclose(base_output[0], new_output[0], atol=1e-5))
819819

820-
@require_torch_gpu
820+
@require_torch_accelerator
821821
def test_disk_offload_with_safetensors(self):
822822
config, inputs_dict = self.prepare_init_args_and_inputs_for_common()
823823
model = self.model_class(**config).eval()

0 commit comments

Comments
 (0)