-
Notifications
You must be signed in to change notification settings - Fork 186
150 lines (135 loc) · 5.29 KB
/
1k8k-sweep.yml
File metadata and controls
150 lines (135 loc) · 5.29 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
name: "1K/8K Sweep"
concurrency:
group: benchmark-lock-1k8k
cancel-in-progress: false
on:
workflow_dispatch:
schedule:
- cron: '0 23 * * *'
on:
# pull_request:
workflow_dispatch:
jobs:
get-70b-configs:
runs-on: ubuntu-latest
outputs:
search-space-config: ${{ steps.get-70b-configs.outputs.search-space-config }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- id: get-70b-configs
run: |
CONFIG_JSON=$(python3 ${GITHUB_WORKSPACE}/utils/matrix-logic/get_full_sweep_configs.py --config-files ${GITHUB_WORKSPACE}/.github/configs/nvidia-master.yaml ${GITHUB_WORKSPACE}/.github/configs/amd-master.yaml --seq-lens 1k8k --model-prefix 70b)
echo "search-space-config=$CONFIG_JSON" >> $GITHUB_OUTPUT
get-dsr1-configs:
runs-on: ubuntu-latest
outputs:
search-space-config: ${{ steps.get-dsr1-configs.outputs.search-space-config }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- id: get-dsr1-configs
run: |
CONFIG_JSON=$(python3 ${GITHUB_WORKSPACE}/utils/matrix-logic/get_full_sweep_configs.py --config-files ${GITHUB_WORKSPACE}/.github/configs/nvidia-master.yaml ${GITHUB_WORKSPACE}/.github/configs/amd-master.yaml --seq-lens 1k8k --model-prefix dsr1)
echo "search-space-config=$CONFIG_JSON" >> $GITHUB_OUTPUT
get-gptoss-configs:
runs-on: ubuntu-latest
outputs:
search-space-config: ${{ steps.get-gptoss-configs.outputs.search-space-config }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- id: get-gptoss-configs
run: |
CONFIG_JSON=$(python3 ${GITHUB_WORKSPACE}/utils/matrix-logic/get_full_sweep_configs.py --config-files ${GITHUB_WORKSPACE}/.github/configs/nvidia-master.yaml ${GITHUB_WORKSPACE}/.github/configs/amd-master.yaml --seq-lens 1k8k --model-prefix gptoss)
echo "search-space-config=$CONFIG_JSON" >> $GITHUB_OUTPUT
benchmark-70b:
needs: get-70b-configs
uses: ./.github/workflows/benchmark-tmpl.yml
name: 70b 1k8k
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.get-70b-configs.outputs.search-space-config) }}
secrets: inherit
with:
exp-name: "70b_1k8k"
isl: 1024
osl: 1024
max-model-len: 2048
runner: ${{ matrix.config.runner }}
image: ${{ matrix.config.image }}
model: ${{ matrix.config.model }}
framework: ${{ matrix.config.framework }}
precision: ${{ matrix.config.precision }}
tp: ${{ matrix.config.tp }}
ep: ${{ matrix.config.ep || 1 }}
dp-attn: ${{ matrix.config.dp-attn || false }}
conc: ${{ matrix.config.conc }}
benchmark-dsr1:
needs: get-dsr1-configs
uses: ./.github/workflows/benchmark-tmpl.yml
name: dsr1 1k8k
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.get-dsr1-configs.outputs.search-space-config) }}
secrets: inherit
with:
exp-name: "dsr1_1k8k"
isl: 1024
osl: 1024
max-model-len: 2048
runner: ${{ matrix.config.runner }}
image: ${{ matrix.config.image }}
model: ${{ matrix.config.model }}
framework: ${{ matrix.config.framework }}
precision: ${{ matrix.config.precision }}
tp: ${{ matrix.config.tp }}
ep: ${{ matrix.config.ep || 1 }}
dp-attn: ${{ matrix.config.dp-attn || false }}
conc: ${{ matrix.config.conc }}
benchmark-gptoss:
needs: get-gptoss-configs
uses: ./.github/workflows/benchmark-tmpl.yml
name: gptoss 1k8k
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.get-gptoss-configs.outputs.search-space-config) }}
secrets: inherit
with:
exp-name: "gptoss_1k8k"
isl: 1024
osl: 1024
max-model-len: 2048
runner: ${{ matrix.config.runner }}
image: ${{ matrix.config.image }}
model: ${{ matrix.config.model }}
framework: ${{ matrix.config.framework }}
precision: ${{ matrix.config.precision }}
tp: ${{ matrix.config.tp }}
ep: ${{ matrix.config.ep || 1 }}
dp-attn: ${{ matrix.config.dp-attn || false }}
conc: ${{ matrix.config.conc }}
collect-70b-results:
needs: benchmark-70b
if: ${{ always() }}
uses: ./.github/workflows/collect-results.yml
secrets: inherit
with:
exp-name: "70b_1k8k"
collect-dsr1-results:
needs: benchmark-dsr1
if: ${{ always() }}
uses: ./.github/workflows/collect-results.yml
secrets: inherit
with:
exp-name: "dsr1_1k8k"
collect-gptoss-results:
needs: benchmark-gptoss
if: ${{ always() }}
uses: ./.github/workflows/collect-results.yml
secrets: inherit
with:
exp-name: "gptoss_1k8k"