forked from flagos-ai/FlagScale
-
Notifications
You must be signed in to change notification settings - Fork 0
203 lines (191 loc) · 5.46 KB
/
Copy pathall-tests-nvidia.yml
File metadata and controls
203 lines (191 loc) · 5.46 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
name: All Tests Nvidia
on:
push:
branches: ["main"]
paths-ignore:
- 'hardware/BI_V150/**'
- 'hardware/Cambricon_MLU/**'
- 'hardware/Huawei_Atlas800TA3/**'
- 'hardware/Hygon_BW1000/**'
- 'hardware/Kunlunxin_R310p/**'
- 'hardware/MUSA_S5000/**'
- 'hardware/Metax_C550/**'
- 'hardware/Tsing_micro/**'
pull_request:
branches: ["main"]
paths-ignore:
- 'hardware/BI_V150/**'
- 'hardware/Cambricon_MLU/**'
- 'hardware/Huawei_Atlas800TA3/**'
- 'hardware/Hygon_BW1000/**'
- 'hardware/Kunlunxin_R310p/**'
- 'hardware/MUSA_S5000/**'
- 'hardware/Metax_C550/**'
- 'hardware/Tsing_micro/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.actor }}
cancel-in-progress: true
jobs:
set-env:
runs-on: ubuntu-latest
outputs:
ci_image: ${{ steps.set-env.outputs.ci_image }} # Declare output variable
steps:
- name: Set Environment Variable
id: set-env # Assign an ID to this step
run: |
echo "ci_image=localhost:5000/flagscale:cuda12.8.1-cudnn9.7.1-python3.12-torch2.7.1-time2510131515" >> $GITHUB_OUTPUT # Set output variable
# Train Megatron Unit Tests with Matrix
unit_tests_train_megatron:
needs:
- set-env
uses: ./.github/workflows/unit-tests-nvidia.yml
strategy:
matrix:
subset:
- data
- dist_checkpointing
- distributed
- export
- fusions
- inference
- models
- pipeline_parallel
- post_training
- ssm
- tensor_parallel
- transformer/moe
- transformer
- ./
name: "train_megatron-${{ matrix.subset == './' && 'root' || matrix.subset }}"
with:
backend: train_megatron
subset: ${{ matrix.subset }}
image: ${{ needs.set-env.outputs.ci_image }}
# Train Flagscale Unit Tests with Matrix
unit_tests_train_flagscale:
needs:
- set-env
- unit_tests_train_megatron
uses: ./.github/workflows/unit-tests-nvidia.yml
strategy:
matrix:
subset:
- runner
- ./
name: "train_flagscale-${{ matrix.subset == './' && 'root' || matrix.subset }}"
with:
backend: train_flagscale
subset: ${{ matrix.subset }}
image: ${{ needs.set-env.outputs.ci_image }}
# # Inference Flagscale Unit Tests with Matrix
# unit_tests_inference_flagscale:
# needs:
# - set-env
# - unit_tests_train_flagscale
# uses: ./.github/workflows/unit-tests-nvidia.yml
# strategy:
# matrix:
# subset:
# - inference
# - transformations
# name: "inference_flagscale-${{ matrix.subset == './' && 'root' || matrix.subset }}"
# with:
# backend: inference_flagscale
# subset: ${{ matrix.subset }}
# image: ${{ needs.set-env.outputs.ci_image }}
# Functional Tests with Mision and Type Matrix
functional_tests_train:
needs:
- set-env
- unit_tests_train_flagscale
uses: ./.github/workflows/functional-tests-nvidia.yml
strategy:
matrix:
task:
- aquila
- deepseek
- mixtral
# - llava_onevision # TODO: test need fix
name: "train-${{ matrix.task }}"
with:
task: ${{ matrix.task }}
type: train
image: ${{ needs.set-env.outputs.ci_image }}
functional_tests_hetero:
needs:
- set-env
- functional_tests_train
# TODO: test need fix
uses: ./.github/workflows/functional-tests-nvidia.yml
strategy:
matrix:
task:
- aquila
name: "hetero_train-${{ matrix.task }}"
with:
task: ${{ matrix.task }}
type: hetero_train
image: ${{ needs.set-env.outputs.ci_image }}
# functional_tests_inference:
# needs:
# - set-env
# uses: ./.github/workflows/functional-tests-nvidia.yml
# strategy:
# matrix:
# task:
# - deepseek_r1_distill_qwen
# - deepseek_r1_distill_qwen-flaggems
# - qwen3
# - qwen3-flaggems
# - robobrain2
# # - robobrain2-flaggems
# name: "inference-${{ matrix.task }}"
# with:
# task: ${{ matrix.task }}
# type: inference
# image: ${{ needs.set-env.outputs.ci_image }}
# functional_tests_serve:
# needs:
# - set-env
# - functional_tests_inference
# uses: ./.github/workflows/functional-tests-nvidia.yml
# strategy:
# matrix:
# task:
# - qwen2_5
# - base
# name: "serve-${{ matrix.task }}"
# with:
# task: ${{ matrix.task }}
# type: serve
# image: ${{ needs.set-env.outputs.ci_image }}
functional_tests_rl:
needs:
- set-env
- functional_tests_hetero
uses: ./.github/workflows/functional-tests-nvidia.yml
strategy:
matrix:
task:
- qwen2_5
name: "rl-${{ matrix.task }}"
with:
task: ${{ matrix.task }}
type: rl
image: ${{ needs.set-env.outputs.ci_image }}
# Check All Tests
all-tests:
needs:
- unit_tests_train_megatron
- unit_tests_train_flagscale
# - unit_tests_inference_flagscale
- functional_tests_train
- functional_tests_hetero
# - functional_tests_inference
# - functional_tests_serve
- functional_tests_rl
runs-on: ubuntu-latest
steps:
- name: All Tests Completed
run: echo "All tests completed successfully!"