Skip to content

Commit e258640

Browse files
committed
Merge remote-tracking branch 'origin/main' into pr-4961
Signed-off-by: Cam Quilici <cjquilici@gmail.com> # Conflicts: # inferencex-e2e/configs/ci-priority.yaml # inferencex-e2e/perf-changelog.yaml
2 parents 317df84 + 5a1f810 commit e258640

41 files changed

Lines changed: 1359 additions & 853 deletions

Some content is hidden

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

‎.github/actions/classify-priority/action.yml‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ inputs:
2929

3030
outputs:
3131
criteria:
32-
description: JSON array for ci_priority --criteria-json, or empty for unscoped scoring
32+
description: JSON array for scheduler_facts --criteria-json, or empty for an unscoped run
3333
value: ${{ steps.normalize.outputs.criteria }}
3434

3535
runs:
@@ -74,10 +74,21 @@ runs:
7474
env:
7575
E2E_ROOT: ${{ github.action_path }}/../../../inferencex-e2e
7676
run: |
77+
# Read criteria from the checkout under test, so models it adds join the enum.
78+
catalog_root=""
79+
for root in "$GITHUB_WORKSPACE/inferencex-e2e" "$GITHUB_WORKSPACE" "$E2E_ROOT"; do
80+
if [ -f "$root/configs/amd-master.yaml" ] && [ -f "$root/configs/nvidia-master.yaml" ]; then
81+
catalog_root="$root"
82+
break
83+
fi
84+
done
85+
if [ -z "$catalog_root" ]; then
86+
echo "::error::no checkout holds configs/amd-master.yaml and configs/nvidia-master.yaml" >&2
87+
exit 1
88+
fi
7789
criteria=$(env PYTHONPATH="$E2E_ROOT" \
7890
uv run --no-project --exclude-newer PT12H --python 3.12 --with pyyaml \
79-
python -P -m infx.workflows.ci_priority \
80-
--policy "$E2E_ROOT/configs/ci-priority.yaml" --list-criteria)
91+
python -P -m infx.workflows.scheduler_facts --root "$catalog_root" --list-criteria)
8192
schema=$(jq -c 'map(select(. != "checklist-complete")) | {type:"object",properties:{criteria:{type:"array",items:{type:"string",enum:.},uniqueItems:true},reason:{type:"string"}},required:["criteria","reason"]}' <<<"$criteria")
8293
echo "json=$schema" >> "$GITHUB_OUTPUT"
8394
@@ -127,10 +138,10 @@ runs:
127138
- multi-node: separate prefill and decode workers
128139
- agentic: agentic-coding or AgentX workload
129140
- eval-only: evaluation without throughput measurement
130-
- fp4: FP4 precision
131-
- mtp, draft_model: speculative decoding method
132-
- sglang, vllm, dynamo-sglang, dynamo-vllm: runtime framework
133-
- model criterion: the config model-prefix itself (minimaxm31flash, not minimaxm3)
141+
- precision criterion: the config precision itself
142+
- spec-decoding criterion: the config speculative decoding method itself
143+
- framework criterion: the config framework itself
144+
- model criterion: the config model-prefix itself
134145
- patchwork: modified upstream engine or runtime source
135146
136147
Patchwork includes patch files, git apply, source mutation,

‎.github/workflows/README.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,22 @@ does not dispatch a sweep. Changing a recognized primary or modifier label
187187
cancels the active sweep; another starts only if a primary label remains.
188188
To retrigger an already-labeled PR, remove and reapply its primary label.
189189
Merge conflicts block sweeps. Queue priority comes from the PR diff and the
190-
PR description's checklist, not priority labels. A PR gets a small bonus when
190+
PR description's checklist, not priority labels. When
191+
`PRIORITY_SCHEDULER_ENABLED` is true, each sweep's setup job uploads a
192+
`scheduling-facts.json` artifact. It keys every queued job by the token in its
193+
`ci-job-<token>` runner label and lists the facts the classifier credited
194+
(framework, model prefix, precision, speculative decoding, multi-node, AgentX,
195+
eval-only and node count), plus whether the PR is patchwork and whether its
196+
checklist is complete. The priority scheduler scores jobs from those facts.
197+
Its weights are not kept in this repository. A checklist is complete when
191198
every item under its `Checklist` heading is checked, except conditional items
192199
("If ...", "Before merging ...") that do not apply yet. The checklist is read
193200
when the sweep starts, so later edits count from the next sweep. Trusted
194201
external sweeps classify the approved PR diff the same way. Manual
195202
`e2e-tests.yml` and `profile.yml` dispatches of a revision not yet on `main`
196-
classify its diff from the merge
197-
base only for patchwork, so engine-patching branches still run last. Klaud runs
198-
and revisions already on `main` keep unclassified scoring.
203+
classify its diff from the merge base only for patchwork, so engine-patching
204+
branches are still flagged. Klaud runs and revisions already on `main` stay
205+
unclassified and report every fact of each job.
199206

200207
Patchwork classification requires concrete evidence of engine/runtime source
201208
changes, a local engine build, or a fork/image containing unmerged changes.

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ on:
2222
description: "Total Slurm nodes required by this benchmark"
2323
required: true
2424
type: number
25-
priority:
26-
description: "Higher-is-sooner CI priority score"
27-
required: true
28-
type: string
2925
queue-token:
3026
description: "One-shot queue token generated for this job"
3127
required: true
@@ -196,14 +192,14 @@ jobs:
196192
'["self-hosted",{0},{1},{2},{3}]',
197193
toJSON(inputs.runner),
198194
toJSON(format('nodes:{0}', inputs.node-count)),
199-
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
195+
toJSON(format('ci-job-{0}', inputs.queue-token)),
200196
toJSON(format('ci-attempt-{0}', github.run_attempt))
201197
) ||
202198
format('[{0}]', toJSON(inputs.runner))
203199
) }}
204200
timeout-minutes: ${{ inputs.scenario-type == 'agentic-coding' && 780 || 480 }}
205201
name: >-
206-
${{ inputs.klaud-run && 'klaud | ' || '' }}p${{ inputs.priority }} | ${{ fromJSON(inputs.config).model-prefix }} ${{ fromJSON(inputs.config).precision }} ${{ inputs.runner }} ${{ fromJSON(inputs.config).framework == 'sglang' && 'sgl' || fromJSON(inputs.config).framework == 'dynamo-sglang' && 'dyn-sgl' || fromJSON(inputs.config).framework == 'sglang-disagg' && 'sgl-disagg' || fromJSON(inputs.config).framework }}
202+
${{ inputs.klaud-run && 'klaud | ' || '' }}${{ fromJSON(inputs.config).model-prefix }} ${{ fromJSON(inputs.config).precision }} ${{ inputs.runner }} ${{ fromJSON(inputs.config).framework == 'sglang' && 'sgl' || fromJSON(inputs.config).framework == 'dynamo-sglang' && 'dyn-sgl' || fromJSON(inputs.config).framework == 'sglang-disagg' && 'sgl-disagg' || fromJSON(inputs.config).framework }}
207203
${{ format('{0}', fromJSON(inputs.config).disagg) == 'true' && format('{0}P ', fromJSON(inputs.config).prefill.num-worker) || '' }}(TP${{ fromJSON(inputs.config).prefill.tp }}${{ format('{0}', fromJSON(inputs.config).prefill.pp) != '' && format('{0}', fromJSON(inputs.config).prefill.pp) != '1' && format('/PP{0}', fromJSON(inputs.config).prefill.pp) || '' }}${{ format('{0}', fromJSON(inputs.config).prefill.dcp-size) != '' && format('{0}', fromJSON(inputs.config).prefill.dcp-size) != '1' && format('/DCP{0}', fromJSON(inputs.config).prefill.dcp-size) || '' }}${{ format('{0}', fromJSON(inputs.config).prefill.pcp-size) != '' && format('{0}', fromJSON(inputs.config).prefill.pcp-size) != '1' && format('/PCP{0}', fromJSON(inputs.config).prefill.pcp-size) || '' }}${{ format('{0}', fromJSON(inputs.config).prefill.ep) != '' && format('{0}', fromJSON(inputs.config).prefill.ep) != '1' && format('/EP{0}', fromJSON(inputs.config).prefill.ep) || '' }}${{ format('{0}', fromJSON(inputs.config).prefill.dp-attn) == 'true' && '/DPA' || '' }})
208204
${{ format('{0}', fromJSON(inputs.config).disagg) == 'true' && format('x {0}D (TP{1}{2}{3}{4}{5}{6})', fromJSON(inputs.config).decode.num-worker, fromJSON(inputs.config).decode.tp, format('{0}', fromJSON(inputs.config).decode.pp) != '' && format('{0}', fromJSON(inputs.config).decode.pp) != '1' && format('/PP{0}', fromJSON(inputs.config).decode.pp) || '', format('{0}', fromJSON(inputs.config).decode.dcp-size) != '' && format('{0}', fromJSON(inputs.config).decode.dcp-size) != '1' && format('/DCP{0}', fromJSON(inputs.config).decode.dcp-size) || '', format('{0}', fromJSON(inputs.config).decode.pcp-size) != '' && format('{0}', fromJSON(inputs.config).decode.pcp-size) != '1' && format('/PCP{0}', fromJSON(inputs.config).decode.pcp-size) || '', format('{0}', fromJSON(inputs.config).decode.ep) != '' && format('{0}', fromJSON(inputs.config).decode.ep) != '1' && format('/EP{0}', fromJSON(inputs.config).decode.ep) || '', format('{0}', fromJSON(inputs.config).decode.dp-attn) == 'true' && '/DPA' || '') || '' }}
209205
${{ fromJSON(inputs.config).spec-decoding != 'none' && fromJSON(inputs.config).spec-decoding || '' }}

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ on:
1717
runner:
1818
required: true
1919
type: string
20-
priority:
21-
description: "Higher-is-sooner CI priority score"
22-
required: true
23-
type: string
2420
queue-token:
2521
description: "One-shot queue token generated for this job"
2622
required: true
@@ -100,7 +96,9 @@ env:
10096
PORT: '8888'
10197
INFMAX_CONTAINER_WORKSPACE: '/workspace'
10298
ENROOT_IMPORT_TIME_LIMIT: '120'
103-
SALLOC_TIME_LIMIT: ${{ inputs.scenario-type == 'video-generation' && '150' || '480' }}
99+
# An A100 pair serves one H3 request in about 400 s, so its 21-request video set holds the
100+
# node for about 150 minutes; every other video SKU finishes within 150 minutes.
101+
SALLOC_TIME_LIMIT: ${{ inputs.scenario-type == 'video-generation' && (contains(inputs.runner, 'a100') && '240' || '150') || '480' }}
104102
IS_MULTINODE: 'false'
105103
REQUIRE_POWER: ${{ inputs.require-power && '1' || '0' }}
106104
CPU_POWER: ${{ fromJSON(inputs.config)['cpu-power'] && '1' || '0' }}
@@ -163,21 +161,27 @@ permissions:
163161

164162
jobs:
165163
benchmark:
164+
# a100-cw reports no Slurm telemetry to the priority controller, which would fence its
165+
# runners forever, so a job for any of its labels (SKU, cluster or node) targets that
166+
# label alone and GitHub dispatches it.
166167
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; callers gate fork PRs behind maintainer-applied sweep labels
167168
${{ fromJSON(
168169
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
170+
inputs.runner != 'a100' &&
171+
inputs.runner != 'cluster:a100-cw' &&
172+
!startsWith(inputs.runner, 'a100-cw_') &&
169173
format(
170174
'["self-hosted",{0},{1},{2},{3}]',
171175
toJSON(inputs.runner),
172176
'"nodes:1"',
173-
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
177+
toJSON(format('ci-job-{0}', inputs.queue-token)),
174178
toJSON(format('ci-attempt-{0}', github.run_attempt))
175179
) ||
176180
format('[{0}]', toJSON(inputs.runner))
177181
) }}
178-
timeout-minutes: ${{ inputs.scenario-type == 'video-generation' && 165 || inputs.runner == 'cluster:h200-dgxc' && fromJSON(inputs.config).model-prefix == 'dsv41flash' && fromJSON(inputs.config).framework == 'sglang' && inputs.scenario-type == 'agentic-coding' && !inputs.eval-only && fromJSON(inputs.config).conc >= 64 && 1470 || 500 }}
182+
timeout-minutes: ${{ inputs.scenario-type == 'video-generation' && (contains(inputs.runner, 'a100') && 255 || 165) || inputs.runner == 'cluster:h200-dgxc' && fromJSON(inputs.config).model-prefix == 'dsv41flash' && fromJSON(inputs.config).framework == 'sglang' && inputs.scenario-type == 'agentic-coding' && !inputs.eval-only && fromJSON(inputs.config).conc >= 64 && 1470 || 500 }}
179183
name: >-
180-
${{ inputs.klaud-run && 'klaud | ' || '' }}p${{ inputs.priority }} | ${{ fromJSON(inputs.config).model-prefix }} ${{ fromJSON(inputs.config).precision }} ${{ inputs.runner }} ${{ fromJSON(inputs.config).framework == 'sglang' && 'sgl' || fromJSON(inputs.config).framework == 'dynamo-sglang' && 'dyn-sgl' || fromJSON(inputs.config).framework == 'sglang-disagg' && 'sgl-disagg' || fromJSON(inputs.config).framework }}
184+
${{ inputs.klaud-run && 'klaud | ' || '' }}${{ fromJSON(inputs.config).model-prefix }} ${{ fromJSON(inputs.config).precision }} ${{ inputs.runner }} ${{ fromJSON(inputs.config).framework == 'sglang' && 'sgl' || fromJSON(inputs.config).framework == 'dynamo-sglang' && 'dyn-sgl' || fromJSON(inputs.config).framework == 'sglang-disagg' && 'sgl-disagg' || fromJSON(inputs.config).framework }}
181185
${{ inputs.scenario-type == 'video-generation' && format('{0} GPU', fromJSON(inputs.config).gpus) || format('TP{0}', fromJSON(inputs.config).tp) }}${{ format('{0}', fromJSON(inputs.config).pp) != '' && format('{0}', fromJSON(inputs.config).pp) != '1' && format('/PP{0}', fromJSON(inputs.config).pp) || '' }}${{ format('{0}', fromJSON(inputs.config).dcp-size) != '' && format('{0}', fromJSON(inputs.config).dcp-size) != '1' && format('/DCP{0}', fromJSON(inputs.config).dcp-size) || '' }}${{ format('{0}', fromJSON(inputs.config).pcp-size) != '' && format('{0}', fromJSON(inputs.config).pcp-size) != '1' && format('/PCP{0}', fromJSON(inputs.config).pcp-size) || '' }}${{ format('{0}', fromJSON(inputs.config).ep) != '' && format('{0}', fromJSON(inputs.config).ep) != '1' && format('/EP{0}', fromJSON(inputs.config).ep) || '' }}${{ inputs.dp-attn && '/DPA' || '' }}
182186
${{ fromJSON(inputs.config).spec-decoding != 'none' && fromJSON(inputs.config).spec-decoding || '' }}
183187
${{ inputs.scenario-type == 'agentic-coding' && format('{0}', fromJSON(inputs.config).kv-offloading) != '' && fromJSON(inputs.config).kv-offloading != 'none' && format('{0} KV offload', fromJSON(inputs.config).kv-offloading) || '' }}

‎.github/workflows/collectivex-sweep.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
with:
6969
persist-credentials: false
7070
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
71-
- name: Plan and score shards
71+
- name: Plan shards
7272
id: plan
7373
env:
7474
PYTHONPATH: inferencex-e2e
@@ -85,12 +85,12 @@ jobs:
8585
jq '[.include[] | {id, sku, runner, runner_partition, backend, nodes,
8686
framework: "collectivex", "node-count": .nodes}]' matrix-full.json |
8787
uv run --no-project --exclude-newer PT12H --python 3.12 --with pyyaml \
88-
python -m infx.workflows.ci_priority \
88+
python -m infx.workflows.scheduler_facts \
8989
--queue-namespace "${GITHUB_RUN_ID}:${GITHUB_RUN_ATTEMPT}" \
90-
--facts-file "${RUNNER_TEMP}/scheduling-facts.json" > scored.json
91-
[ "$(jq length scored.json)" -gt 0 ] || { echo 'No runnable shards' >&2; exit 1; }
92-
echo "matrix=$(jq -c '{include: .}' scored.json)" >> "$GITHUB_OUTPUT"
93-
jq -r '.[] | "p\(.priority) \(.runner) \(.runner_partition) nodes:\(.nodes) \(.id)"' scored.json
90+
--facts-file "${RUNNER_TEMP}/scheduling-facts.json" > annotated.json
91+
[ "$(jq length annotated.json)" -gt 0 ] || { echo 'No runnable shards' >&2; exit 1; }
92+
echo "matrix=$(jq -c '{include: .}' annotated.json)" >> "$GITHUB_OUTPUT"
93+
jq -r '.[] | "\(.runner) \(.runner_partition) nodes:\(.nodes) \(.id)"' annotated.json
9494
- name: Upload scheduling facts
9595
if: vars.PRIORITY_SCHEDULER_ENABLED == 'true'
9696
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -113,9 +113,9 @@ jobs:
113113
matrix.runner_partition != '' && format(',{0}', toJSON(matrix.runner_partition)) || '',
114114
vars.PRIORITY_SCHEDULER_ENABLED == 'true' && format(',{0},{1},{2}',
115115
toJSON(format('nodes:{0}', matrix.nodes)),
116-
toJSON(format('ci-job-{0}-{1}', matrix.priority, matrix.queue-token)),
116+
toJSON(format('ci-job-{0}', matrix.queue-token)),
117117
toJSON(format('ci-attempt-{0}', github.run_attempt))) || '')) }}
118-
name: p${{ matrix.priority }} | CollectiveX ${{ matrix.id }}
118+
name: CollectiveX ${{ matrix.id }}
119119
env:
120120
CX_SHARD_SKU: ${{ matrix.sku }}
121121
CX_SHARD: ${{ matrix.id }}

0 commit comments

Comments
 (0)