Skip to content

Commit

Permalink
add xpu skip (#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
faaany authored Sep 18, 2024
1 parent 4617be3 commit 4305033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
require_huggingface_suite,
require_multi_device,
require_multi_gpu,
require_non_xpu,
require_pippy,
require_schedulefree,
require_trackers,
Expand Down Expand Up @@ -274,12 +275,14 @@ def test_distributed_inference_examples_phi2(self):
testargs = ["examples/inference/distributed/phi2.py"]
run_command(self.launch_args + testargs)

@require_non_xpu
@require_pippy
@require_multi_gpu
def test_pippy_examples_bert(self):
testargs = ["examples/inference/pippy/bert.py"]
run_command(self.launch_args + testargs)

@require_non_xpu
@require_pippy
@require_multi_gpu
def test_pippy_examples_gpt2(self):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_multigpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
require_multi_device,
require_multi_gpu,
require_non_torch_xla,
require_non_xpu,
require_pippy,
require_torchvision,
torch_device,
Expand Down Expand Up @@ -93,6 +94,7 @@ def test_distributed_data_loop(self):
with patch_environment(**env_kwargs):
execute_subprocess_async(cmd)

@require_non_xpu
@require_multi_gpu
@require_pippy
@require_torchvision
Expand Down

0 comments on commit 4305033

Please sign in to comment.