@@ -18,37 +18,32 @@ jobs:
18
18
strategy :
19
19
matrix :
20
20
include :
21
- - os : linux.2xlarge
22
- python-version : 3.8
23
- python-tag : " py38"
24
- cuda-tag : " cu121"
25
21
- os : linux.2xlarge
26
22
python-version : 3.9
27
23
python-tag : " py39"
28
- cuda-tag : " cu121 "
24
+ cuda-tag : " cu124 "
29
25
- os : linux.2xlarge
30
26
python-version : ' 3.10'
31
27
python-tag : " py310"
32
- cuda-tag : " cu121 "
28
+ cuda-tag : " cu124 "
33
29
- os : linux.2xlarge
34
30
python-version : ' 3.11'
35
31
python-tag : " py311"
36
- cuda-tag : " cu121 "
32
+ cuda-tag : " cu124 "
37
33
- os : linux.2xlarge
38
34
python-version : ' 3.12'
39
35
python-tag : " py312"
40
- cuda-tag : " cu121 "
36
+ cuda-tag : " cu124 "
41
37
steps :
42
38
# Checkout the repository to the GitHub Actions runner
43
39
- name : Check ldd --version
44
40
run : ldd --version
45
41
- name : Checkout
46
- uses : actions/checkout@v2
42
+ uses : actions/checkout@v4
47
43
- name : Update pip
48
44
run : |
49
45
sudo yum update -y
50
46
sudo yum -y install git python3-pip
51
- sudo pip3 install --upgrade pip
52
47
- name : Setup conda
53
48
run : |
54
49
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
@@ -73,12 +68,12 @@ jobs:
73
68
- name : Install PyTorch and CUDA
74
69
shell : bash
75
70
run : |
76
- conda run -n build_binary pip install torch --index-url https://download.pytorch.org/whl/test/cu121
71
+ conda run -n build_binary pip install torch
77
72
- name : Install fbgemm
78
73
shell : bash
79
74
run : |
80
75
conda run -n build_binary pip install numpy
81
- conda run -n build_binary pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/test/cu121
76
+ conda run -n build_binary pip install fbgemm-gpu
82
77
- name : Install Dependencies
83
78
shell : bash
84
79
run : |
102
97
python setup.py bdist_wheel \
103
98
--python-tag=${{ matrix.python-tag }}
104
99
- name : Upload wheel as GHA artifact
105
- uses : actions/upload-artifact@v2
100
+ uses : actions/upload-artifact@v4
106
101
with :
107
102
name : torchrec_${{ matrix.python-version }}_${{ matrix.cuda-tag }}.whl
108
103
path : dist/torchrec-*.whl
@@ -112,9 +107,9 @@ jobs:
112
107
runs-on : ${{ matrix.os }}
113
108
strategy :
114
109
matrix :
115
- os : [linux.4xlarge .nvidia.gpu]
116
- python-version : [3.8, 3. 9, "3.10", "3.11", "3.12"]
117
- cuda-tag : ["cu121 "]
110
+ os : [linux.g5.12xlarge .nvidia.gpu]
111
+ python-version : [3.9, "3.10", "3.11", "3.12"]
112
+ cuda-tag : ["cu124 "]
118
113
needs : build_on_cpu
119
114
# the glibc version should match the version of the one we used to build the binary
120
115
# for this case, it's 2.26
@@ -149,12 +144,11 @@ jobs:
149
144
sudo lshw -C display
150
145
# Checkout the repository to the GitHub Actions runner
151
146
- name : Checkout
152
- uses : actions/checkout@v2
147
+ uses : actions/checkout@v4
153
148
- name : Update pip
154
149
run : |
155
150
sudo yum update -y
156
151
sudo yum -y install git python3-pip
157
- sudo pip3 install --upgrade pip
158
152
- name : Setup conda
159
153
run : |
160
154
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
@@ -179,19 +173,19 @@ jobs:
179
173
- name : Install PyTorch and CUDA
180
174
shell : bash
181
175
run : |
182
- conda run -n build_binary pip install torch --index-url https://download.pytorch.org/whl/test/cu121
176
+ conda run -n build_binary pip install torch
183
177
# download wheel from GHA
184
178
- name : Install fbgemm
185
179
shell : bash
186
180
run : |
187
181
conda run -n build_binary pip install numpy
188
- conda run -n build_binary pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/test/cu121
182
+ conda run -n build_binary pip install fbgemm-gpu
189
183
- name : Install torchmetrics
190
184
shell : bash
191
185
run : |
192
186
conda run -n build_binary pip install torchmetrics==1.0.3
193
187
- name : Download wheel
194
- uses : actions/download-artifact@v2
188
+ uses : actions/download-artifact@v4
195
189
with :
196
190
name : torchrec_${{ matrix.python-version }}_${{ matrix.cuda-tag }}.whl
197
191
- name : Display structure of downloaded files
0 commit comments