Skip to content

Commit

Permalink
add cuda dep for a test (#2820)
Browse files Browse the repository at this point in the history
* add cuda dep for a test

* hmmm
  • Loading branch information
SunMarc authored Jun 3, 2024
1 parent d5d378d commit b7fa2fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def test_save_model_offload(self, use_safetensors):
assert torch.allclose(expected, output, atol=1e-5)

@parameterized.expand([True, False], name_func=parameterized_custom_name_func)
@require_cuda
def test_get_state_dict_from_offload(self, use_safetensors):
accelerator = Accelerator()

Expand Down

0 comments on commit b7fa2fa

Please sign in to comment.