Skip to content

[CI] Remove profiling from nightly tests - #33832

Merged
Fridge003 merged 4 commits into
sgl-project:mainfrom
Fridge003:codex/remove-nightly-profiling
Aug 6, 2026
Merged

Fridge003 merged 4 commits into
sgl-project:mainfrom
Fridge003:codex/remove-nightly-profiling

Conversation

@Fridge003

@Fridge003 Fridge003 commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

We don't need profiler results in nightly runs, since it costs a lot of time and disk spaces

Modifications

  • Stop NightlyBenchmarkRunner from enabling profiler capture or generating trace paths.
  • Remove trace links and Perfetto-specific content from nightly benchmark reports.
  • Rename nightly output APIs and directories from profile terminology to result terminology.
  • Remove all trace publication steps and trace-specific environment variables from the NVIDIA nightly workflow.
  • Preserve SGLang's profiler implementation, product benchmark profile fields, dedicated profiling tests, and the standalone trace publishing utility.

Accuracy Tests

Not applicable. This PR only changes nightly benchmark orchestration and reporting; model execution and outputs are unchanged.

Speed Tests and Profiling

Not applicable. The intended behavior is to stop nightly profiler capture. Benchmark requests and metric collection remain unchanged.

Validation performed:

  • Python compilation for all changed Python files
  • AST collection for nightly-perf-text-2-gpu, nightly-perf-vlm-2-gpu, and nightly-8-gpu-common
  • YAML parsing for .github/workflows/nightly-test-nvidia.yml
  • pre-commit run --from-ref origin/main --to-ref HEAD
  • Scope scans confirming no protected profiler implementation or dedicated profiling paths changed

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ❌ Run #31083731860
Latest PR Test (Extra): ❌ Run #31083731549

@github-actions github-actions Bot added documentation Improvements or additions to documentation amd Multi-modal multi-modal language model deepseek blackwell SM100/SM120 labels Aug 6, 2026
@Fridge003
Fridge003 force-pushed the codex/remove-nightly-profiling branch from 116d1dc to 6d0d666 Compare August 6, 2026 07:37
@Fridge003
Fridge003 force-pushed the codex/remove-nightly-profiling branch from 6d0d666 to ed8e330 Compare August 6, 2026 07:39
@Fridge003

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/perf/test_text_models_perf.py

@github-actions

github-actions Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/perf/test_text_models_perf.py:

🚀 2-gpu-h100 (1 test): ✅ View workflow run

cd test/ && python3 registered/perf/test_text_models_perf.py

@Fridge003
Fridge003 marked this pull request as ready for review August 6, 2026 08:07
@Fridge003
Fridge003 merged commit 0e58452 into sgl-project:main Aug 6, 2026
102 of 118 checks passed
saturn-acc pushed a commit to saturn-acc/sglang that referenced this pull request Aug 16, 2026
michaelzhang-ai added a commit that referenced this pull request Aug 17, 2026
Drops the perf half of this PR so it lands as accuracy only. Removed:

  - test/registered/amd/perf/mi35x/test_kimi_k3_perf_mi35x.py
  - the nightly-perf-8-gpu-mi35x-kimi-k3 suite in run_suite.py
  - the nightly-perf-8-gpu-mi35x-kimi-k3-rocm720 job, plus its job_select
    option and check-all-jobs entry

Two reasons. The perf job has never been green: its one dispatch, in run
31853704954, died in setUpClass after 23s because the test was written against
the pre-#33832 NightlyBenchmarkRunner API (setup_profile_directory, and an
enable_profile kwarg that #33832 removed). The accuracy job in that same run
passed, so nothing about accuracy depends on it.

Second, a separate perf job pays the full 1.56 TB checkpoint cost a second time
and takes a second 8-GPU MI35x slot on a contended runner. The follow-up adds
the sweep as a step inside the accuracy job instead, which reuses the container
and gets the accuracy gating from step ordering rather than from `needs:`.

The accuracy job, its suite registration and the Kimi-K2.6 retirement are all
untouched.

Co-authored-by: Michael <[email protected]>
michaelzhang-ai added a commit that referenced this pull request Aug 17, 2026
Follow-up to the accuracy-only K3 nightly. Adds the TP8 batch-size sweep
([1, 8, 16, 64]) on the same non-speculative Day-0 recipe as the eval, so a perf
regression cannot be confused with a config difference.

It runs as the step after the eval in nightly-8-gpu-mi35x-kimi-k3-rocm720 rather
than as a job of its own. That matches the twenty other combined accuracy plus
performance jobs in this workflow, and it is the better arrangement here: the
1.56 TB MXFP4 checkpoint is already in the container cache once the eval has
finished, and it takes one 8-GPU MI35x slot instead of two. Step ordering also
supplies the accuracy gate that a separate job needed `needs:` for, and it drops
the wart that came with it -- perf could not be dispatched on its own, because
selecting only it skipped accuracy and therefore skipped perf.

continue-on-error follows the same siblings so a perf hiccup cannot turn the
accuracy result of the job red, since check-all-jobs gates on the job.

The test itself is fixed up against the current NightlyBenchmarkRunner. The
earlier revision was written against the pre-#33832 API and died in setUpClass:

  - setup_profile_directory() -> setup_result_directory()
  - PROFILE_DIR -> RESULT_DIR, and performance_profiles_* -> performance_results_*
    to match every sibling and the results_*.json that save_metrics.py collects
  - drops the enable_profile kwarg, which #33832 removed from
    run_benchmark_for_model and which would have raised TypeError immediately
    after the first failure was cleared

Co-authored-by: Michael <[email protected]>
michaelzhang-ai added a commit that referenced this pull request Aug 17, 2026
Follow-up to the accuracy-only K3 nightly. Adds the TP8 batch-size sweep
([1, 8, 16, 64]) on the same non-speculative Day-0 recipe as the eval, so a perf
regression cannot be confused with a config difference.

It runs as the step after the eval in nightly-8-gpu-mi35x-kimi-k3-rocm720 rather
than as a job of its own. That matches the twenty other combined accuracy plus
performance jobs in this workflow, and it is the better arrangement here: the
1.56 TB MXFP4 checkpoint is already in the container cache once the eval has
finished, and it takes one 8-GPU MI35x slot instead of two. Step ordering also
supplies the accuracy gate that a separate job needed `needs:` for, and it drops
the wart that came with it -- perf could not be dispatched on its own, because
selecting only it skipped accuracy and therefore skipped perf.

continue-on-error follows the same siblings so a perf hiccup cannot turn the
accuracy result of the job red, since check-all-jobs gates on the job.

The test itself is fixed up against the current NightlyBenchmarkRunner. The
earlier revision was written against the pre-#33832 API and died in setUpClass:

  - setup_profile_directory() -> setup_result_directory()
  - PROFILE_DIR -> RESULT_DIR, and performance_profiles_* -> performance_results_*
    to match every sibling and the results_*.json that save_metrics.py collects
  - drops the enable_profile kwarg, which #33832 removed from
    run_benchmark_for_model and which would have raised TypeError immediately
    after the first failure was cleared

Co-authored-by: Michael <[email protected]>
Atituiset pushed a commit to Atituiset/sglang that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amd blackwell SM100/SM120 deepseek documentation Improvements or additions to documentation Multi-modal multi-modal language model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant