@@ -23,15 +23,30 @@ jobs:
23
23
pytest_verbosity : 2
24
24
pytest_report_title : " ⭐️ Tools Tests"
25
25
runs-on : ["in-service"]
26
+ container :
27
+ image : ghcr.io/tenstorrent/pytorch2.0_ttnn/ubuntu-22.04-amd64:latest
28
+ credentials :
29
+ username : ${{ github.actor }}
30
+ password : ${{ secrets.GH_TOKEN }}
31
+ options : >-
32
+ --rm -v /dev/hugepages-1G:/dev/hugepages-1G --device /dev/tenstorrent
33
+ -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
26
34
steps :
27
35
- uses : actions/checkout@v4
28
- - uses : ./.github/actions/common_repo_setup
29
36
- name : Run Tools Tests
30
37
run : |
31
38
python3 -m pytest --github-report tests/tools/ -s
32
39
33
40
lowering-tests :
34
41
runs-on : ["in-service"]
42
+ container :
43
+ image : ghcr.io/tenstorrent/pytorch2.0_ttnn/ubuntu-22.04-amd64:latest
44
+ credentials :
45
+ username : ${{ github.actor }}
46
+ password : ${{ secrets.GH_TOKEN }}
47
+ options : >-
48
+ --rm -v /dev/hugepages-1G:/dev/hugepages-1G --device /dev/tenstorrent
49
+ -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
35
50
env :
36
51
pytest_verbosity : 2
37
52
pytest_report_title : " ⭐️ Aten → TTNN Lowering Tests"
@@ -40,15 +55,24 @@ jobs:
40
55
group : [1, 2]
41
56
steps :
42
57
- uses : actions/checkout@v4
43
- - uses : ./.github/actions/common_repo_setup
44
58
- uses : ./.github/actions/common_lowering_tests
45
59
46
60
model-tests :
47
61
needs : lowering-tests
48
62
runs-on : ["in-service", "nfs"]
63
+ container :
64
+ image : ghcr.io/tenstorrent/pytorch2.0_ttnn/ubuntu-22.04-amd64:latest
65
+ credentials :
66
+ username : ${{ github.actor }}
67
+ password : ${{ secrets.GH_TOKEN }}
68
+ options : >-
69
+ --rm -v /dev/hugepages-1G:/dev/hugepages-1G --device /dev/tenstorrent
70
+ -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
71
+ -v /mnt/tt-metal-pytorch-cache/.cache:/root/.cache
49
72
env :
50
73
pytest_verbosity : 0
51
74
pytest_report_title : " ⭐️ Model Tests - Group ${{ matrix.group }}"
75
+ XDG_CACHE_HOME : /root/.cache
52
76
TORCH_HOME : /mnt/tt-metal-pytorch-cache/.cache/torch
53
77
HF_HOME : /mnt/tt-metal-pytorch-cache/.cache/huggingface
54
78
strategy :
57
81
steps :
58
82
- uses : actions/checkout@v4
59
83
with :
60
- lfs : true
61
- - uses : ./.github/actions/common_repo_setup
84
+ lfs : true
85
+ fetch-depth : 0
86
+ - name : docker-cleanup
87
+ run : |
88
+ docker system prune -a -f --volumes
89
+ df -h # Debug space
62
90
- uses : ./.github/actions/common_model_tests
63
91
64
92
- name : Upload Metrics Artifact
@@ -79,11 +107,18 @@ jobs:
79
107
needs : [model-tests]
80
108
if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
81
109
runs-on : ["in-service"]
110
+ container :
111
+ image : ghcr.io/tenstorrent/pytorch2.0_ttnn/ubuntu-22.04-amd64:latest
112
+ credentials :
113
+ username : ${{ github.actor }}
114
+ password : ${{ secrets.GH_TOKEN }}
115
+ options : >-
116
+ --rm -v /dev/hugepages-1G:/dev/hugepages-1G --device /dev/tenstorrent
117
+ -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
82
118
env :
83
119
PYTHONPATH : ${{ github.workspace }}
84
120
steps :
85
121
- uses : actions/checkout@v4
86
- - uses : ./.github/actions/common_repo_setup
87
122
88
123
- name : Download All Metrics Artifacts
89
124
uses : actions/download-artifact@v4
@@ -121,6 +156,14 @@ jobs:
121
156
needs : [push-autogen-op-tests]
122
157
if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
123
158
runs-on : ["in-service"]
159
+ container :
160
+ image : ghcr.io/tenstorrent/pytorch2.0_ttnn/ubuntu-22.04-amd64:latest
161
+ credentials :
162
+ username : ${{ github.actor }}
163
+ password : ${{ secrets.GH_TOKEN }}
164
+ options : >-
165
+ --rm -v /dev/hugepages-1G:/dev/hugepages-1G --device /dev/tenstorrent
166
+ -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
124
167
strategy :
125
168
matrix : # Need to find a way to replace this with a generator
126
169
group : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40]
@@ -130,7 +173,6 @@ jobs:
130
173
pytest_report_title : " ⭐️ Model Input Variations Tests - Group ${{ matrix.group }}"
131
174
steps :
132
175
- uses : actions/checkout@v4
133
- - uses : ./.github/actions/common_repo_setup
134
176
135
177
- name : Run Model Input Variations Tests
136
178
run : |
@@ -159,8 +201,6 @@ jobs:
159
201
pytest_verbosity : 0
160
202
steps :
161
203
- uses : actions/checkout@v4
162
- - uses : ./.github/actions/common_repo_setup
163
-
164
204
- name : Download All Metrics Artifacts
165
205
uses : actions/download-artifact@v4
166
206
with :
@@ -182,8 +222,6 @@ jobs:
182
222
pytest_verbosity : 0
183
223
steps :
184
224
- uses : actions/checkout@v4
185
- - uses : ./.github/actions/common_repo_setup
186
-
187
225
- name : Download All Input Variations Metrics Artifacts
188
226
uses : actions/download-artifact@v4
189
227
with :
@@ -196,16 +234,23 @@ jobs:
196
234
with :
197
235
name : model-autogen-op-tests-metrics
198
236
path : metrics-autogen-op/
237
+
199
238
collect-metrics :
200
239
needs : [model-autogen-op-tests]
201
240
if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
202
241
runs-on : ["in-service"]
242
+ container :
243
+ image : ghcr.io/tenstorrent/pytorch2.0_ttnn/ubuntu-22.04-amd64:latest
244
+ credentials :
245
+ username : ${{ github.actor }}
246
+ password : ${{ secrets.GH_TOKEN }}
247
+ options : >-
248
+ --rm -v /dev/hugepages-1G:/dev/hugepages-1G --device /dev/tenstorrent
249
+ -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }}
203
250
env :
204
251
PYTHONPATH : ${{ github.workspace }}
205
252
steps :
206
253
- uses : actions/checkout@v4
207
- - uses : ./.github/actions/common_repo_setup
208
-
209
254
- name : Download All Metrics Artifacts
210
255
uses : actions/download-artifact@v4
211
256
with :
0 commit comments