Skip to content

Run Sweep - chore: rerun the GB200 MiniMax-M3.1-Flash Dynamo SGLang curve #21826

Run Sweep - chore: rerun the GB200 MiniMax-M3.1-Flash Dynamo SGLang curve

Run Sweep - chore: rerun the GB200 MiniMax-M3.1-Flash Dynamo SGLang curve #21826

Workflow file for this run

name: "Run Sweep"
run-name: Run Sweep - ${{ github.event.pull_request.title }}
concurrency:
group: >-
sweep-${{ github.event.pull_request.number }}-${{
(github.event.action == 'labeled' || github.event.action == 'unlabeled') &&
github.event.label.name != 'full-sweep-enabled' &&
github.event.label.name != 'non-canary-full-sweep-enabled' &&
github.event.label.name != 'full-sweep-fail-fast' &&
github.event.label.name != 'all-evals' &&
github.event.label.name != 'evals-only' &&
github.event.label.name != 'agentx-fast' &&
github.event.label.name != 'evals-last' &&
github.run_id ||
'active'
}}
cancel-in-progress: true
on:
pull_request:
branches:
- main
types:
- synchronize
- labeled
- unlabeled
paths:
- "inferencex-e2e/perf-changelog.yaml"
permissions:
contents: read
env:
PYTHONPATH: ${{ github.workspace }}/inferencex-e2e
jobs:
check-changelog:
name: check-changelog
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read # Read a stacked parent PR's head.
if: >-
github.event.pull_request.head.repo.full_name == github.repository &&
(
(github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'full-sweep-enabled' ||
github.event.label.name == 'non-canary-full-sweep-enabled' ||
github.event.label.name == 'full-sweep-fail-fast' ||
github.event.label.name == 'all-evals' ||
github.event.label.name == 'evals-only' ||
github.event.label.name == 'agentx-fast' ||
github.event.label.name == 'evals-last'
)
outputs:
skip-pr-sweep: ${{ steps.sweep_policy.outputs.skip-pr-sweep }}
plan-base-ref: ${{ steps.stack_base.outputs.base-ref }}
stack-parent-pr: ${{ steps.stack_base.outputs.parent-pr }}
steps:
- name: Reject conflicting sweep labels
env:
SWEEP_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
count=$(jq '
[
.[] |
select(
. == "full-sweep-enabled" or
. == "non-canary-full-sweep-enabled" or
. == "full-sweep-fail-fast"
)
] |
length
' <<<"$SWEEP_LABELS")
if [ "$count" -gt 1 ]; then
echo "::error::PR has multiple conflicting sweep labels. Pick exactly one."
exit 1
fi
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Read PR sweep policy
id: sweep_policy
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
if git log -1 --format=%B "$HEAD_SHA" | grep -Fq '[skip-sweep]'; then
echo "skip-pr-sweep=true" >> "$GITHUB_OUTPUT"
else
echo "skip-pr-sweep=false" >> "$GITHUB_OUTPUT"
fi
- name: Set up uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Resolve stacked append-only base
id: stack_base
env:
GH_TOKEN: ${{ github.token }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
cd "$GITHUB_WORKSPACE/inferencex-e2e"
uv run --no-project --exclude-newer PT12H --python 3.12 \
--with "pydantic>=2" --with pyyaml python -m infx.workflows.stack_base \
--repo "${GITHUB_REPOSITORY}" \
--pr-number "${PR_NUMBER}" \
--base-ref "origin/${GITHUB_BASE_REF}" \
--head-ref "${PR_HEAD_SHA}" \
--changelog-file perf-changelog.yaml
- name: Validate perf-changelog matrix
env:
PLAN_BASE_REF: ${{ steps.stack_base.outputs.base-ref }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
ALL_EVALS: ${{ contains(github.event.pull_request.labels.*.name, 'all-evals') }}
EVALS_ONLY: ${{ contains(github.event.pull_request.labels.*.name, 'evals-only') }}
run: |
cd "$GITHUB_WORKSPACE/inferencex-e2e"
CMD=(
uv run --no-project --exclude-newer PT12H --python 3.12
--with "pydantic>=2" --with pyyaml python -m infx.workflows.validate_perf_changelog
--changelog-file perf-changelog.yaml
--base-ref "${PLAN_BASE_REF}"
--head-ref "${PR_HEAD_SHA}"
)
if [ "$ALL_EVALS" = "true" ]; then
CMD+=(--all-evals)
fi
if [ "$EVALS_ONLY" = "true" ]; then
CMD+=(--evals-only)
fi
"${CMD[@]}"
reuse-sweep-gate:
name: reuse-sweep-gate
needs: check-changelog
runs-on: ubuntu-latest
permissions:
actions: read # Read workflow runs and artifacts.
contents: read
issues: read # Read issue comments.
pull-requests: read # Read PR metadata.
if: >-
always() &&
needs.check-changelog.result == 'success' &&
github.event.action == 'synchronize' &&
!contains(github.event.pull_request.labels.*.name, 'evals-only') &&
!contains(github.event.pull_request.labels.*.name, 'agentx-fast')
outputs:
skip-pr-sweep: ${{ steps.gate.outputs.skip-pr-sweep }}
source-run-id: ${{ steps.gate.outputs.reuse-source-run-id }}
source-run-attempt: ${{ steps.gate.outputs.reuse-source-run-attempt }}
source-head-sha: ${{ steps.gate.outputs.reuse-source-head-sha }}
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check for reusable sweep authorization
id: gate
env:
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
EVENT_ACTION: ${{ github.event.action }}
run: |
python3 -m infx.workflows.reuse \
--repo "${GITHUB_REPOSITORY}" \
--commit-sha "${PR_HEAD_SHA}" \
--event-name "${GITHUB_EVENT_NAME}" \
--event-action "${EVENT_ACTION}" \
--pr-number "${PR_NUMBER}" \
--ref "${GITHUB_REF}" \
--workflow-id "run-sweep.yml"
# Merge Ingest's video validation, run before merge: a push after /use that changes a
# video row fails here instead of leaving the merge with nothing to publish.
video-reuse-check:
name: video-reuse-check
needs: reuse-sweep-gate
if: needs.reuse-sweep-gate.outputs.skip-pr-sweep == 'true'
runs-on: ubuntu-latest
permissions:
actions: read # Download the reused run's artifacts.
contents: read
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
# The checkout is the PR merge ref, so this is the plan Merge Ingest computes at merge.
- name: Plan the merged video rows
id: plan
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
source "$GITHUB_WORKSPACE/inferencex-e2e/benchmarks/check_env.sh"
check_env_vars GITHUB_WORKSPACE RUNNER_TEMP GITHUB_OUTPUT GITHUB_REPOSITORY PR_NUMBER
cd "$GITHUB_WORKSPACE/inferencex-e2e"
uv run --no-project --exclude-newer PT12H --python 3.12 --with pydantic --with pyyaml \
python -m infx.matrix.plan \
--changelog-file perf-changelog.yaml \
--base-ref "$(git rev-parse HEAD^1)" \
--head-ref "$(git rev-parse HEAD)" \
--repository "$GITHUB_REPOSITORY" \
--pull-request "$PR_NUMBER" > "$RUNNER_TEMP/plan.json"
video=$(jq '(.single_node.video // []) | length > 0' "$RUNNER_TEMP/plan.json")
echo "video=$video" >> "$GITHUB_OUTPUT"
- name: Download the reused video bundles and matrix
if: steps.plan.outputs.video == 'true'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
github-token: ${{ github.token }}
run-id: ${{ needs.reuse-sweep-gate.outputs.source-run-id }}
pattern: '{h3-results-*,video-sweep-manifest}'
path: video-artifacts
- name: Validate the reused run against the merged video rows
if: steps.plan.outputs.video == 'true'
env:
SOURCE_RUN_ID: ${{ needs.reuse-sweep-gate.outputs.source-run-id }}
SOURCE_RUN_ATTEMPT: ${{ needs.reuse-sweep-gate.outputs.source-run-attempt }}
SOURCE_HEAD_SHA: ${{ needs.reuse-sweep-gate.outputs.source-head-sha }}
run: |
source "$GITHUB_WORKSPACE/inferencex-e2e/benchmarks/check_env.sh"
check_env_vars GITHUB_WORKSPACE RUNNER_TEMP SOURCE_RUN_ID SOURCE_RUN_ATTEMPT SOURCE_HEAD_SHA
python3 -m infx.results.video_artifacts --artifacts-dir video-artifacts \
--run-id "$SOURCE_RUN_ID" --run-attempt "$SOURCE_RUN_ATTEMPT" --head-sha "$SOURCE_HEAD_SHA" \
--merged-plan "$RUNNER_TEMP/plan.json"
setup:
name: setup
needs: [check-changelog, reuse-sweep-gate]
runs-on: ubuntu-latest
permissions:
actions: read # Read workflow runs and artifacts.
contents: read
issues: read # Read issue comments.
pull-requests: read # Read PR metadata.
if: >-
always() &&
needs.check-changelog.result == 'success' &&
(
needs.reuse-sweep-gate.result == 'skipped' ||
(
needs.reuse-sweep-gate.result == 'success' &&
needs.reuse-sweep-gate.outputs.skip-pr-sweep != 'true'
)
) &&
github.event.pull_request.head.repo.full_name == github.repository &&
needs.check-changelog.outputs.skip-pr-sweep != 'true' &&
(
contains(github.event.pull_request.labels.*.name, 'full-sweep-enabled') ||
contains(github.event.pull_request.labels.*.name, 'non-canary-full-sweep-enabled') ||
contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast')
) &&
(
(github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'full-sweep-enabled' ||
github.event.label.name == 'non-canary-full-sweep-enabled' ||
github.event.label.name == 'full-sweep-fail-fast' ||
github.event.label.name == 'all-evals' ||
github.event.label.name == 'evals-only' ||
github.event.label.name == 'agentx-fast' ||
github.event.label.name == 'evals-last'
)
outputs:
tooling-ref: ${{ steps.tooling.outputs.result }}
search-space-config: ${{ steps.setup.outputs.search-space-config }}
# Empty when the priority scheduler is disabled, as for setup's own scoring.
priority-criteria: ${{ steps.priority-criteria.outputs.criteria }}
has-benchmark-results: ${{ steps.setup.outputs.has-benchmark-results }}
steps:
- name: Checkout code
id: checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Resolve workflow tooling
id: tooling
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
CHECKOUT_SHA: ${{ steps.checkout.outputs.commit }}
with:
result-encoding: string
script: |
const { data } = await github.rest.repos.getCommit({
...context.repo, ref: context.payload.repository.default_branch,
});
await core.summary.addHeading('Revisions', 2).addTable([
['Setup checkout', process.env.CHECKOUT_SHA],
['infx tooling', data.sha],
]).write();
return data.sha;
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Classify priority criteria
id: priority-criteria
if: vars.PRIORITY_SCHEDULER_ENABLED == 'true'
uses: $/.github/actions/classify-priority
with:
base-ref: origin/${{ github.base_ref }}
head-ref: ${{ github.event.pull_request.head.sha }}
pr-number: ${{ github.event.pull_request.number }}
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
github-token: ${{ github.token }}
- name: Fetch stacked parent head
if: needs.check-changelog.outputs.stack-parent-pr != ''
env:
PARENT_PR: ${{ needs.check-changelog.outputs.stack-parent-pr }}
PLAN_BASE_REF: ${{ needs.check-changelog.outputs.plan-base-ref }}
run: |
git cat-file -e "${PLAN_BASE_REF}^{commit}" 2>/dev/null ||
git fetch --no-tags origin "+refs/pull/${PARENT_PR}/head"
- id: setup
env:
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PLAN_BASE_REF: ${{ needs.check-changelog.outputs.plan-base-ref || format('origin/{0}', github.base_ref) }}
PRIORITY_CRITERIA: ${{ steps.priority-criteria.outputs.criteria || '' }}
ALL_EVALS: ${{ contains(github.event.pull_request.labels.*.name, 'all-evals') }}
EVALS_ONLY: ${{ contains(github.event.pull_request.labels.*.name, 'evals-only') }}
run: |
cd "$GITHUB_WORKSPACE/inferencex-e2e"
CMD=(
uv run --no-project --exclude-newer PT12H --python 3.12 --with pydantic --with pyyaml \
python -m infx.matrix.plan
--changelog-file "${GITHUB_WORKSPACE}/inferencex-e2e/perf-changelog.yaml"
--base-ref "${PLAN_BASE_REF}"
--head-ref "${PR_HEAD_SHA}"
)
if [ "$ALL_EVALS" = "true" ]; then
CMD+=(--all-evals)
fi
if [ "$EVALS_ONLY" = "true" ]; then
CMD+=(--evals-only)
fi
CONFIG_JSON=$("${CMD[@]}")
CONFIG_JSON=$(printf '%s' "$CONFIG_JSON" | uv run --no-project --exclude-newer PT12H --python 3.12 --with pydantic --with pyyaml \
python -m infx.workflows.benchmark_schema --plan)
CONFIG_JSON=$(printf '%s' "$CONFIG_JSON" | uv run --no-project --exclude-newer PT12H --python 3.12 --with pyyaml \
python -m infx.workflows.scheduler_facts \
--event-name "${GITHUB_EVENT_NAME}" \
--queue-namespace "${GITHUB_RUN_ID}:${GITHUB_RUN_ATTEMPT}" \
--criteria-json "$PRIORITY_CRITERIA" \
--facts-file "${RUNNER_TEMP}/scheduling-facts.json")
echo "search-space-config=$CONFIG_JSON" >> "$GITHUB_OUTPUT"
has_benchmark_results=$(jq '[.single_node | to_entries[] | select(.key != "video") | .value[]] + [.multi_node | .[][]] | length > 0' <<<"$CONFIG_JSON")
echo "has-benchmark-results=$has_benchmark_results" >> "$GITHUB_OUTPUT"
- name: Upload scheduling facts
if: vars.PRIORITY_SCHEDULER_ENABLED == 'true'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: ${{ runner.temp }}/scheduling-facts.json
archive: false
overwrite: true
if-no-files-found: error
canary-select:
name: canary-select
needs: setup
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(
contains(github.event.pull_request.labels.*.name, 'full-sweep-enabled') ||
contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast')
)
}}
runs-on: ubuntu-latest
outputs:
canary-config: ${{ steps.pick.outputs.canary-config }}
multi-node-canary-config: ${{ steps.pick.outputs.multi-node-canary-config }}
remaining-search-space-config: ${{ steps.pick.outputs.remaining-search-space-config }}
steps:
- id: pick
env:
SEARCH_SPACE: ${{ needs.setup.outputs.search-space-config }}
run: |
selection=$(jq -c '
def remove_one($needle):
if $needle == null then .
else
(index($needle)) as $idx
| if $idx == null then . else del(.[$idx]) end
end;
(((.single_node["1k1k"] // []) + (.single_node["8k1k"] // []) + (.single_node.agentic // []) + (.single_node.video // []))
| map(select(.["run-eval"] != true))) as $single_candidates
| ((.multi_node.agentic // []) | map(select(.["run-eval"] != true))) as $multi_candidates
| (if ($single_candidates | length) == 0 then null else ($single_candidates | min_by(.conc // .["conc-list"][0])) end) as $canary
| (if $canary != null or ($multi_candidates | length) == 0 then null
else ($multi_candidates | min_by(.conc[0])) end) as $multi_canary
| {
canary: (if $canary == null then [] else [$canary] end),
multi_node_canary: (if $multi_canary == null then [] else [$multi_canary] end),
remaining: (
.
| .single_node = (.single_node // {})
| .single_node["1k1k"] = ((.single_node["1k1k"] // []) | remove_one($canary))
| .single_node["8k1k"] = ((.single_node["8k1k"] // []) | remove_one($canary))
| .single_node.agentic = ((.single_node.agentic // []) | remove_one($canary))
| .single_node.video = ((.single_node.video // []) | remove_one($canary))
| .multi_node = (.multi_node // {})
| .multi_node.agentic = ((.multi_node.agentic // []) | remove_one($multi_canary))
)
}
' <<<"$SEARCH_SPACE")
{
echo "canary-config=$(jq -c '.canary' <<<"$selection")"
echo "multi-node-canary-config=$(jq -c '.multi_node_canary' <<<"$selection")"
echo "remaining-search-space-config=$(jq -c '.remaining' <<<"$selection")"
} >> "$GITHUB_OUTPUT"
canary-sweep:
needs: canary-select
if: ${{ !cancelled() && needs.canary-select.result == 'success' && needs.canary-select.outputs.canary-config != '' && needs.canary-select.outputs.canary-config != '[]' }}
uses: $/.github/workflows/benchmark-tmpl.yml
name: canary /
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.canary-select.outputs.canary-config) }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with:
config: ${{ toJSON(matrix.config) }}
pr-number: &pr-number ${{ github.event.pull_request.number }}
klaud-run: &klaud-run ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login == 'Klaud-Cold' && (startsWith(github.head_ref, 'klaud/auto-') || startsWith(github.head_ref, 'klaude/auto-')) }}
runner: ${{ matrix.config.runner }}
queue-token: ${{ matrix.config['queue-token'] }}
dp-attn: ${{ matrix.config.dp-attn }}
run-eval: false
require-power: ${{ matrix.config['require-power'] == true }}
scenario-type: ${{ matrix.config['scenario-type'] || 'fixed-seq-len' }}
duration: ${{ matrix.config.duration || '3600' }}
agentx-fast: ${{ contains(github.event.pull_request.labels.*.name, 'agentx-fast') }}
canary-multi-node-sweep:
needs: canary-select
if: ${{ !cancelled() && needs.canary-select.result == 'success' && needs.canary-select.outputs.multi-node-canary-config != '' && needs.canary-select.outputs.multi-node-canary-config != '[]' }}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node canary /
strategy:
fail-fast: false
matrix:
config: ${{ fromJson(needs.canary-select.outputs.multi-node-canary-config) }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with:
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
node-count: ${{ matrix.config.node-count }}
queue-token: ${{ matrix.config['queue-token'] }}
conc-list: ${{ toJson(matrix.config.conc) }}
conc: ${{ matrix.config.conc[0] }}
duration: ${{ matrix.config.duration }}
run-eval: false
require-power: ${{ matrix.config['require-power'] == true }}
scenario-type: agentic-coding
agentx-fast: ${{ contains(github.event.pull_request.labels.*.name, 'agentx-fast') }}
# Prompts for the report-only acceptance gate that agentic speculative evals run before their
# eval, on the same server (inferencex-e2e/infx/evals/EVALS.md#speculative-acceptance-gate).
al-gate-prompts:
needs: setup
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(
(toJson(fromJson(needs.setup.outputs.search-space-config).agentic_evals) != '[]' && toJson(fromJson(needs.setup.outputs.search-space-config).agentic_evals) != 'null') ||
(toJson(fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals) != '[]' && toJson(fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals) != 'null')
)
}}
uses: $/.github/workflows/al-gate-prompts.yml
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with:
upload: true
sweep-multi-node-1k1k:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).multi_node['1k1k']) != 'null'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node 1k1k /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson(needs.setup.outputs.search-space-config).multi_node['1k1k'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: &multi-node-inputs
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
node-count: ${{ matrix.config.node-count }}
queue-token: ${{ matrix.config['queue-token'] }}
require-power: ${{ matrix.config['require-power'] == true && matrix.config['eval-only'] != true }}
conc-list: ${{ toJson(matrix.config.conc) }}
run-eval: false
sweep-multi-node-8k1k:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).multi_node['8k1k']) != 'null'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node 8k1k /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson(needs.setup.outputs.search-space-config).multi_node['8k1k'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: *multi-node-inputs
sweep-single-node-1k1k:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['1k1k']) != 'null' &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['1k1k']) != '[]'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: single-node 1k1k /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['1k1k'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: &single-node-inputs
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
queue-token: ${{ matrix.config['queue-token'] }}
dp-attn: ${{ matrix.config.dp-attn }}
run-eval: ${{ matrix.config.run-eval }}
sweep-single-node-8k1k:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['8k1k']) != 'null' &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['8k1k']) != '[]'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: single-node 8k1k /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['8k1k'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: *single-node-inputs
sweep-agentic:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['agentic']) != 'null' &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['agentic']) != '[]'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: agentic /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['agentic'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with:
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
queue-token: ${{ matrix.config['queue-token'] }}
dp-attn: ${{ matrix.config.dp-attn }}
duration: ${{ matrix.config.duration }}
run-eval: false
require-power: ${{ matrix.config['require-power'] == true }}
scenario-type: agentic-coding
agentx-fast: ${{ contains(github.event.pull_request.labels.*.name, 'agentx-fast') }}
sweep-video:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['video']) != 'null' &&
toJson(fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['video']) != '[]'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: video /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson((needs.canary-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).single_node['video'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with:
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
queue-token: ${{ matrix.config['queue-token'] }}
dp-attn: ${{ matrix.config.dp-attn }}
run-eval: false
scenario-type: video-generation
sweep-multi-node-agentic:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson((needs.canary-multi-node-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).multi_node['agentic']) != 'null' &&
toJson(fromJson((needs.canary-multi-node-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).multi_node['agentic']) != '[]'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node agentic /
strategy:
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson((needs.canary-multi-node-sweep.result == 'success' && needs.canary-select.outputs.remaining-search-space-config) || needs.setup.outputs.search-space-config).multi_node['agentic'] }}
secrets:
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with:
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
node-count: ${{ matrix.config.node-count }}
queue-token: ${{ matrix.config['queue-token'] }}
conc-list: ${{ toJson(matrix.config.conc) }}
conc: ${{ matrix.config.conc[0] }}
duration: ${{ matrix.config.duration }}
run-eval: false
require-power: ${{ matrix.config['require-power'] == true }}
scenario-type: agentic-coding
agentx-fast: ${{ contains(github.event.pull_request.labels.*.name, 'agentx-fast') }}
sweep-evals:
# Evals start alongside throughput. With the evals-last label this job is skipped and
# sweep-evals-last runs the same matrix after throughput. The other eval jobs pair up
# the same way, because needs cannot depend on a label.
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
!contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).evals) != 'null'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: eval /
strategy: &sweep-evals-strategy
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson(needs.setup.outputs.search-space-config).evals }}
secrets: &sweep-evals-secrets
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: &sweep-evals-with
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
queue-token: ${{ matrix.config['queue-token'] }}
dp-attn: ${{ matrix.config.dp-attn }}
eval-framework: ${{ matrix.config['eval-framework'] || 'lm-eval' }}
eval-suite: ${{ matrix.config['eval-suite'] || '' }}
run-eval: true
eval-only: true
sweep-evals-last:
# With evals-last, throughput runs go first; evals wait for them to finish (any result).
# Under evals-only the throughput jobs are skipped, so evals start right away.
# Agentic evals also need al-gate-prompts, a short job that runs only when they do.
needs: &evals-last-needs
[
setup,
canary-select,
canary-sweep,
canary-multi-node-sweep,
al-gate-prompts,
sweep-single-node-1k1k,
sweep-single-node-8k1k,
sweep-agentic,
sweep-video,
sweep-multi-node-1k1k,
sweep-multi-node-8k1k,
sweep-multi-node-agentic,
]
if: >-
${{
!cancelled() &&
contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).evals) != 'null'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: eval /
strategy: *sweep-evals-strategy
secrets: *sweep-evals-secrets
with: *sweep-evals-with
sweep-agentic-evals:
# The acceptance gate is report-only: the evals run whether or not its prompts were prepared.
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep, al-gate-prompts]
if: >-
${{
!cancelled() &&
!contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).agentic_evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).agentic_evals) != 'null'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: agentic eval /
strategy: &sweep-agentic-evals-strategy
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson(needs.setup.outputs.search-space-config).agentic_evals }}
secrets: &sweep-agentic-evals-secrets
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: &sweep-agentic-evals-with
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
queue-token: ${{ matrix.config['queue-token'] }}
dp-attn: ${{ matrix.config.dp-attn }}
duration: ${{ matrix.config.duration }}
eval-framework: ${{ matrix.config['eval-framework'] || 'lm-eval' }}
eval-suite: ${{ matrix.config['eval-suite'] || '' }}
run-eval: true
eval-only: true
scenario-type: agentic-coding
sweep-agentic-evals-last:
needs: *evals-last-needs
if: >-
${{
!cancelled() &&
contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).agentic_evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).agentic_evals) != 'null'
}}
uses: $/.github/workflows/benchmark-tmpl.yml
name: agentic eval /
strategy: *sweep-agentic-evals-strategy
secrets: *sweep-agentic-evals-secrets
with: *sweep-agentic-evals-with
sweep-multi-node-evals:
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep]
if: >-
${{
!cancelled() &&
!contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_evals) != 'null'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node eval /
strategy: &sweep-multi-node-evals-strategy
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson(needs.setup.outputs.search-space-config).multinode_evals }}
secrets: &sweep-multi-node-evals-secrets
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: &sweep-multi-node-evals-with
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
node-count: ${{ matrix.config.node-count }}
queue-token: ${{ matrix.config['queue-token'] }}
conc-list: ${{ toJson(matrix.config.conc) }}
eval-framework: ${{ matrix.config['eval-framework'] || 'lm-eval' }}
eval-suite: ${{ matrix.config['eval-suite'] || '' }}
run-eval: true
eval-only: true
eval-conc: ${{ (matrix.config['eval-framework'] || 'lm-eval') == 'lm-eval' && matrix.config['eval-all-concs'] && join(matrix.config.conc, ' ') || matrix.config['eval-conc'] }}
sweep-multi-node-evals-last:
needs: *evals-last-needs
if: >-
${{
!cancelled() &&
contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_evals) != 'null'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node eval /
strategy: *sweep-multi-node-evals-strategy
secrets: *sweep-multi-node-evals-secrets
with: *sweep-multi-node-evals-with
sweep-multi-node-agentic-evals:
# The acceptance gate is report-only: the evals run whether or not its prompts were prepared.
needs: [setup, canary-select, canary-sweep, canary-multi-node-sweep, al-gate-prompts]
if: >-
${{
!cancelled() &&
!contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals) != 'null'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node agentic eval /
strategy: &sweep-multi-node-agentic-evals-strategy
fail-fast: ${{ contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast') }}
matrix:
config: ${{ fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals }}
secrets: &sweep-multi-node-agentic-evals-secrets
INFERENCEX_OFFICIAL_RO_HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }}
with: &sweep-multi-node-agentic-evals-with
config: ${{ toJSON(matrix.config) }}
pr-number: *pr-number
klaud-run: *klaud-run
runner: ${{ matrix.config.runner }}
node-count: ${{ matrix.config.node-count }}
queue-token: ${{ matrix.config['queue-token'] }}
conc-list: ${{ format('[{0}]', matrix.config['eval-conc']) }}
conc: ${{ matrix.config['eval-conc'] }}
duration: ${{ matrix.config.duration }}
eval-framework: ${{ matrix.config['eval-framework'] || 'lm-eval' }}
eval-suite: ${{ matrix.config['eval-suite'] || '' }}
run-eval: true
eval-only: true
eval-conc: ${{ matrix.config['eval-conc'] }}
scenario-type: agentic-coding
sweep-multi-node-agentic-evals-last:
needs: *evals-last-needs
if: >-
${{
!cancelled() &&
contains(github.event.pull_request.labels.*.name, 'evals-last') &&
needs.setup.result == 'success' &&
(needs.canary-sweep.result == 'success' || needs.canary-sweep.result == 'skipped') &&
(needs.canary-multi-node-sweep.result == 'success' || needs.canary-multi-node-sweep.result == 'skipped') &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals) != '[]' &&
toJson(fromJson(needs.setup.outputs.search-space-config).multinode_agentic_evals) != 'null'
}}
uses: $/.github/workflows/benchmark-multinode-tmpl.yml
name: multi-node agentic eval /
strategy: *sweep-multi-node-agentic-evals-strategy
secrets: *sweep-multi-node-agentic-evals-secrets
with: *sweep-multi-node-agentic-evals-with
collect-results:
name: collect-results
needs:
[
canary-sweep,
canary-multi-node-sweep,
sweep-single-node-1k1k,
sweep-single-node-8k1k,
sweep-agentic,
sweep-multi-node-1k1k,
sweep-multi-node-8k1k,
sweep-multi-node-agentic,
setup,
]
if: >-
${{
always() &&
needs.setup.result == 'success' &&
needs.setup.outputs.has-benchmark-results == 'true' &&
(
needs.canary-sweep.result == 'success' ||
needs.canary-multi-node-sweep.result == 'success' ||
needs.sweep-single-node-1k1k.result != 'skipped' ||
needs.sweep-single-node-8k1k.result != 'skipped' ||
needs.sweep-agentic.result != 'skipped' ||
needs.sweep-multi-node-1k1k.result != 'skipped' ||
needs.sweep-multi-node-8k1k.result != 'skipped' ||
needs.sweep-multi-node-agentic.result != 'skipped'
)
}}
uses: $/.github/workflows/collect-results.yml
with:
result-prefix: "bmk"
tooling-ref: ${{ needs.setup.outputs.tooling-ref }}
collect-evals:
name: collect-evals
needs:
[
sweep-evals,
sweep-agentic-evals,
sweep-multi-node-evals,
sweep-multi-node-agentic-evals,
sweep-evals-last,
sweep-agentic-evals-last,
sweep-multi-node-evals-last,
sweep-multi-node-agentic-evals-last,
setup,
]
if: >-
${{
always() &&
needs.setup.result != 'skipped' &&
(
needs.sweep-evals.result != 'skipped' ||
needs.sweep-agentic-evals.result != 'skipped' ||
needs.sweep-multi-node-evals.result != 'skipped' ||
needs.sweep-multi-node-agentic-evals.result != 'skipped' ||
needs.sweep-evals-last.result != 'skipped' ||
needs.sweep-agentic-evals-last.result != 'skipped' ||
needs.sweep-multi-node-evals-last.result != 'skipped' ||
needs.sweep-multi-node-agentic-evals-last.result != 'skipped'
)
}}
uses: $/.github/workflows/collect-evals.yml
with:
tooling-ref: ${{ needs.setup.outputs.tooling-ref }}
collect-job-events:
name: collect-job-events
needs:
[
setup,
canary-sweep,
canary-multi-node-sweep,
sweep-single-node-1k1k,
sweep-single-node-8k1k,
sweep-agentic,
sweep-video,
sweep-multi-node-1k1k,
sweep-multi-node-8k1k,
sweep-multi-node-agentic,
sweep-evals,
sweep-agentic-evals,
sweep-multi-node-evals,
sweep-multi-node-agentic-evals,
sweep-evals-last,
sweep-agentic-evals-last,
sweep-multi-node-evals-last,
sweep-multi-node-agentic-evals-last,
]
if: ${{ !cancelled() && needs.setup.result == 'success' }}
permissions:
actions: read # List the run's jobs to record the jobs that wrote no event.
contents: read
uses: $/.github/workflows/collect-job-events.yml
with:
tooling-ref: ${{ needs.setup.outputs.tooling-ref }}
upload-changelog-metadata:
name: upload-changelog-metadata
needs: [setup, collect-results, collect-evals, sweep-video]
if: ${{ always() && needs.setup.result == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Extract and save changelog metadata
env:
SWEEP_MATRIX: ${{ needs.setup.outputs.search-space-config }}
SWEEP_HEAD: ${{ github.event.pull_request.head.sha }}
SWEEP_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
python3 - <<'PY'
import json, os
from pathlib import Path
matrix = json.loads(os.environ['SWEEP_MATRIX'])
labels = set(json.loads(os.environ['SWEEP_LABELS']) or [])
sweep_labels = labels & {
'full-sweep-enabled', 'non-canary-full-sweep-enabled',
'full-sweep-fail-fast',
'all-evals', 'evals-only', 'agentx-fast',
}
Path('changelog_metadata.json').write_text(json.dumps(matrix['changelog_metadata']))
Path('sweep_manifest.json').write_text(json.dumps({
'head': os.environ['SWEEP_HEAD'], 'run-id': int(os.environ['GITHUB_RUN_ID']),
'run-attempt': int(os.environ['GITHUB_RUN_ATTEMPT']),
'full-sweep': sweep_labels == {'full-sweep-fail-fast'},
'video-full-sweep': bool(sweep_labels & {
'full-sweep-enabled', 'non-canary-full-sweep-enabled', 'full-sweep-fail-fast',
}) and not bool(sweep_labels & {'evals-only', 'agentx-fast'}),
'matrix': matrix,
}))
PY
- name: Upload changelog artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: changelog-metadata
path: changelog_metadata.json
overwrite: true
- name: Upload selected video matrix
if: ${{ (contains(github.event.pull_request.labels.*.name, 'full-sweep-enabled') || contains(github.event.pull_request.labels.*.name, 'non-canary-full-sweep-enabled') || contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast')) && !contains(github.event.pull_request.labels.*.name, 'evals-only') && !contains(github.event.pull_request.labels.*.name, 'agentx-fast') && toJson(fromJson(needs.setup.outputs.search-space-config).single_node.video) != 'null' && toJson(fromJson(needs.setup.outputs.search-space-config).single_node.video) != '[]' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: video-sweep-manifest
path: sweep_manifest.json
overwrite: true
if-no-files-found: error
- name: Upload Klaud validation manifest
if: *klaud-run
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: klaud-sweep-manifest
path: sweep_manifest.json
if-no-files-found: error
validate-video-results:
name: validate-video-results
needs: [setup, canary-sweep, sweep-video, upload-changelog-metadata]
if: ${{ !cancelled() && (contains(github.event.pull_request.labels.*.name, 'full-sweep-enabled') || contains(github.event.pull_request.labels.*.name, 'non-canary-full-sweep-enabled') || contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast')) && !contains(github.event.pull_request.labels.*.name, 'evals-only') && !contains(github.event.pull_request.labels.*.name, 'agentx-fast') && needs.setup.result == 'success' && toJson(fromJson(needs.setup.outputs.search-space-config).single_node.video) != 'null' && toJson(fromJson(needs.setup.outputs.search-space-config).single_node.video) != '[]' }}
runs-on: ubuntu-latest
permissions:
actions: read # Download the current run's video artifacts.
contents: read # Check out the video validator.
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Matching the manifest too keeps one bundle in its named directory; a single match unpacks flat.
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: '{h3-results-*,video-sweep-manifest}'
path: video-artifacts
- name: Validate the complete selected video matrix
env:
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
python3 -m infx.results.video_artifacts --artifacts-dir video-artifacts \
--run-id "$GITHUB_RUN_ID" --run-attempt "$GITHUB_RUN_ATTEMPT" --head-sha "$PR_HEAD_SHA"
calc-success-rate:
name: calc-success-rate
# Wait for evals so in-flight eval jobs are not counted as failures.
needs:
[
setup,
collect-results,
sweep-video,
sweep-evals,
sweep-agentic-evals,
sweep-multi-node-evals,
sweep-multi-node-agentic-evals,
sweep-evals-last,
sweep-agentic-evals-last,
sweep-multi-node-evals-last,
sweep-multi-node-agentic-evals-last,
]
if: ${{ always() && needs.collect-results.result != 'skipped'}}
runs-on: ubuntu-latest
permissions:
actions: read # Read job timings for run statistics.
contents: read
env:
RESULTS_DIR: "results/"
STATS_FILENAME: "run_stats"
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.setup.outputs.tooling-ref }}
fetch-depth: 1
persist-credentials: false
- name: Download results artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: ${{ env.RESULTS_DIR }}
pattern: results_*
- name: Set up Python project
uses: $/.github/actions/setup-python-project
- name: Calculate success rate
run: >-
uv run --project "$INFERENCEX_PYTHON_PROJECT" --locked --extra workflows
python -m infx.workflows.calc_success_rate "$STATS_FILENAME"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: "run-stats"
path: ${{ env.STATS_FILENAME }}.json
compare-results:
name: compare-results
needs:
[
collect-results,
setup,
]
if: >-
always() &&
needs.collect-results.result == 'success'
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DB_RO_URL }} # zizmor: ignore[secrets-outside-env]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.setup.outputs.tooling-ref }}
persist-credentials: false
- name: Download results artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: results/
pattern: results_bmk
- name: Set up Python project
uses: $/.github/actions/setup-python-project
- name: Compare results against main
run: >-
uv run --project "$INFERENCEX_PYTHON_PROJECT" --locked --extra results
python -m infx.results.compare_results results/ >> "$GITHUB_STEP_SUMMARY"
comment-unofficial-run-visualizer:
name: comment-unofficial-run-visualizer
needs:
[
collect-results,
collect-evals,
calc-success-rate,
upload-changelog-metadata,
setup,
]
if: >-
always() &&
needs.setup.result == 'success' &&
(
contains(github.event.pull_request.labels.*.name, 'full-sweep-enabled') ||
contains(github.event.pull_request.labels.*.name, 'non-canary-full-sweep-enabled') ||
contains(github.event.pull_request.labels.*.name, 'full-sweep-fail-fast')
) &&
(
(github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
github.event.label.name == 'full-sweep-enabled' ||
github.event.label.name == 'non-canary-full-sweep-enabled' ||
github.event.label.name == 'full-sweep-fail-fast' ||
github.event.label.name == 'all-evals' ||
github.event.label.name == 'evals-only' ||
github.event.label.name == 'agentx-fast' ||
github.event.label.name == 'evals-last'
)
runs-on: ubuntu-latest
concurrency:
group: unofficial-run-visualizer-${{ github.event.pull_request.number }}
cancel-in-progress: false
permissions:
pull-requests: write # Publish PR feedback.
steps:
- name: Update unofficial run visualizer links on PR
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
# Video results live on the VideoGenX page, not the inference charts.
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) != '[]' }}
with:
github-token: ${{ github.token }}
script: |
const marker = '<!-- inferencex-unofficial-run-visualizer -->';
const inferenceUrl = `https://inferencex.semianalysis.com/inference?unofficialRun=${context.runId}`;
const evaluationUrl = `https://inferencex.semianalysis.com/evaluation?unofficialRun=${context.runId}`;
const videoUrl = `https://inferencex.semianalysis.com/vgx?unofficialRun=${context.runId}`;
const body = [
marker,
`View unofficial run (performance): ${inferenceUrl}`,
`View unofficial run (accuracy): ${evaluationUrl}`,
...(process.env.HAS_VIDEO === 'true' ? [`View unofficial run (video): ${videoUrl}`] : []),
].join('\n\n');
const comments = await github.paginate(github.rest.issues.listComments, {
...context.repo,
issue_number: context.issue.number,
per_page: 100,
});
const botComments = comments.filter(comment => comment.user?.login === 'github-actions[bot]');
const existing = botComments.find(comment => comment.body?.includes(marker))
?? botComments.reverse().find(comment => comment.body?.startsWith(
'see unofficial run visualizer at https://inferencex.semianalysis.com/inference?unofficialRun='
));
if (existing) {
const previousRunId = existing.body.match(/unofficialRun=(\d+)/)?.[1];
if (previousRunId && Number(previousRunId) > context.runId) {
core.info('Keeping visualizer links for the newer run.');
return;
}
await github.rest.issues.updateComment({
...context.repo,
comment_id: existing.id,
body,
});
} else {
await github.rest.issues.createComment({
...context.repo,
issue_number: context.issue.number,
body,
});
}