Skip to content

Commit 33300f9

Browse files
committed
fix(agentic): tolerate stale GB200 frontend drain gauge
Signed-off-by: Cam Quilici <cjquilici@gmail.com>
1 parent 6805de0 commit 33300f9

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

‎benchmarks/multi_node/agentic_srt.sh‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,17 @@ wait_for_agentic_servers_idle() {
4545
import sys
4646
import time
4747
import urllib.request
48+
import os
4849
4950
timeout_seconds = int(sys.argv[1])
5051
poll_seconds = int(sys.argv[2])
5152
frontend_url = sys.argv[3]
5253
worker_urls = [url for url in sys.argv[4].split(",") if url]
5354
deadline = time.monotonic() + timeout_seconds
5455
idle_polls = 0
56+
stale_frontend_polls = int(os.environ.get("AIPERF_DRAIN_STALE_FRONTEND_POLLS", "12"))
57+
stale_frontend_idle_polls = 0
58+
last_frontend_active = None
5559
5660
5761
def fetch_metrics(url: str) -> str:
@@ -80,12 +84,34 @@ while time.monotonic() < deadline:
8084
worker_metrics = fetch_metrics(worker_url)
8185
worker_active += metric_sum(worker_metrics, "vllm:num_requests_running")
8286
worker_active += metric_sum(worker_metrics, "vllm:num_requests_waiting")
87+
if worker_active == 0 and frontend_active > 0:
88+
if last_frontend_active == frontend_active:
89+
stale_frontend_idle_polls += 1
90+
else:
91+
stale_frontend_idle_polls = 1
92+
last_frontend_active = frontend_active
93+
else:
94+
stale_frontend_idle_polls = 0
95+
last_frontend_active = frontend_active
96+
frontend_effectively_idle = frontend_active == 0
97+
if (
98+
worker_active == 0
99+
and frontend_active > 0
100+
and stale_frontend_idle_polls >= stale_frontend_polls
101+
):
102+
print(
103+
"Agentic drain treating stable frontend_active="
104+
f"{frontend_active:g} as stale after "
105+
f"{stale_frontend_idle_polls} worker-idle polls",
106+
flush=True,
107+
)
108+
frontend_effectively_idle = True
83109
print(
84110
f"Agentic drain status: frontend_active={frontend_active:g} "
85111
f"worker_running_or_waiting={worker_active:g}",
86112
flush=True,
87113
)
88-
if frontend_active == 0 and worker_active == 0:
114+
if frontend_effectively_idle and worker_active == 0:
89115
idle_polls += 1
90116
if idle_polls >= 3:
91117
print("Agentic servers remained idle for three polls", flush=True)

‎experimental/dsv4_agentx_gb200_autoresearch/experiment-ledger.jsonl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
{"timestamp":"2026-07-01T06:03:58Z","kind":"search_space_update","inferencex_base_sha":"3d636030a11ea02d71d2e9a49fd039a5229e9169","aiperf_sha":"0595c16aa7e7a7d853d01a932dcd06ced3d8b94d","removed_configs":["dsv4-fp4-gb200-dynamo-vllm-agentic-3p2d-tep8-tp8-autoresearch"],"added_configs":["dsv4-fp4-gb200-dynamo-vllm-agentic-1p1d-dep8-tp8-lowlat-autoresearch","dsv4-fp4-gb200-dynamo-vllm-agentic-1p2d-dep8-tp8-lowlat-autoresearch","dsv4-fp4-gb200-dynamo-vllm-agentic-2p1d-dep8-dep8-bt16k-autoresearch"],"rationale":"User requested removing worthless TEP configs, adding low-concurrency DEP8 prefill plus TP8 decode low-latency candidates, and testing larger 16k prefill batches to push high-throughput frontier without the observed c192-to-c224 TTFT cliff.","local_validation":"generate_sweep_configs full-sweep produced 12 agentic GB200 configs, all duration=3600, no max-model-len, no TEP/3p2d strings, no duplicate exp-name values."}
55
{"timestamp":"2026-07-01T08:36:00Z","kind":"failure_diagnosis","workflow_run_id":28500373166,"workflow_attempt":1,"github_job_id":84476045718,"slurm_job_id":20417,"config":"dsv4_p2x8_d1x8_conc176x192","point":"conc176","inferencex_sha":"9a6feea4273b3d5dbaca65f49d44c03f9bc2039d","aiperf_sha":"0595c16aa7e7a7d853d01a932dcd06ced3d8b94d","observed":"AIPerf aborted during accelerated warmup before profiling with replay_rc=1, Benchmark aborted: warmup_failure, no valid profile export, and mass ServerDisconnectedError after profile cancel.","root_cause":"Server-side prefill EngineCore died; frontend reported EngineDeadError and prefill logs showed crash in fused_moe_trtllm_sm100 under the experimental 16384 max-num-batched-tokens recipe.","decision":"Cap the experimental high-throughput recipe back to 8192 max-num-batched-tokens while preserving the materialized CONFIG_FILE path so the failed matrix job can be rerun on the same workflow."}
66
{"timestamp":"2026-07-01T15:56:00Z","kind":"false_green_diagnosis","workflow_run_id":28500373166,"workflow_attempt":1,"github_job_id":84476045810,"slurm_job_id":20423,"config":"dsv4_p2x8_d1x8_conc144x160","point":"conc160","inferencex_sha":"c53253c5434fdb70f05f61a4fd2fb1ac32e8ec1f","aiperf_sha":"0595c16aa7e7a7d853d01a932dcd06ced3d8b94d","observed":"GHA job concluded success even though conc160 AIPerf emitted ProfileAborted(failed_request_threshold), profiling lasted only 25.35s, profile_export_aiperf.json was absent, and checkpoint artifact contained only the conc144 success marker. The bmk artifact nevertheless uploaded a partial conc160 aggregate.","root_cause":"GB200 host launcher treated presence of per-concurrency JSON files with num_requests_successful>0 as sufficient, cancelled server workers, and never required the AgentX success markers that are written only after AIPerf replay/result validation succeeds.","decision":"Require validated per-concurrency AgentX checkpoint JSON plus .success.json marker before early Slurm cancellation and before GB200 launcher success; mirror the same marker check in benchmark-multinode-tmpl for future runs."}
7+
{"timestamp":"2026-07-01T18:38:00Z","kind":"drain_gate_fix","workflow_run_id":28500373166,"workflow_attempt":1,"github_job_id":84476045894,"slurm_job_id":20426,"config":"dsv4_p2x8_d1x8_conc96x128","point":"conc96","inferencex_sha_before_fix":"6805de0b730bc678d74b6984ec7c54a369c4c243","aiperf_sha":"0595c16aa7e7a7d853d01a932dcd06ced3d8b94d","observed":"conc96 completed 3600s profiling with replay_rc=0, 9884 successful requests, profile_export_aiperf.json/server metrics/timeslices present, checkpoint and .success marker staged, but inter-point drain stayed at frontend_active=28 while worker_running_or_waiting=0.","root_cause":"Dynamo frontend active request gauge can remain stale after AIPerf cancellation/grace completion even after workers are idle and the result is fully exported; the drain gate treated the stale frontend gauge as real work and would burn the 1800s drain timeout before conc128.","decision":"Allow wait_for_agentic_servers_idle to treat stable nonzero frontend_active as stale after 12 consecutive worker-idle polls, then require the normal three idle polls before continuing. This preserves worker-idle safety while avoiding false drain failures."}

0 commit comments

Comments
 (0)