Skip to content

Commit

Permalink
windows torchrun
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Sep 23, 2024
1 parent 13cb155 commit 8109bcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_cli_cuda_vllm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
run: |
pip install -e .[testing]
- name: Run tests
- name: Run tests (sequential)
run: |
FORCE_SERIAL=1 pytest tests/test_cli.py -x -s -k "cli and cuda and vllm and not (tp or pp)"
FORCE_SEQUENTIAL=1 pytest tests/test_cli.py -x -s -k "cli and cuda and vllm and not (tp or pp)"
run_cli_cuda_vllm_multi_gpu_tests:
if: ${{
Expand Down
3 changes: 3 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def test_cli_exit_code_0(launcher):

@pytest.mark.parametrize("launcher", ["inline", "process", "torchrun"])
def test_cli_exit_code_1(launcher):
if sys.platform == "win32":
os.environ["USE_LIBUV"] = "0"

args_1 = [
"optimum-benchmark",
"--config-dir",
Expand Down

0 comments on commit 8109bcc

Please sign in to comment.