Skip to content

Commit 4fe3f36

Browse files
committed
chore: merge main after #5186
2 parents 6a713f5 + d2e96d8 commit 4fe3f36

29 files changed

Lines changed: 710 additions & 149 deletions

File tree

‎.github/workflows/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ one was applied. A PR without a primary label can instead stage only the run
318318
pinned by its latest authorized `/use <run_id>`, after the same validation that
319319
acknowledges the request. It posts a staging comment, or a rejection comment
320320
when neither applies. Comments do not trigger or cancel GPU sweeps. Later commits
321-
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
322324
validation remains authoritative; an acknowledgment cannot override expired or
323325
invalid artifacts. Reuse is rejected while the PR currently carries
324326
`evals-only` or `agentx-fast`, checked when `/use` is acknowledged and at merge

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

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
VERDICT_PATH: /tmp/codeowner-signoff-verdict.md
125125
VERIFIER_CLAUDE_ARGS: |
126126
--model 'claude-opus-5-5'
127-
--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:*)"
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:*)"
128128
--disallowedTools "Read(//proc/**),Write(//proc/**)"
129129
# claude-code-action hides the transcript, so log only why the agent stopped and what it was denied.
130130
CLAUDE_RUN_SUMMARY_JQ: |
@@ -187,6 +187,7 @@ jobs:
187187
GITHUB_TOKEN: ${{ github.token }}
188188
BASH_DEFAULT_TIMEOUT_MS: "1800000"
189189
BASH_MAX_TIMEOUT_MS: "3600000"
190+
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: "1"
190191
with:
191192
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
192193
github_token: ${{ github.token }}
@@ -203,7 +204,8 @@ jobs:
203204
Read the file /tmp/codeowner-signoff-verify-prompt.md and follow the
204205
instructions in it exactly — it is your complete task specification,
205206
already rendered with this run's PR number, head SHA, and sign-off
206-
metadata.
207+
metadata. Wait for any delegated checks to finish, then write the
208+
verdict file before ending your turn.
207209
208210
- name: Summarize Claude run
209211
if: always() && steps.claude.outputs.execution_file != ''
@@ -217,69 +219,21 @@ jobs:
217219
trap 'echo "::$token::"' EXIT
218220
jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
219221
220-
- name: Check for verdict
221-
id: verdict
222-
if: steps.claude.outcome == 'success'
223-
run: |
224-
if [[ -f "$VERDICT_PATH" ]]; then
225-
echo "written=true" >> "$GITHUB_OUTPUT"
226-
fi
227-
228-
# The agent sometimes ends its turn before writing the verdict; resuming keeps its findings.
229-
- name: Resume Claude to write the verdict
230-
id: claude_resume
231-
if: steps.claude.outcome == 'success' && steps.verdict.outputs.written != 'true' && steps.claude.outputs.session_id != ''
232-
uses: anthropics/claude-code-action@9171db3e57d6a3140a37ddc2ba92788584e0ead6 # v1.0.234
233-
env:
234-
GH_TOKEN: ${{ github.token }}
235-
GITHUB_TOKEN: ${{ github.token }}
236-
BASH_DEFAULT_TIMEOUT_MS: "1800000"
237-
BASH_MAX_TIMEOUT_MS: "3600000"
238-
with:
239-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
240-
github_token: ${{ github.token }}
241-
path_to_claude_code_executable: ${{ steps.claude_cli.outputs.path }}
242-
track_progress: false
243-
allowed_bots: ''
244-
additional_permissions: |
245-
actions: read
246-
settings: |
247-
{"fastMode": true}
248-
249-
claude_args: |
250-
${{ env.VERIFIER_CLAUDE_ARGS }}
251-
--resume ${{ steps.claude.outputs.session_id }}
252-
prompt: |
253-
You ended your turn without writing /tmp/codeowner-signoff-verdict.md, so no
254-
verdict was published. Finish any checks from
255-
/tmp/codeowner-signoff-verify-prompt.md that you have not completed, then write
256-
the verdict file and run signoff_validate on it as that file's "Verdict and
257-
output" section requires. Do not stop until the file exists and validates.
258-
259-
- name: Summarize resumed Claude run
260-
if: always() && steps.claude_resume.outputs.execution_file != ''
261-
continue-on-error: true
262-
env:
263-
EXECUTION_FILE: ${{ steps.claude_resume.outputs.execution_file }}
264-
run: |
265-
token="$(openssl rand -hex 16)"
266-
echo "::stop-commands::$token"
267-
trap 'echo "::$token::"' EXIT
268-
jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
269-
270222
- name: Record verification outcome
271223
id: outcome
272224
if: always()
273225
env:
274-
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' && steps.claude_resume.outcome != 'failure' }}
226+
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' }}
275227
run: |
276-
succeeded=false
277228
if [[ "$CLAUDE_SUCCEEDED" == true && -f "$VERDICT_PATH" ]]; then
278-
succeeded=true
279-
fi
280-
echo "succeeded=$succeeded" >> "$GITHUB_OUTPUT"
281-
if [[ "$succeeded" != true ]]; then
282-
echo "::error::Verifier did not write $VERDICT_PATH"
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
283237
exit 1
284238
fi
285239

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ jobs:
154154
!contains(github.event.pull_request.labels.*.name, 'agentx-fast')
155155
outputs:
156156
skip-pr-sweep: ${{ steps.gate.outputs.skip-pr-sweep }}
157+
source-run-id: ${{ steps.gate.outputs.reuse-source-run-id }}
158+
source-run-attempt: ${{ steps.gate.outputs.reuse-source-run-attempt }}
159+
source-head-sha: ${{ steps.gate.outputs.reuse-source-head-sha }}
157160
steps:
158161
- name: Checkout code
159162
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -177,6 +180,66 @@ jobs:
177180
--ref "${GITHUB_REF}" \
178181
--workflow-id "run-sweep.yml"
179182
183+
# Merge Ingest's video validation, run before merge: a push after /use that changes a
184+
# video row fails here instead of leaving the merge with nothing to publish.
185+
video-reuse-check:
186+
name: video-reuse-check
187+
needs: reuse-sweep-gate
188+
if: needs.reuse-sweep-gate.outputs.skip-pr-sweep == 'true'
189+
runs-on: ubuntu-latest
190+
permissions:
191+
actions: read # Download the reused run's artifacts.
192+
contents: read
193+
steps:
194+
- name: Checkout code
195+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
196+
with:
197+
fetch-depth: 0
198+
persist-credentials: false
199+
200+
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
201+
202+
# The checkout is the PR merge ref, so this is the plan Merge Ingest computes at merge.
203+
- name: Plan the merged video rows
204+
id: plan
205+
env:
206+
PR_NUMBER: ${{ github.event.pull_request.number }}
207+
run: |
208+
source "$GITHUB_WORKSPACE/inferencex-e2e/benchmarks/check_env.sh"
209+
check_env_vars GITHUB_WORKSPACE RUNNER_TEMP GITHUB_OUTPUT GITHUB_REPOSITORY PR_NUMBER
210+
cd "$GITHUB_WORKSPACE/inferencex-e2e"
211+
uv run --no-project --exclude-newer PT12H --python 3.12 --with pydantic --with pyyaml \
212+
python -m infx.matrix.plan \
213+
--changelog-file perf-changelog.yaml \
214+
--base-ref "$(git rev-parse HEAD^1)" \
215+
--head-ref "$(git rev-parse HEAD)" \
216+
--repository "$GITHUB_REPOSITORY" \
217+
--pull-request "$PR_NUMBER" > "$RUNNER_TEMP/plan.json"
218+
video=$(jq '(.single_node.video // []) | length > 0' "$RUNNER_TEMP/plan.json")
219+
echo "video=$video" >> "$GITHUB_OUTPUT"
220+
221+
- name: Download the reused video bundles and matrix
222+
if: steps.plan.outputs.video == 'true'
223+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
224+
with:
225+
github-token: ${{ github.token }}
226+
run-id: ${{ needs.reuse-sweep-gate.outputs.source-run-id }}
227+
pattern: '{h3-results-*,video-sweep-manifest}'
228+
path: video-artifacts
229+
230+
- name: Validate the reused run against the merged video rows
231+
if: steps.plan.outputs.video == 'true'
232+
env:
233+
SOURCE_RUN_ID: ${{ needs.reuse-sweep-gate.outputs.source-run-id }}
234+
SOURCE_RUN_ATTEMPT: ${{ needs.reuse-sweep-gate.outputs.source-run-attempt }}
235+
SOURCE_HEAD_SHA: ${{ needs.reuse-sweep-gate.outputs.source-head-sha }}
236+
run: |
237+
source "$GITHUB_WORKSPACE/inferencex-e2e/benchmarks/check_env.sh"
238+
check_env_vars GITHUB_WORKSPACE RUNNER_TEMP SOURCE_RUN_ID SOURCE_RUN_ATTEMPT SOURCE_HEAD_SHA
239+
python3 -m infx.results.video_artifacts --artifacts-dir video-artifacts \
240+
--run-id "$SOURCE_RUN_ID" --run-attempt "$SOURCE_RUN_ATTEMPT" --head-sha "$SOURCE_HEAD_SHA" \
241+
--merged-plan "$RUNNER_TEMP/plan.json"
242+
180243
setup:
181244
name: setup
182245
needs: [check-changelog, reuse-sweep-gate]

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/kimik3.1/sglang/gb300-fp4/agentx/agg-tp16-mk-variants.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ base:
66
model: {}
77
container: {}
88
frameworks:
9-
dynamo: "1.6.0"
10-
sglang: "0.0.0.dev1+ge79de62d2.d20261104"
9+
dynamo: "1.8.0.dev20261119"
10+
sglang: "0.0.0.dev1+g03fde9cc3"
1111
dynamo:
1212
install: false
1313
request_plane: tcp
@@ -92,6 +92,7 @@ base:
9292
chunked-prefill-size: 16384
9393
mamba-radix-cache-strategy: extra_buffer
9494
mamba-track-interval: 256
95+
hybrid-cache-checkpoints-level: 3
9596
enable-linear-replayssm-spec: true
9697
speculative-algorithm: DFLASH
9798
speculative-draft-model-path: RadixArk/Kimi-K3.1-Dflash2-Preview

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/kimik3.1/sglang/gb300-fp4/agentx/disagg-tp16-variants.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ base:
66
model: {}
77
container: {}
88
frameworks:
9-
dynamo: "1.6.0"
10-
sglang: "0.0.0.dev1+ge79de62d2.d20261104"
9+
dynamo: "1.8.0.dev20261119"
10+
sglang: "0.0.0.dev1+g03fde9cc3"
1111
dynamo:
1212
install: false
1313
request_plane: tcp

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/kimik3.1/sglang/gb300-fp4/agentx/disagg-tp8-variants.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ base:
66
model: {}
77
container: {}
88
frameworks:
9-
dynamo: "1.6.0"
10-
sglang: "0.0.0.dev1+ge79de62d2.d20261104"
9+
dynamo: "1.8.0.dev20261119"
10+
sglang: "0.0.0.dev1+g03fde9cc3"
1111
dynamo:
1212
install: false
1313
request_plane: tcp

‎inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/minimaxm31flash/sglang/gb200-fp4/agentx/disagg-variants.yaml‎

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,14 @@ override_1p_dep8_dep16_linker_d1115:
191191
# needs it on, which DP attention marks experimental), so each decode node
192192
# hosts 4 x 190 GB stores instead. Prefetch mode loads a hit while its
193193
# request waits, before the forward pass.
194-
# The infra node also runs the benchmark client, etcd and the frontend:
195-
# with four 190 GB stores resident the client's post-run processing ran
196-
# the node out of host memory, so the infra stores are 150 GB.
197-
# L3 = 8 x 190 GB (prefill) + 4 x 4 x 190 GB (decode) + 4 x 150 GB (infra).
194+
# The infra node hosts no inference worker, so it holds no store.
195+
# L3 = 8 x 190 GB (prefill) + 4 x 4 x 190 GB (decode).
198196
identity:
199197
frameworks:
200198
dynamo: "1.7.0.dev20261115"
201199
sglang: "0.0.0.dev1+g209741ec5"
202200
# Lists replace on merge, so this repeats every base service.
203-
services: &linker-services-infra150
201+
services: &linker-services
204202
- name: etcd
205203
type: etcd
206204
placement:
@@ -270,39 +268,6 @@ override_1p_dep8_dep16_linker_d1115:
270268
readiness:
271269
port: 8803
272270
timeout_seconds: 600
273-
- &infra-store
274-
<<: *decode-store
275-
name: store-infra-0
276-
placement:
277-
node: infra
278-
args: ["--port", "8810"]
279-
env:
280-
MOONCAKE_PROTOCOL: rdma
281-
MOONCAKE_DEVICE: "@fabric.rdma-devices"
282-
MOONCAKE_GLOBAL_SEGMENT_SIZE: 150gb
283-
MC_ENABLE_DEST_DEVICE_AFFINITY: "1"
284-
MC_TCP_BIND_ADDRESS: "{node_ip}"
285-
readiness:
286-
port: 8810
287-
timeout_seconds: 600
288-
- <<: *infra-store
289-
name: store-infra-1
290-
args: ["--port", "8811"]
291-
readiness:
292-
port: 8811
293-
timeout_seconds: 600
294-
- <<: *infra-store
295-
name: store-infra-2
296-
args: ["--port", "8812"]
297-
readiness:
298-
port: 8812
299-
timeout_seconds: 600
300-
- <<: *infra-store
301-
name: store-infra-3
302-
args: ["--port", "8813"]
303-
readiness:
304-
port: 8813
305-
timeout_seconds: 600
306271
# Disables Dynamo's per-request lifecycle span export; InferenceX does not read it.
307272
- name: otel-collector
308273
type: otel-collector
@@ -343,12 +308,12 @@ override_2p_dep8_dep16_linker_d1115:
343308
name: minimaxm31flash-fp4-gb200-dynamo-sglang-agentx-disagg-2p-dep8-dep16-linker-d1115
344309
# The d1115 point with two DEP8 prefill workers sharing the linker pool,
345310
# for conc 448 and 480.
346-
# L3 = 16 x 190 GB (prefill) + 4 x 4 x 190 GB (decode) + 4 x 150 GB (infra).
311+
# L3 = 16 x 190 GB (prefill) + 4 x 4 x 190 GB (decode).
347312
identity:
348313
frameworks:
349314
dynamo: "1.7.0.dev20261115"
350315
sglang: "0.0.0.dev1+g209741ec5"
351-
services: *linker-services-infra150
316+
services: *linker-services
352317
roles:
353318
prefill:
354319
nodes: 4
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Muse Spark Open MXFP4 on TokenSpeed (MI355X)
2+
3+
The `agentic.yaml` recipe backs the
4+
`musespark-fp4-mi355x-tokenspeed-agentic-dflash` matrix: one TokenSpeed worker
5+
serving `amd/Muse-Spark-Open-816B-A42B-Quark-MXFP4` with the DFlash2 draft,
6+
which proposes seven tokens per step and is served as it ships, in BF16. The
7+
KV cache is FP8 and the context is the checkpoint's native 1M tokens.
8+
9+
Each concurrency has its own override:
10+
11+
| Layout | Concurrency | `max-num-seqs` | `prefill-decode-interval` | `max-consecutive-prefill-rounds` | `prefill-interval-min-decoding` | `stream-interval` | Decode monokernel | Host KV store |
12+
| --------- | ----------- | -------------- | ------------------------- | -------------------------------- | ------------------------------- | ----------------- | ----------------- | -------------- |
13+
| TP8 / EP1 | 1 | 1 | 0 | default | default | default | on | off |
14+
| TP8 / EP1 | 2, 4, 8, 16 | 2 | 384 | default | default | default | on | off |
15+
| TP8 / EP1 | 6 | 1 | 384 | default | default | 50 | on | off |
16+
| TP8 / EP1 | 10 | 2 | 384 | default | default | 40 | on | off |
17+
| TP8 / EP1 | 28 | 8 | 256 | 1 | 5 | 20 | on | off |
18+
| TP4 / EP4 | 28 | 13 | 96 | 1 | 7 | 20 | off | 360 GB per GPU |
19+
| TP4 / EP4 | 36 | 20 | 80 | 1 | 6 | 20 | off | 360 GB per GPU |
20+
| TP4 / EP4 | 40 | 80 | 48 | 1 | 2 | 20 | off | 360 GB per GPU |
21+
22+
The TP8 points run attention TP8 and MoE TP8 with EP1 on eight GPUs, so every
23+
GPU holds all 256 experts and no tokens move between GPUs. `decode-monokernel`
24+
runs each decoder layer's decode step, and the DFlash2 draft's, as one
25+
persistent kernel launch. The monokernel serves up to two requests a launch;
26+
steps with more running requests keep the regular path. From concurrency 2 to
27+
16 the running cap is 2 (1 at concurrency 6, for the lowest time per token), so
28+
every decode step takes the monokernel and the other sessions queue, which
29+
lowers TPOT at the cost of time to first token. Concurrency 28 runs up to eight
30+
requests and takes the monokernel only while one or two are running.
31+
32+
The TP4 points run attention TP4 with EP4 on four GPUs, 64 experts on each,
33+
on the regular decode path. They admit the shortest uncached prompt first,
34+
prefill in 24K chunks, and keep a host KV store. In owned-row prefill each
35+
GPU's attention heads go to the rows' owners by all-to-all
36+
(`owned-attention-output`) instead of a reduce-scatter. Their QKV projection
37+
runs as an FP8 GEMM in decode steps of 33 to 128 rows
38+
(`dense-fp8-small-m: qkv`), with per-row activation and per-channel weight
39+
scales.
40+
41+
With an interval of N, the scheduler runs up to N decode rounds after each
42+
prefill chunk. When a prompt has waited a full interval, prefill rounds may run
43+
back to back; `max-consecutive-prefill-rounds` bounds how many before the
44+
decodes get the interval again. With `prefill-interval-min-decoding` M, a
45+
prompt waits for the interval only while at least M requests are ready to
46+
decode; below that it prefills at once. TP8 prefill runs in 8K chunks.
47+
48+
The recipe installs the TokenSpeed `0.1.1.post20261125`, ROCm 7.2 kernel
49+
`0.1.5.post20261125`, kernel-amd `0.1.4.post20261125` and engine
50+
`0.1.1.post20261125` wheels by release URL and SHA256, with
51+
`tokenspeed-scheduler` `0.1.58` and `tokenspeed-smg` `1.16.0.post20261121`,
52+
the gateway that TokenSpeed release requires. The runner image, pinned by
53+
digest in the master config, provides ROCm torch; `tokenspeed-nightly-rocm.sh`
54+
installs the pinned packages without replacing it and checks that torch is
55+
still a ROCm build. Startup requests (`enable-startup-requests`) run before the
56+
server reports healthy, so the kernels the first live batches select are
57+
compiled at startup. The worker pins the checkpoint with `revision` and the
58+
DFlash2 draft with `speculative-draft-model-revision`.
59+
60+
Workers launch through `python3 -m tokenspeed.cli serve --headless` with
61+
SMG's ZMQ transport. srtctl runs SMG directly, so the recipe passes the
62+
gateway settings `ts serve` uses for Muse Spark: the `muse` reasoning and tool
63+
parsers under the Symphony parser, and the engine's xgrammar backend. The two
64+
HIP graph settings in the worker environment keep the two-stream speculative
65+
decode graph off the runtime's slow launch path.
66+
67+
For synthetic throughput, the golden-AL connector derives acceptance from the
68+
committed Muse Spark DFlash2 curve at seven draft tokens and selects the greedy
69+
sampler, which verifies by exact match. Eval runs remove synthetic acceptance
70+
and verify for real with the triton sampler and speculative sampling, the one
71+
TokenSpeed verifier that reads the DFlash2 draft distribution.

0 commit comments

Comments
 (0)