Skip to content

Commit 6307954

Browse files
committed
qwen3.8next: replace this branch with eppaneamd#2 on #4832's head
The tree of this commit is eppaneamd#2 (80f4669, Rony Leppanen's updated package) rebased onto the current head of #4832 (3f7ca2d), with the changelog entry linked to #5133. The previous content (ba2e5a9) stays in the history as the first parent instead of being force-pushed away.
2 parents ba2e5a9 + bc68546 commit 6307954

456 files changed

Lines changed: 826022 additions & 411508 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.

‎.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/operatorx-sweep.yml‎

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ on:
1515
- cluster:gb200-nv
1616
- cluster:gb300-nv
1717
- cluster:mi300x-amd
18-
- cluster:mi325x-amds
18+
- cluster:mi325x-amd
1919
- cluster:mi355x-amds
2020
backends:
2121
description: Comma-separated backends (vllm GEMM; AMD also torch GEMM)
2222
type: string
2323
default: vllm
2424
testlists:
25-
description: Comma-separated testlist stems
25+
description: Comma-separated testlist stems (a run is ingested only if every list is in testlists/official/)
2626
type: string
27-
default: gemm
27+
default: gemm_perf
2828
mode:
2929
description: timing (latency, telemetry, profiler replay) or counters (per-kernel ncu / rocprofv3 counters; latencies perturbed)
3030
type: choice
@@ -35,9 +35,9 @@ on:
3535
type: string
3636
default: '1'
3737
chunk_size:
38-
description: Maximum shapes per shard (1-500)
38+
description: Maximum shapes per shard (1-4000; shards also stop at about 30 min of estimated work)
3939
type: number
40-
default: 500
40+
default: 4000
4141
recovery_run_id:
4242
description: Optional recent OperatorX run on this runner whose failed cleanup should be retried
4343
type: string
@@ -69,6 +69,7 @@ jobs:
6969
timeout-minutes: 10
7070
outputs:
7171
matrix: ${{ steps.plan.outputs.matrix }}
72+
ingestable: ${{ steps.plan.outputs.ingestable }}
7273
steps:
7374
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7475
with:
@@ -79,11 +80,11 @@ jobs:
7980
env:
8081
OPERATORX_RUNNER: ${{ inputs.runner || 'cluster:h100-dsxe' }}
8182
OPERATORX_BACKENDS: ${{ inputs.backends || 'vllm' }}
82-
OPERATORX_TESTLISTS: ${{ inputs.testlists || 'gemm' }}
83+
OPERATORX_TESTLISTS: ${{ inputs.testlists || 'gemm_perf' }}
8384
OPERATORX_WORLD_SIZES: ${{ inputs.world_sizes || '1' }}
8485
OPERATORX_MODE: ${{ inputs.mode || 'timing' }}
8586
OPERATORX_RECOVERY_RUN: ${{ inputs.recovery_run_id }}
86-
OPERATORX_CHUNK_SIZE: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.chunk_size) || '500' }}
87+
OPERATORX_CHUNK_SIZE: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.chunk_size) || '4000' }}
8788
PYTHONPATH: .:inferencex-e2e
8889
run: |
8990
set -eo pipefail
@@ -109,6 +110,16 @@ jobs:
109110
--queue-namespace "${GITHUB_RUN_ID}:${GITHUB_RUN_ATTEMPT}" \
110111
--facts-file "${RUNNER_TEMP}/scheduling-facts.json" > annotated.json
111112
echo "matrix=$(jq -c '{include: .}' annotated.json)" >> "$GITHUB_OUTPUT"
113+
# only runs whose every testlist is in testlists/official/ are ingested
114+
ingestable=true
115+
IFS=, read -ra lists <<<"$OPERATORX_TESTLISTS"
116+
for t in "${lists[@]}"; do
117+
if [ ! -f "operatorx/testlists/official/$t.json" ]; then
118+
ingestable=false
119+
echo "::notice::$t is not an official testlist; this run's results will not be ingested"
120+
fi
121+
done
122+
echo "ingestable=$ingestable" >> "$GITHUB_OUTPUT"
112123
- name: Upload scheduling facts
113124
if: vars.PRIORITY_SCHEDULER_ENABLED == 'true'
114125
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -264,9 +275,10 @@ jobs:
264275
trigger-ingest:
265276
name: Trigger OperatorX database ingest
266277
if: >-
267-
always() && github.event_name == 'workflow_dispatch' && inputs.ingest &&
278+
!cancelled() && github.event_name == 'workflow_dispatch' && inputs.ingest &&
279+
needs.setup.outputs.ingestable == 'true' &&
268280
(needs.summarize.result == 'success' || needs.summarize.result == 'failure')
269-
needs: [summarize]
281+
needs: [setup, summarize]
270282
runs-on: ubuntu-latest
271283
steps:
272284
- name: Dispatch ingest to the app repository

‎.github/workflows/profile.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ jobs:
220220
IMAGE: ${{ matrix.config.image }}
221221
FRAMEWORK: ${{ matrix.config.framework }}
222222
PRECISION: ${{ matrix.config.precision }}
223+
GPU_COUNT: ${{ matrix.config['gpus-per-worker'] }}
223224
TP: ${{ matrix.config.tp }}
224225
PP_SIZE: ${{ matrix.config.pp }}
225226
DCP_SIZE: ${{ matrix.config.dcp-size }}
@@ -329,8 +330,6 @@ jobs:
329330
export GITHUB_WORKSPACE="$PWD"
330331
echo "INFERENCEX_E2E_ROOT=$PWD" >> "$GITHUB_ENV"
331332
set -eo pipefail
332-
export GPU_COUNT=$((TP * PP_SIZE * PCP_SIZE))
333-
echo "GPU_COUNT=${GPU_COUNT}" >> "$GITHUB_ENV"
334333
ep_val="${EP_SIZE:-1}"
335334
res_name="${EXP_NAME}_${PRECISION}_${FRAMEWORK}_tp${TP}-pp${PP_SIZE}-dcp${DCP_SIZE}-pcp${PCP_SIZE}_ep${ep_val}_dpa_${DP_ATTENTION}_conc${CONC}_${RUNNER_NAME}"
336335
export RESULT_FILENAME="${res_name}"

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

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
permissions:
4141
contents: read
42+
pull-requests: read # Read a stacked parent PR's head.
4243
if: >-
4344
github.event.pull_request.head.repo.full_name == github.repository &&
4445
(
@@ -52,6 +53,8 @@ jobs:
5253
)
5354
outputs:
5455
skip-pr-sweep: ${{ steps.sweep_policy.outputs.skip-pr-sweep }}
56+
plan-base-ref: ${{ steps.stack_base.outputs.base-ref }}
57+
stack-parent-pr: ${{ steps.stack_base.outputs.parent-pr }}
5558
steps:
5659
- name: Reject conflicting sweep labels
5760
env:
@@ -93,8 +96,25 @@ jobs:
9396
- name: Set up uv
9497
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
9598

99+
- name: Resolve stacked append-only base
100+
id: stack_base
101+
env:
102+
GH_TOKEN: ${{ github.token }}
103+
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
104+
PR_NUMBER: ${{ github.event.pull_request.number }}
105+
run: |
106+
cd "$GITHUB_WORKSPACE/inferencex-e2e"
107+
uv run --no-project --exclude-newer PT12H --python 3.12 \
108+
--with "pydantic>=2" --with pyyaml python -m infx.workflows.stack_base \
109+
--repo "${GITHUB_REPOSITORY}" \
110+
--pr-number "${PR_NUMBER}" \
111+
--base-ref "origin/${GITHUB_BASE_REF}" \
112+
--head-ref "${PR_HEAD_SHA}" \
113+
--changelog-file perf-changelog.yaml
114+
96115
- name: Validate perf-changelog matrix
97116
env:
117+
PLAN_BASE_REF: ${{ steps.stack_base.outputs.base-ref }}
98118
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
99119
ALL_EVALS: ${{ contains(github.event.pull_request.labels.*.name, 'all-evals') }}
100120
EVALS_ONLY: ${{ contains(github.event.pull_request.labels.*.name, 'evals-only') }}
@@ -104,7 +124,7 @@ jobs:
104124
uv run --no-project --exclude-newer PT12H --python 3.12
105125
--with "pydantic>=2" --with pyyaml python -m infx.workflows.validate_perf_changelog
106126
--changelog-file perf-changelog.yaml
107-
--base-ref "origin/${GITHUB_BASE_REF}"
127+
--base-ref "${PLAN_BASE_REF}"
108128
--head-ref "${PR_HEAD_SHA}"
109129
)
110130
if [ "$ALL_EVALS" = "true" ]; then
@@ -232,9 +252,19 @@ jobs:
232252
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
233253
github-token: ${{ github.token }}
234254

255+
- name: Fetch stacked parent head
256+
if: needs.check-changelog.outputs.stack-parent-pr != ''
257+
env:
258+
PARENT_PR: ${{ needs.check-changelog.outputs.stack-parent-pr }}
259+
PLAN_BASE_REF: ${{ needs.check-changelog.outputs.plan-base-ref }}
260+
run: |
261+
git cat-file -e "${PLAN_BASE_REF}^{commit}" 2>/dev/null ||
262+
git fetch --no-tags origin "+refs/pull/${PARENT_PR}/head"
263+
235264
- id: setup
236265
env:
237266
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
267+
PLAN_BASE_REF: ${{ needs.check-changelog.outputs.plan-base-ref || format('origin/{0}', github.base_ref) }}
238268
PRIORITY_CRITERIA: ${{ steps.priority-criteria.outputs.criteria || '' }}
239269
ALL_EVALS: ${{ contains(github.event.pull_request.labels.*.name, 'all-evals') }}
240270
EVALS_ONLY: ${{ contains(github.event.pull_request.labels.*.name, 'evals-only') }}
@@ -245,7 +275,7 @@ jobs:
245275
uv run --no-project --exclude-newer PT12H --python 3.12 --with pydantic --with pyyaml \
246276
python -m infx.matrix.plan
247277
--changelog-file "${GITHUB_WORKSPACE}/inferencex-e2e/perf-changelog.yaml"
248-
--base-ref "origin/${GITHUB_BASE_REF}"
278+
--base-ref "${PLAN_BASE_REF}"
249279
--head-ref "${PR_HEAD_SHA}"
250280
)
251281
if [ "$ALL_EVALS" = "true" ]; then
@@ -1013,16 +1043,21 @@ jobs:
10131043
steps:
10141044
- name: Update unofficial run visualizer links on PR
10151045
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
1046+
env:
1047+
# Video results live on the VideoGenX page, not the inference charts.
1048+
HAS_VIDEO: ${{ toJson(fromJson(needs.setup.outputs.search-space-config).single_node.video) != 'null' && toJson(fromJson(needs.setup.outputs.search-space-config).single_node.video) != '[]' }}
10161049
with:
10171050
github-token: ${{ github.token }}
10181051
script: |
10191052
const marker = '<!-- inferencex-unofficial-run-visualizer -->';
10201053
const inferenceUrl = `https://inferencex.semianalysis.com/inference?unofficialRun=${context.runId}`;
10211054
const evaluationUrl = `https://inferencex.semianalysis.com/evaluation?unofficialRun=${context.runId}`;
1055+
const videoUrl = `https://inferencex.semianalysis.com/vgx?unofficialRun=${context.runId}`;
10221056
const body = [
10231057
marker,
10241058
`View unofficial run (performance): ${inferenceUrl}`,
10251059
`View unofficial run (accuracy): ${evaluationUrl}`,
1060+
...(process.env.HAS_VIDEO === 'true' ? [`View unofficial run (video): ${videoUrl}`] : []),
10261061
].join('\n\n');
10271062
const comments = await github.paginate(github.rest.issues.listComments, {
10281063
...context.repo,

0 commit comments

Comments
 (0)