Skip to content

Commit 3eab461

Browse files
authored
Update azure-gpu-test.yml (#1669)
1 parent 627949d commit 3eab461

File tree

3 files changed

+77
-7
lines changed

3 files changed

+77
-7
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: GPU tests with Thunder
2+
3+
trigger:
4+
branches:
5+
include:
6+
- "main"
7+
- "wip"
8+
9+
pr:
10+
branches:
11+
include:
12+
- "main"
13+
- "wip"
14+
15+
jobs:
16+
- job: testing
17+
timeoutInMinutes: "30"
18+
cancelTimeoutInMinutes: "2"
19+
pool: "lit-rtx-3090"
20+
variables:
21+
DEVICES: $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
22+
CI: "true"
23+
container:
24+
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.10-torch2.2-cuda12.1.0"
25+
options: "--gpus=all --shm-size=8gb"
26+
workspace:
27+
clean: all
28+
steps:
29+
30+
- bash: |
31+
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
32+
displayName: 'set env. vars'
33+
34+
- bash: |
35+
echo $(DEVICES)
36+
echo $CUDA_VISIBLE_DEVICES
37+
whereis nvidia
38+
nvidia-smi
39+
which python && which pip
40+
python --version
41+
pip --version
42+
pip list
43+
displayName: "Image info & NVIDIA"
44+
45+
- script: |
46+
pip install --upgrade pip
47+
pip install '.[all,test]'
48+
displayName: 'Install dependencies'
49+
50+
- script: |
51+
pip uninstall -y torchvision torchaudio
52+
pip install --pre 'nvfuser-cu121[torch]' --extra-index-url https://pypi.nvidia.com
53+
displayName: 'Install PyTorch nightly'
54+
55+
- bash: |
56+
set -e
57+
pip list
58+
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
59+
displayName: "Env details"
60+
61+
- bash: pytest -v --disable-pytest-warnings --strict-markers --color=yes
62+
displayName: 'Ordinary tests'
63+
env:
64+
PL_RUN_CUDA_TESTS: "1"
65+
timeoutInMinutes: "5"
66+
67+
- bash: bash run_standalone_tests.sh
68+
workingDirectory: tests
69+
env:
70+
PL_RUN_CUDA_TESTS: "1"
71+
displayName: "Standalone tests"
72+
timeoutInMinutes: "10"

.github/azure-gpu-test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: GPU tests
2+
13
trigger:
24
branches:
35
include:
@@ -43,20 +45,16 @@ jobs:
4345
- script: |
4446
pip install --upgrade pip
4547
pip install '.[all,test]'
48+
pip install -U torch torchvision torchaudio
4649
displayName: 'Install dependencies'
4750
48-
- script: |
49-
pip uninstall -y torchvision torchaudio
50-
pip install --pre 'nvfuser-cu121[torch]' --extra-index-url https://pypi.nvidia.com
51-
displayName: 'Install PyTorch nightly'
52-
5351
- bash: |
5452
set -e
5553
pip list
5654
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
5755
displayName: "Env details"
5856
59-
- bash: pytest -v --disable-pytest-warnings --strict-markers --color=yes
57+
- bash: pytest -v --disable-pytest-warnings --strict-markers --color=yes --ignore-glob="tests/test_thunder*" --ignore="tests/test_unsloth_executor.py"
6058
displayName: 'Ordinary tests'
6159
env:
6260
PL_RUN_CUDA_TESTS: "1"

.github/workflows/cpu-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main, wip]
66
pull_request:
7-
branches: [main, "carmocca/*", wip]
7+
branches: [main, wip]
88

99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}

0 commit comments

Comments
 (0)