File tree Expand file tree Collapse file tree 3 files changed +77
-7
lines changed Expand file tree Collapse file tree 3 files changed +77
-7
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change
1
+ name : GPU tests
2
+
1
3
trigger :
2
4
branches :
3
5
include :
@@ -43,20 +45,16 @@ jobs:
43
45
- script : |
44
46
pip install --upgrade pip
45
47
pip install '.[all,test]'
48
+ pip install -U torch torchvision torchaudio
46
49
displayName: 'Install dependencies'
47
50
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
-
53
51
- bash : |
54
52
set -e
55
53
pip list
56
54
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
57
55
displayName: "Env details"
58
56
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"
60
58
displayName : ' Ordinary tests'
61
59
env :
62
60
PL_RUN_CUDA_TESTS : " 1"
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [main, wip]
6
6
pull_request :
7
- branches : [main, "carmocca/*", wip]
7
+ branches : [main, wip]
8
8
9
9
concurrency :
10
10
group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
You can’t perform that action at this time.
0 commit comments