72
72
run : |
73
73
find "$(pip cache dir)/http-v2" -type f -mtime +14 -exec rm {} \;
74
74
75
- docker-e2e-tests :
75
+ docker-e2e-tests-1st :
76
76
if : github.repository_owner == 'axolotl-ai-cloud'
77
77
# this job needs to be run on self-hosted GPU runners...
78
78
runs-on : [self-hosted, modal]
@@ -83,24 +83,52 @@ jobs:
83
83
fail-fast : false
84
84
matrix :
85
85
include :
86
- - cuda : 121
87
- cuda_version : 12.1.1
88
- python_version : " 3.10"
89
- pytorch : 2.3.1
90
- num_gpus : 1
91
- axolotl_extras : mamba-ssm
92
- - cuda : 121
93
- cuda_version : 12.1.1
94
- python_version : " 3.11"
95
- pytorch : 2.3.1
96
- num_gpus : 1
97
- axolotl_extras : mamba-ssm
98
86
- cuda : 124
99
87
cuda_version : 12.4.1
100
88
python_version : " 3.11"
101
89
pytorch : 2.4.1
102
90
num_gpus : 1
103
91
axolotl_extras :
92
+ steps :
93
+ - name : Checkout
94
+ uses : actions/checkout@v4
95
+ - name : Install Python
96
+ uses : actions/setup-python@v5
97
+ with :
98
+ python-version : " 3.10"
99
+ - name : Install Modal
100
+ run : |
101
+ python -m pip install --upgrade pip
102
+ pip install modal==0.63.64 jinja2
103
+ - name : Update env vars
104
+ run : |
105
+ echo "BASE_TAG=main-base-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}" >> $GITHUB_ENV
106
+ echo "PYTORCH_VERSION=${{ matrix.pytorch}}" >> $GITHUB_ENV
107
+ echo "AXOLOTL_ARGS=${{ matrix.axolotl_args}}" >> $GITHUB_ENV
108
+ echo "AXOLOTL_EXTRAS=${{ matrix.axolotl_extras}}" >> $GITHUB_ENV
109
+ echo "CUDA=${{ matrix.cuda }}" >> $GITHUB_ENV
110
+ echo "N_GPUS=${{ matrix.num_gpus }}" >> $GITHUB_ENV
111
+ - name : Run tests job on Modal
112
+ run : |
113
+ modal run cicd.tests
114
+
115
+ docker-e2e-tests :
116
+ if : github.repository_owner == 'axolotl-ai-cloud'
117
+ # this job needs to be run on self-hosted GPU runners...
118
+ runs-on : [self-hosted, modal]
119
+ timeout-minutes : 90
120
+ needs : [pre-commit, pytest, docker-e2e-tests-1st]
121
+
122
+ strategy :
123
+ fail-fast : false
124
+ matrix :
125
+ include :
126
+ - cuda : 121
127
+ cuda_version : 12.1.1
128
+ python_version : " 3.10"
129
+ pytorch : 2.3.1
130
+ num_gpus : 1
131
+ axolotl_extras : mamba-ssm
104
132
- cuda : 124
105
133
cuda_version : 12.4.1
106
134
python_version : " 3.11"
0 commit comments