-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (44 loc) · 1.26 KB
/
nvidia-tests.yaml
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
46
47
48
49
name: nvidia-rtx-3090 tests
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
inter-layer:
runs-on: [ nvidia ]
strategy:
matrix:
ginter: [ 1, 2 ]
memopt: [ '0', '1' ]
steps:
- uses: actions/checkout@v3
- name: Install AxoNN
run: |
pip install -r requirements.txt
- name: Download dataset
run: |
python -c "import torchvision; torchvision.datasets.MNIST(root=\"./axonn/tests\", download=True, train=True)"
- name: Train
run: |
export G_inter=${{ matrix.ginter }}
export G_data=$(( 2 / G_inter ))
export memopt=${{ matrix.memopt }}
echo "training with G_inter = ${G_inter}, G_data = $(( 2 / G_inter )) ${{ matrix.memopt }}"
mpirun -n 2 pytest --with-mpi ./axonn/tests/test_vit.py
- name: Uninstall AxoNN
run: |
pip uninstall --yes axonn
intra-layer:
runs-on: [ nvidia ]
steps:
- uses: actions/checkout@v3
- name: Install AxoNN
run: |
pip install -r requirements.txt
- name: Run unit intra-layer unit tests
run: |
mpirun -n 2 pytest --with-mpi ./axonn/tests/test_intra_layer_fc.py
- name: Uninstall AxoNN
run: |
pip uninstall --yes axonn