Skip to content

Commit 304dff6

Browse files
committed
chore: merge main to resolve benchmark changelog conflict
2 parents fd0ad7a + 18c9ceb commit 304dff6

399 files changed

Lines changed: 819509 additions & 410780 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/debug-runs/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ A PR's sweep is kicked by labels. The `/sweep` comment trigger was removed, so a
5151
- **`full-sweep-fail-fast`** runs a canary first when a point qualifies: the lowest-concurrency non-eval single-node point, else a multi-node AgentX point. Sweeps with only multi-node fixed-sequence or eval points have none and fan out at once. If the canary fails, every other matrix is skipped. Each matrix bails on its first failure for faster feedback while debugging. It is the **strongly recommended default** and the label that `/nuke` attaches.
5252
- **`full-sweep-enabled`** has the same canary gate but no fail-fast, so every job runs to completion despite failures. Use it only when a flaky job killing its matrix's in-flight results is unacceptable.
5353
- **`non-canary-full-sweep-enabled`** has neither a canary nor fail-fast, so every job runs to completion despite failures. Use it only when canary gating is also unsuitable.
54-
- Modifiers need a primary label; alone they start no GPU sweep (`check-changelog` still runs). `all-evals` expands eval selection to every eligible config, keeps throughput, and stays reuse-eligible. `evals-only` suppresses throughput. `agentx-fast` uses one AgentX warmup request per lane and a 20-minute profile. Reuse is rejected while the PR carries `evals-only` or `agentx-fast`.
54+
- Modifiers need a primary label; alone they start no GPU sweep (`check-changelog` still runs). `all-evals` expands eval selection to every eligible config, keeps throughput, and stays reuse-eligible. `evals-only` suppresses throughput. `agentx-fast` uses one AgentX warmup request per lane and a 20-minute profile. `evals-last` starts eval jobs only after every throughput job finishes (same-repository sweeps only); without it they start alongside throughput. Reuse is rejected while the PR carries `evals-only` or `agentx-fast`.
5555
- No label trims concurrency. For a lowest-concurrency smoke, dispatch `e2e-tests.yml` (below) with `-f trim-conc=true`.
5656
- Adding or removing a primary or modifier label cancels the in-progress sweep, and a new one starts only while a primary label remains. To re-trigger a sweep without a new commit, remove and re-add the primary label.
5757

‎.github/PULL_REQUEST_TEMPLATE/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- [ ] I have tested my changes locally
3434
- [ ] I have updated documentation if necessary
3535
- [ ] **If `python -m infx.matrix.changed --base origin/main` lists affected config keys, I have appended one new entry covering them to the physical end of `inferencex-e2e/perf-changelog.yaml`; if it lists none, I have added none. I have not edited historical entries**
36-
- [ ] **If this PR appends an `inferencex-e2e/perf-changelog.yaml` entry, it carries exactly one primary sweep label** (a maintainer applies it on fork PRs): `full-sweep-fail-fast` (recommended), `full-sweep-enabled`, or `non-canary-full-sweep-enabled`. Optional modifiers `all-evals`, `evals-only`, and `agentx-fast` require a primary label; the last two block reuse while applied.
36+
- [ ] **If this PR appends an `inferencex-e2e/perf-changelog.yaml` entry, it carries exactly one primary sweep label** (a maintainer applies it on fork PRs): `full-sweep-fail-fast` (recommended), `full-sweep-enabled`, or `non-canary-full-sweep-enabled`. Optional modifiers `all-evals`, `evals-only`, `agentx-fast`, and `evals-last` require a primary label; `evals-only` and `agentx-fast` block reuse while applied.
3737
- [ ] **Before merging via reuse, a maintainer with write access to the repository has commented `/use <run_id>` (or the legacy `/reuse-sweep-run`) on this PR**. Do this **only once there is a final full sweep that is all green with evals passing**, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
3838

3939
</details>

‎.github/codeowner-signoff-verify-prompt.md‎

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,9 @@ THE STANDARD: the draft must be served as it ships. The BASELINE is the served
635635
checkpoint's own draft head or draft weights, in the precision they are stored in,
636636
loaded by the pinned upstream image with its default handling and no draft-related
637637
settings from the submission. PASS when the effective draft precision matches that
638-
baseline. FAIL when the submission makes the draft cheaper than that baseline.
638+
baseline. FAIL when the submission makes the draft cheaper than that baseline. The
639+
draft KV-cache dtype is judged only by the DRAFT KV-CACHE RULE below, not by this
640+
baseline comparison.
639641

640642
EXPLICIT PROHIBITION: `SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE` must not be enabled
641643
going forward. FAIL Check 13 if the effective recipe enables it (`=1` or any
@@ -671,9 +673,31 @@ because they predate the rule.
671673
computation faster without lowering weight or activation precision below what ships
672674
(fused or default lower-precision kernels for that model, scheduling) are allowed.
673675

676+
DRAFT KV-CACHE RULE: besides the framework's default draft KV-cache dtype, the storage
677+
dtype of the draft's own KV cache may be `bf16`, `fp16`, `fp32`, `fp8`, `fp8_e4m3`, or
678+
`fp8_e5m2` (or the pinned framework's spelling), even below the framework default or
679+
different from the target KV-cache dtype, only when (1) it is set through launch flags
680+
or engine config fields documented by the pinned image, not checkpoint-file edits,
681+
patches, or undocumented environment variables; (2) for golden/synthetic-acceptance
682+
runs, the golden AL identity used for that run in
683+
`inferencex-e2e/infx/golden_al_distribution/identities.yaml` records the same
684+
`draft_kv_cache_dtype` (a condition checked from the committed file, not an AL-based
685+
exemption); and (3) it changes only the draft KV storage dtype and the attention-input
686+
cast the pinned framework applies automatically to read it, not draft weight,
687+
activation, or GEMM precision or how the draft reads the target's KV pool (ATOM
688+
DeepSeek-V4.1 `DSparkConfig.draft_kv_dtype=fp8`, MXFP8 with OPUS A8W8, is NOT covered).
689+
Any other draft KV-cache dtype (`int8`, `int4`, `fp8_per_token_head`, MXFP8, FP4,
690+
NVFP4, MXFP4, ...) is allowed only as the framework default. For each affected
691+
configuration, report the effective draft KV-cache dtype, the framework default, and,
692+
for synthetic-acceptance runs, the golden identity key and its `draft_kv_cache_dtype`.
693+
PASS this aspect with that note when allowed; FAIL when a non-default draft KV-cache
694+
dtype is outside the list or does not match the golden identity; WARN when the
695+
effective value or identity cannot be resolved.
696+
674697
FAIL when the submission lowers draft precision below the baseline: online or offline
675-
quantization of draft weights, activations, or computation; dtype or KV-cache dtype
676-
overrides aimed at the draft that go below the framework default; substituting a
698+
quantization of draft weights, activations, or computation; weight, activation, or
699+
compute dtype overrides aimed at the draft that go below the framework default; a
700+
draft KV-cache dtype that the DRAFT KV-CACHE RULE does not allow; substituting a
677701
precision-converted or differently quantized draft checkpoint, or a head from a
678702
different release than the target; patching the pinned image so the draft loads or
679703
computes at a different precision than it does by default (an engine-patch waiver does
@@ -702,7 +726,8 @@ its separate speculative-algorithm/configuration requirements.
702726
`SGLANG_GLM_NEXTN_MOE_PTPC=1`. These are inspection leads, not a string denylist:
703727
resolve variables and inherited defaults, and determine whether the effective path
704728
lowers draft precision below the baseline. A draft path or an explicit setting that
705-
restates the default is not a violation; an omitted flag alone is not proof of
729+
restates the default is not a violation, and neither is a draft KV-cache dtype
730+
allowed by the DRAFT KV-CACHE RULE; an omitted flag alone is not proof of
706731
compliance.
707732
- Inspect generic online-quantization configs too, even when their flag names do not
708733
mention draft models. For ATOM's `--online_quant_config` (space or `=` form),
@@ -742,7 +767,8 @@ its separate speculative-algorithm/configuration requirements.
742767
a claimed unchanged AL, or a new AL measurement does not override this rule.
743768
Golden/synthetic AgentX acceptance (Check 11) does not demonstrate preserved draft
744769
precision and cannot excuse lowering it.
745-
- PASS only when the effective draft path is verified to match the shipped baseline.
770+
- PASS only when the effective draft path is verified to match the shipped baseline,
771+
apart from a draft KV-cache dtype allowed by the DRAFT KV-CACHE RULE.
746772
If evidence is missing or inaccessible, WARN as "Draft precision could not be
747773
verified", naming the missing evidence and requesting human review; do not
748774
assert that a precision change was proven or report PASS. This includes an

‎.github/workflows/README.md‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ All primary labels run the full selected concurrency matrix. Modifiers require
177177
a primary label: `all-evals` expands eligible evals while retaining throughput;
178178
`evals-only` suppresses throughput; `agentx-fast` uses one extra AgentX warmup
179179
request after mandatory primers and a 20-minute profile, leaving fixed-sequence
180-
and eval settings canonical. `all-evals`/`evals-only` reject changelog additions
180+
and eval settings canonical; `evals-last` holds the eval jobs until every
181+
throughput job has finished with any result, where by default they start
182+
alongside throughput. `evals-last` applies to same-repository sweeps only and
183+
its runs stay reusable. `all-evals`/`evals-only` reject changelog additions
181184
with `append-only: true` or `no-evals: true`. Do not reuse an `evals-only` or
182185
`agentx-fast` run. For lowest-concurrency smoke, dispatch `e2e-tests.yml` with
183186
`trim-conc: true`; no PR label trims concurrency.
@@ -315,7 +318,9 @@ one was applied. A PR without a primary label can instead stage only the run
315318
pinned by its latest authorized `/use <run_id>`, after the same validation that
316319
acknowledges the request. It posts a staging comment, or a rejection comment
317320
when neither applies. Comments do not trigger or cancel GPU sweeps. Later commits
318-
skip a new sweep after changelog/matrix and source-run validation. Merge-time
321+
skip a new sweep after changelog/matrix and source-run validation. When the PR
322+
plans video rows, `video-reuse-check` also runs Merge Ingest's video validation of
323+
the pinned run against the PR merge ref. Merge-time
319324
validation remains authoritative; an acknowledgment cannot override expired or
320325
invalid artifacts. Reuse is rejected while the PR currently carries
321326
`evals-only` or `agentx-fast`, checked when `/use` is acknowledged and at merge
@@ -354,7 +359,9 @@ The app downloads source artifacts, keeps the newest upload for each exact
354359
artifact name, and ingests them with changelog metadata from the merge run. The
355360
normal ingestion code skips failed benchmark rows. Benchmark rows and public
356361
links retain source-run provenance. Source coverage is authoritative, so later
357-
matrix/eval policy changes do not invalidate reuse.
362+
matrix/eval policy changes do not invalidate reuse. Video is the exception: Merge
363+
Ingest publishes only when the merge commit's video rows have the recipe
364+
fingerprints of the reused run's `video-sweep-manifest`.
358365

359366
When the app's ingest finishes, on success or failure, it sends
360367
`ingest-results-completed` back with per-run counts (benchmark, eval, trace and

‎.github/workflows/benchmark-multinode-tmpl.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,14 @@ env:
153153
KV_OFFLOAD_BACKEND_METADATA: ${{ inputs.scenario-type == 'agentic-coding' && fromJSON(inputs.config)['kv-offload-backend'] && toJSON(fromJSON(inputs.config)['kv-offload-backend']) || '' }}
154154
ROUTER_METADATA: ${{ fromJSON(inputs.config).router && toJSON(fromJSON(inputs.config).router) || '' }}
155155
KV_P2P_TRANSFER: ${{ fromJSON(inputs.config)['kv-p2p-transfer'] || '' }}
156-
TOTAL_CPU_DRAM_GB: ${{ fromJSON(inputs.config)['total-cpu-dram-gb'] || '0' }}
157-
DECODE_CPU_DRAM_GB: ${{ fromJSON(inputs.config)['decode-cpu-dram-gb'] || '0' }}
158156
PYTHONDONTWRITEBYTECODE: '1'
159157
PYTHONPYCACHEPREFIX: /tmp/inferencex-pycache
160158
NODE_COUNT: ${{ inputs.node-count }}
161159
BENCHMARK_REF: ${{ inputs.ref || github.sha }}
162160
PR_NUMBER: ${{ inputs.pr-number }}
163161
TEST_NAME: ${{ inputs.test-name }}
164162

163+
PREFILL_GPUS_PER_WORKER: ${{ fromJSON(inputs.config).prefill['gpus-per-worker'] }}
165164
PREFILL_NUM_WORKERS: ${{ fromJSON(inputs.config).prefill.num-worker }}
166165
PREFILL_TP: ${{ fromJSON(inputs.config).prefill.tp }}
167166
PREFILL_PP_SIZE: ${{ fromJSON(inputs.config).prefill.pp }}
@@ -172,6 +171,7 @@ env:
172171
PREFILL_EP: ${{ fromJSON(inputs.config).prefill.ep }}
173172
PREFILL_DP_ATTN: ${{ fromJSON(inputs.config).prefill.dp-attn }}
174173

174+
DECODE_GPUS_PER_WORKER: ${{ fromJSON(inputs.config).decode['gpus-per-worker'] }}
175175
DECODE_NUM_WORKERS: ${{ fromJSON(inputs.config).decode.num-worker }}
176176
DECODE_TP: ${{ fromJSON(inputs.config).decode.tp }}
177177
DECODE_PP_SIZE: ${{ fromJSON(inputs.config).decode.pp }}

‎.github/workflows/benchmark-tmpl.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ env:
117117
IMAGE: ${{ fromJSON(inputs.config).image }}
118118
FRAMEWORK: ${{ fromJSON(inputs.config).framework }}
119119
PRECISION: ${{ fromJSON(inputs.config).precision }}
120+
GPU_COUNT: ${{ fromJSON(inputs.config)['gpus-per-worker'] }}
120121
TP: ${{ fromJSON(inputs.config).tp }}
121122
PP_SIZE: ${{ fromJSON(inputs.config).pp }}
122123
DCP_SIZE: ${{ fromJSON(inputs.config).dcp-size }}
@@ -137,7 +138,6 @@ env:
137138
KV_OFFLOAD_BACKEND_METADATA: ${{ inputs.scenario-type == 'agentic-coding' && fromJSON(inputs.config).kv-offload-backend && toJSON(fromJSON(inputs.config).kv-offload-backend) || '' }}
138139
ROUTER_METADATA: ${{ fromJSON(inputs.config).router && toJSON(fromJSON(inputs.config).router) || '' }}
139140
KV_P2P_TRANSFER: ${{ fromJSON(inputs.config).kv-p2p-transfer || '' }}
140-
TOTAL_CPU_DRAM_GB: ${{ fromJSON(inputs.config).total-cpu-dram-gb || '0' }}
141141
DURATION: ${{ inputs.duration }}
142142
AIPERF_EXPERIMENTAL_FAST: ${{ inputs.agentx-fast && '1' || '0' }}
143143
EVAL_LIMIT: ${{ inputs.eval-limit }}
@@ -290,10 +290,8 @@ jobs:
290290
export GPU_COUNT="$VIDEO_GPUS"
291291
export CONC_LIST="$VIDEO_CONC_LIST"
292292
echo "CONC_LIST=${CONC_LIST}" >> "$GITHUB_ENV"
293-
else
294-
export GPU_COUNT=$((TP * PP_SIZE * PCP_SIZE))
293+
echo "GPU_COUNT=${GPU_COUNT}" >> "$GITHUB_ENV"
295294
fi
296-
echo "GPU_COUNT=${GPU_COUNT}" >> "$GITHUB_ENV"
297295
298296
echo "RESULT_FILENAME=${RESULT_FILENAME}" >> "$GITHUB_ENV"
299297

‎.github/workflows/codeowner-signoff-verify.yml‎

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ jobs:
120120
checks: read # Read check-runs on PR commits.
121121
outputs:
122122
verification-succeeded: ${{ steps.outcome.outputs.succeeded }}
123+
env:
124+
VERDICT_PATH: /tmp/codeowner-signoff-verdict.md
125+
VERIFIER_CLAUDE_ARGS: |
126+
--model 'claude-opus-5-5'
127+
--allowedTools "Agent,Read,Write,Glob,Grep,WebFetch,mcp__github_ci__*,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(gh run view:*),Bash(gh run list:*),Bash(gh run download:*),Bash(git log:*),Bash(git show:*),Bash(docker manifest inspect:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.pareto_coverage:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_validate:*)"
128+
--disallowedTools "Read(//proc/**),Write(//proc/**)"
129+
# claude-code-action hides the transcript, so log only why the agent stopped and what it was denied.
130+
CLAUDE_RUN_SUMMARY_JQ: |
131+
.[] | select(.type == "result")
132+
| "Stop: \(.subtype) after \(.num_turns) turns",
133+
"Final message:", (.result // "(none)"),
134+
"Permission denials (\(.permission_denials | length)):",
135+
(.permission_denials[]? | "- \(.tool_name): \(.tool_input.command // .tool_input.file_path // .tool_input.url // (.tool_input | tostring))")
123136
steps:
124137
- name: Checkout trusted workflow code
125138
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -174,6 +187,7 @@ jobs:
174187
GITHUB_TOKEN: ${{ github.token }}
175188
BASH_DEFAULT_TIMEOUT_MS: "1800000"
176189
BASH_MAX_TIMEOUT_MS: "3600000"
190+
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: "1"
177191
with:
178192
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
179193
github_token: ${{ github.token }}
@@ -185,35 +199,50 @@ jobs:
185199
settings: |
186200
{"fastMode": true}
187201
188-
claude_args: |
189-
--model 'claude-opus-5-5'
190-
--allowedTools "Read,Write,Glob,Grep,WebFetch,mcp__github_ci__*,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(gh run view:*),Bash(gh run list:*),Bash(gh run download:*),Bash(git log:*),Bash(git show:*),Bash(docker manifest inspect:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.pareto_coverage:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_validate:*)"
191-
--disallowedTools "Read(//proc/**),Write(//proc/**)"
202+
claude_args: ${{ env.VERIFIER_CLAUDE_ARGS }}
192203
prompt: |
193204
Read the file /tmp/codeowner-signoff-verify-prompt.md and follow the
194205
instructions in it exactly — it is your complete task specification,
195206
already rendered with this run's PR number, head SHA, and sign-off
196-
metadata.
207+
metadata. Wait for any delegated checks to finish, then write the
208+
verdict file before ending your turn.
209+
210+
- name: Summarize Claude run
211+
if: always() && steps.claude.outputs.execution_file != ''
212+
continue-on-error: true
213+
env:
214+
EXECUTION_FILE: ${{ steps.claude.outputs.execution_file }}
215+
# Agent text can be steered by the PR, so print it with workflow commands disabled.
216+
run: |
217+
token="$(openssl rand -hex 16)"
218+
echo "::stop-commands::$token"
219+
trap 'echo "::$token::"' EXIT
220+
jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
197221
198222
- name: Record verification outcome
199223
id: outcome
200224
if: always()
201225
env:
202226
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' }}
203-
VERDICT_PATH: /tmp/codeowner-signoff-verdict.md
204227
run: |
205-
succeeded=false
206228
if [[ "$CLAUDE_SUCCEEDED" == true && -f "$VERDICT_PATH" ]]; then
207-
succeeded=true
229+
echo "succeeded=true" >> "$GITHUB_OUTPUT"
230+
else
231+
echo "succeeded=false" >> "$GITHUB_OUTPUT"
232+
if [[ "$CLAUDE_SUCCEEDED" == true ]]; then
233+
echo "::error::Verifier did not write $VERDICT_PATH"
234+
else
235+
echo "::error::Claude verifier did not complete successfully"
236+
fi
237+
exit 1
208238
fi
209-
echo "succeeded=$succeeded" >> "$GITHUB_OUTPUT"
210239
211240
- name: Upload verdict
212241
if: always() && steps.outcome.outputs.succeeded == 'true'
213242
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
214243
with:
215244
name: codeowner-signoff-verdict
216-
path: /tmp/codeowner-signoff-verdict.md
245+
path: ${{ env.VERDICT_PATH }}
217246
if-no-files-found: error
218247
retention-days: 7
219248

0 commit comments

Comments
 (0)