File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments