Skip to content

[DO NOT MERGE] Run-only: gb200 dsr1 measured power+temp (canonical NVIDIA)#1791

Open
arygupt wants to merge 3 commits into
mainfrom
feat/dsr1-gb200-powercheck-run
Open

[DO NOT MERGE] Run-only: gb200 dsr1 measured power+temp (canonical NVIDIA)#1791
arygupt wants to merge 3 commits into
mainfrom
feat/dsr1-gb200-powercheck-run

Conversation

@arygupt

@arygupt arygupt commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

⚠️ DO NOT MERGE — run-only validation (canonical NVIDIA via gb200)

Purpose: get canonical NVIDIA measured dsr1 power+temp on the healthy gb200 runner, sidestepping the wedged gb300-nv fleet.

Carries #1574's self-contained consumer code (aggregate_power.py/process_result.py + tests) on top of main, plus the gb200 launcher perfmon wiring and a single 1-job changelog entry (dsr1-fp4-gb200-dynamo-sglang-powercheck). Matrix = exactly one gb200 job (1k/1k, conc 8, 1×prefill TP4 + 2×decode TP4) — verified with generate_sweep_configs.

Same proven pipeline as the gb300 CoreWeave validation (run 27170607165): launch_gb200-nv.sh clones the perfmon fork (gb200 dsr1 recipes + perfmon machinery), injects monitoring: + a 90-min health_check, and stages perf_samples_*.csv + GPU_METRICS_CSV_GLOB → Process result → aggregate_power.py patches the agg JSON with avg_power_w + prefill/decode + per-worker temp/util/mem.

Why not merge: duplicates #1574's aggregate_power.py. Closed once the data lands.

Known risk to watch on first run: the Oracle/watchtower gb200 cluster may not cross-mount compute→head, so per-node perf_samples (written on compute) may need the shared-FS treatment the minimax path already uses (flagged inline in the launcher).

🤖 Generated with Claude Code


Note

Medium Risk
Changes how benchmark agg JSON is patched and multinode jobs clone external srt-slurm forks; wrong CSV selection or aggregation could publish incorrect power metrics, though behavior is guarded and best-effort.

Overview
Adds run-only sweep configs dsr1-fp4-gb200-dynamo-sglang-powercheck and dsr1-fp4-b200-dynamo-sglang-powercheck (single 1k/1k jobs) plus changelog entries to validate measured energy on healthy NVIDIA multinode pools.

GB200/B200 launchers for dynamo-sglang + dsr1 now clone SemiAnalysisAI/srt-slurm@feat/inferencex-perfmon, enable PERFMON_ENABLED, inject recipe monitoring: and longer health_check, then stage perf_samples_*.csv and set GPU_METRICS_CSV_GLOB for downstream processing.

aggregate_power.py grows from power-only to multinode-aware telemetry: --csv-glob, temp/util/mem columns, per-worker rollups from perf_samples_<role>_w<idx>_<host>.csv, disagg prefill/decode power and per-stage joules, and bench-window fallbacks when multinode JSON lacks Unix timestamps.

process_result.py prefers GPU_METRICS_CSV_GLOB over single-node CSVs (no stale fallback) and passes disagg into aggregation.

CI: multinode workflow Slurm pre/post cleanup now sudo rm -rf root-owned benchmark_logs so cancelled container runs do not break actions/checkout on shared runners.

Reviewed by Cursor Bugbot for commit 06f8f37. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution! For vLLM & SGLang, please ensure that your recipes is similar to the official vLLM recipes and/or the SGLang cookbook

If it is not, please create a PR first before we can merge your single node PR into the master branch. Let's ensure that the documentation is first class such that the entire ML community can benefit from your hard work! Thank you

PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. If re-running failed jobs is attempted, PR authors are responsible for ensuring it passes. See GitHub's docs on re-running failed jobs: https://docs.github.com/en/actions/how-tos/manage-workflow-runs/re-run-workflows-and-jobs#re-running-failed-jobs-in-a-workflow

As a rule of thumb, generally, PR authors should request a review & get a PR approval from the respective companies' CODEOWNERS before requesting a review from core maintainers.

If additional help is needed, PR authors can reach out to core maintainers over Slack.

Comment thread utils/aggregate_power.py Fixed
Comment thread utils/aggregate_power.py
total_system_energy_j = avg_power_w * num_gpus * duration
joules_per_output_token = total_system_energy_j / total_output
total_tokens = total_output + total_input
joules_per_output_token = total_system_energy_j / total_output # cluster fallback

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Desync samples inflate joules

Medium Severity

Multinode energy uses avg_power_w * num_gpus * duration while num_gpus counts every GPU seen across all timestamp buckets, but per-bucket averages can come from only a subset of nodes when perfmon polls don’t align. That pairing can overstate joules_per_* and disagg stage energy even when per-GPU wattage looks correct.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c0b79f4. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@arygupt arygupt force-pushed the feat/dsr1-gb200-powercheck-run branch from c0b79f4 to 742665d Compare June 16, 2026 21:22
Comment thread utils/aggregate_power.py


# Back-compat shim — some external callers may have imported _parse_power.
_parse_power = _parse_numeric_cell

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 742665d. Configure here.

git clone https://github.com/SemiAnalysisAI/srt-slurm.git "$SRT_REPO_DIR"
cd "$SRT_REPO_DIR"
git checkout feat/inferencex-perfmon
export PERFMON_ENABLED=1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gb200 dsr1 lacks fp4 guard

Medium Severity

The new perfmon fork branch matches all dynamo-sglang/dsr1 runs, not only the fp4 powercheck. launch_b200-dgxc.sh gates the same campaign on PRECISION == "fp4", but gb200 also switches fp8 configs (e.g. dsr1-fp8-gb200-dynamo-sglang) to SemiAnalysisAI/srt-slurm@feat/inferencex-perfmon and sets PERFMON_ENABLED=1, replacing the validated cquil11/srt-slurm-nv path for unrelated jobs on this commit.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 742665d. Configure here.

if ! grep -q '^health_check:' "$CONFIG_PATH"; then
printf '\nhealth_check:\n max_attempts: 540\n interval_seconds: 10\n' >> "$CONFIG_PATH"
echo "[perfmon] injected health_check (90min ceiling) into $CONFIG_PATH"
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing health_check not bumped

Medium Severity

On the perfmon path, gb200 only appends a 90-minute health_check when the recipe has no top-level health_check: key. Typical dsr1 recipes already define health_check with max_attempts: 360 (60 minutes), so the launcher leaves that limit unchanged. The b200 path forcibly sets four-space max_attempts to 540 for the same warmup rationale, so gb200 powercheck may run with a shorter ready ceiling than intended.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 742665d. Configure here.

arygupt and others added 3 commits June 16, 2026 14:25
…en pattern)

Mirrors the gb300 wiring: the dynamo-sglang + dsr1 path now clones the SemiAnalysisAI perfmon fork (which ships the gb200 dsr1 recipes at recipes/gb200-fp?/<seq>/*.yaml — the exact CONFIG_FILE the dsr1-fp?-gb200-dynamo-sglang configs reference — PLUS the perfmon machinery) instead of cquil11/srt-slurm-nv. Injects monitoring: + health_check (90min ceiling for the ~35min dsr1 warmup), and stages perf_samples_*.csv + GPU_METRICS_CSV_GLOB for Process-result.

Targets canonical NVIDIA measured power+temp on the HEALTHY gb200 runner, sidestepping the wedged gb300-nv fleet. Run is gated. Known risk to validate on first run: the Oracle/watchtower gb200 cluster may not cross-mount compute->head, so per-node perf_samples written on compute may need the shared-FS treatment the minimax path already uses.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…nical NVIDIA)

Path-B-style run-only branch off main to get CANONICAL NVIDIA dsr1 power+temp on the HEALTHY gb200 runner, sidestepping the wedged gb300-nv fleet. Carries #1574's self-contained consumer code (aggregate_power.py/process_result.py + tests) + a 1-job changelog entry (dsr1-fp4-gb200-dynamo-sglang-powercheck). gb200 launcher perfmon wiring is the prior commit. Matrix verified = exactly 1 gb200 job.

DO NOT MERGE (duplicates #1574). Run-only to harvest measured data; close after it lands.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ical NVIDIA)

Wire perfmon into launch_b200-dgxc.sh's dsr1-fp4 dynamo-sglang branch:
clone SemiAnalysisAI/srt-slurm@feat/inferencex-perfmon (ships recipes/
b200-fp4/1k1k.yaml + nvidia-smi perfmon) instead of NVIDIA/srt-slurm@main,
insert monitoring: INTO the recipe base: block (survives the zip_override),
bump base.health_check.max_attempts to 540 (90min), and stage
perf_samples_*.csv + GPU_METRICS_CSV_GLOB before the outputs cleanup.

Add dsr1-fp4-b200-dynamo-sglang-powercheck (1k1k stp_lowlat[0], 1P TP4 +
5D TP8, conc[16]) -> matrix expands to ONE b200 job. The b200-multinode
pool (dgxc-slurm_{7,8,9}) health is unverified (idle 60+ sweeps) but is
the best of the wedged/idle NVIDIA multinode pools. Run-only; do not merge.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@arygupt arygupt force-pushed the feat/dsr1-gb200-powercheck-run branch from 742665d to 06f8f37 Compare June 16, 2026 21:25
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant