-
Notifications
You must be signed in to change notification settings - Fork 1.6k
45 lines (41 loc) · 1.25 KB
/
torch-inductor-tests.yml
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
41
42
43
44
45
name: Torchinductor
on:
workflow_run:
workflows: ["Wheels"]
types: [completed]
workflow_dispatch:
permissions: read-all
jobs:
Runner-Preparation:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Prepare runner matrix
id: set-matrix
run: |
echo '::set-output name=matrix::[["self-hosted", "A100"]]'
Torch-Inductor-Tests:
needs: Runner-Preparation
timeout-minutes: 240 # 4 hours
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: ${{fromJson(needs.Runner-Preparation.outputs.matrix)}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Packages
run: |
./.github/workflows/torch-inductor/scripts/install_torchinductor.sh torchbench
- name: Environment
run: |
source /tmp/torchinductor_venv/bin/activate
./.github/workflows/torch-inductor/scripts/install_triton.sh
- name: Performance
run: |
./.github/workflows/torch-inductor/scripts/run_torchinductor_perf.sh torchbench
# Runs too long time
#- name: Accuracy
# run: |
# ./.github/workflows/torch-inductor/scripts/run_torchinductor_acc.sh torchbench