13
13
matrix :
14
14
include :
15
15
- { shard: 1, num_shards: 2, runner: "linux.g5.4xlarge.nvidia.gpu" }
16
+ - { shard: 2, num_shards: 2, runner: "linux.g5.4xlarge.nvidia.gpu" }
16
17
runs-on : ${{ matrix.runner }}
17
18
env :
18
- DOCKER_IMAGE : " 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-bionic-cuda11.7 -cudnn8-py3-gcc7 "
19
+ DOCKER_IMAGE : " 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-bionic-cuda12.1 -cudnn8-py3-gcc9 "
19
20
CUDA_VERSION : " 9"
20
21
steps :
21
22
- name : Setup SSH (Click me for login details)
30
31
uses : actions/checkout@v3
31
32
32
33
- name : Setup Linux
33
- uses : pytorch/pytorch/.github/actions/setup-linux@master
34
+ uses : pytorch/pytorch/.github/actions/setup-linux@main
34
35
35
36
- name : Install nvidia driver, nvidia-docker runtime, set GPU_FLAG
36
37
uses : pytorch/test-infra/.github/actions/setup-nvidia@main
82
83
docker exec -t "${container_name}" sh -c ".jenkins/worker.sh"
83
84
84
85
85
- - name : Upload Python Docs Preview
86
+ - name : Upload artifacts
86
87
uses : seemethere/upload-artifact-s3@v5
87
88
with :
88
89
retention-days : 14
@@ -103,7 +104,7 @@ jobs:
103
104
needs : pytorch_tutorial_build_worker
104
105
runs-on : [self-hosted, linux.2xlarge]
105
106
env :
106
- DOCKER_IMAGE : " 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-bionic-cuda11.7 -cudnn8-py3-gcc7 "
107
+ DOCKER_IMAGE : " 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-bionic-cuda12.1 -cudnn8-py3-gcc9 "
107
108
CUDA_VERSION : " 9"
108
109
steps :
109
110
- name : Setup SSH (Click me for login details)
@@ -118,7 +119,7 @@ jobs:
118
119
uses : actions/checkout@v3
119
120
120
121
- name : Setup Linux
121
- uses : pytorch/pytorch/.github/actions/setup-linux@master
122
+ uses : pytorch/pytorch/.github/actions/setup-linux@main
122
123
123
124
- name : Install nvidia driver, nvidia-docker runtime, set GPU_FLAG
124
125
uses : pytorch/test-infra/.github/actions/setup-nvidia@main
@@ -144,13 +145,19 @@ jobs:
144
145
shell : bash
145
146
env :
146
147
DOCKER_IMAGE : ${{ steps.docker-image.outputs.docker-image }}
148
+ BUCKET_NAME : " pytorch-tutorial-build-pull-request"
149
+ COMMIT_ID : temp/${{ github.event.pull_request.number }}
150
+ COMMIT_SOURCE : ${{ github.ref }}
147
151
run : |
148
152
set -ex
149
153
150
154
chmod +x ".jenkins/manager.sh"
151
155
152
156
container_name=$(docker run \
153
157
${GPU_FLAG:-} \
158
+ -e BUCKET_NAME \
159
+ -e COMMIT_ID \
160
+ -e COMMIT_SOURCE \
154
161
--env-file="/tmp/github_env_${GITHUB_RUN_ID}" \
155
162
--tty \
156
163
--detach \
@@ -165,7 +172,6 @@ jobs:
165
172
166
173
docker exec -t "${container_name}" sh -c ".jenkins/worker.sh"
167
174
168
-
169
175
- name : Upload Python Docs Preview
170
176
uses : seemethere/upload-artifact-s3@v5
171
177
with :
0 commit comments