Commit 73d9beb
[Benchmark] Add benchmark functional test framework with Qwen3 test case (#1145)
### PR Category
CICD
### PR Types
New Features
### PR Description
Add a benchmark functional test framework to the CI/CD pipeline,
enabling automated detection of training performance regressions by
comparing runtime metrics against baseline gold values.
- Introduce dedicated benchmark workflow
(`functional_tests_benchmark.yml`) with artifact download retry logic,
environment auto-setup, benchmark log parsing, metrics upload to
backend, and failure log archiving
- Add `test_benchmark_equal` in `check_results.py` supporting two
threshold types (`upper_bound` for elapsed time, `lower_bound` for
throughput) with configurable tolerance and automatic warmup iteration
skipping (first 5 iterations)
- Add `parse_benchmark_output.py` to extract metrics from training logs
into structured JSON and upload to the metrics backend for tracking
- Register `benchmark` as a new task type in the test runner
(`run_functional_tests.sh`), platform config loader
(`load_platform_config.sh`), and platform definition (`cuda.yaml`)
- Add Qwen3 tp2_pp2 as the first benchmark test case with gold values
for elapsed time per iteration (ms) and throughput per GPU (TFLOP/s/GPU)
at 10% tolerance
- Integrate benchmark tests into `all_tests_common.yml` and re-enable
inference/serve test checks in the completion gate
---------
Co-authored-by: zihugithub <fbye@baai.ac.cn>1 parent 1c6b05a commit 73d9beb
11 files changed
Lines changed: 751 additions & 15 deletions
File tree
- .github/workflows
- tests
- functional_tests/benchmark/qwen3
- conf
- train
- gold_values
- test_utils
- config/platforms
- runners
- tools/install/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
227 | 246 | | |
228 | 247 | | |
229 | 248 | | |
| |||
234 | 253 | | |
235 | 254 | | |
236 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
237 | 259 | | |
238 | | - | |
239 | | - | |
240 | 260 | | |
241 | 261 | | |
242 | 262 | | |
| |||
269 | 289 | | |
270 | 290 | | |
271 | 291 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
278 | 297 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
284 | 309 | | |
| 310 | + | |
285 | 311 | | |
286 | 312 | | |
287 | 313 | | |
| |||
0 commit comments