Skip to content
Draft
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
f249aba
fix(ci): start the reference server at the verbosity that logs GPU of…
jaredwy Nov 22, 2026
c9cc99f
feat(ci): keep what the reference rejects under KV pressure as a result
jaredwy Nov 22, 2026
ccaea2f
feat(ci): accept a branch of this repository as a performance arm
jaredwy Nov 25, 2026
fda19f3
feat(ci): add a backend table and a GB10 CUDA entry to performance runs
jaredwy Nov 25, 2026
15ba179
feat(ci): add a cuda-x86 performance backend for discrete GPUs
jaredwy Nov 25, 2026
ef17221
feat(ci): add a rocm performance backend
jaredwy Nov 25, 2026
2686265
fix(ci): stop a built arm shadowing the backend entry in performance …
jaredwy Nov 25, 2026
0159514
fix(ci): quote llama prefix-map flags for workspaces with spaces
jaredwy Nov 25, 2026
686474f
fix(ci): read the AIPerf summary at the artifact root
jaredwy Nov 25, 2026
f2a4c45
fix(ci): run AIPerf with a short TMPDIR so its ZMQ sockets fit
jaredwy Nov 25, 2026
57ff229
fix(ci): anchor AIPerf's short TMPDIR at /tmp
jaredwy Nov 25, 2026
4070ad8
fix(ci): print the traceback when performance execution fails
jaredwy Nov 25, 2026
4a41df5
fix(ci): target the pinned rocm node with a bare pin
jaredwy Nov 25, 2026
0f46b69
fix(ci): pin the rocm gfx target and toolchain paths in the job env
jaredwy Nov 25, 2026
bffc5c8
Treat Darwin's EPERM from an exiting process group as gone
jaredwy Nov 25, 2026
b332684
Turn off AIPerf's optional collectors in performance runs
jaredwy Nov 25, 2026
edf8f22
Let a performance plan name the servers it runs
jaredwy Nov 26, 2026
019e4e1
Let a performance plan run a variant of a server with its own Skippy …
jaredwy Nov 27, 2026
0f6cbec
Measure llama.cpp at both pins when a change moves the pin
jaredwy Nov 27, 2026
80b4641
Collect a performance job with the servers its plan named
jaredwy Nov 27, 2026
df0406a
Run a performance job as steps that report their progress
jaredwy Nov 27, 2026
e896fa5
Let a performance point send requests at a fixed rate
jaredwy Nov 27, 2026
119c0ce
Add rate servers for load-sized prefill chunks
jaredwy Nov 27, 2026
b6c11ee
Compare checkpoint admission across model families
jaredwy Nov 28, 2026
2533d7a
Let a performance point replay recorded conversations
jaredwy Nov 30, 2026
85fd8c1
Add conversation servers for AgentX and ShareGPT
jaredwy Nov 30, 2026
f61de2c
Serve each model no more context than it was trained on
jaredwy Nov 30, 2026
ba71dc7
Let a performance plan compare one commit's servers
jaredwy Nov 30, 2026
e5ba256
Report a server comparison against its first server
jaredwy Nov 30, 2026
d836811
Report progress while a long harness step runs
jaredwy Nov 30, 2026
8e07216
Keep each run's logs and AIPerf exports with its evidence
jaredwy Nov 30, 2026
2e38496
Refuse a replay a model's context cannot hold before building
jaredwy Nov 30, 2026
2e7b482
Record what each server allocates beyond its weights
jaredwy Dec 1, 2026
159fcae
Keep a model's trained context out of its benchmark recipe
jaredwy Dec 1, 2026
4d0f0dc
Let the performance workflow choose its backend and servers
jaredwy Dec 1, 2026
e4f1ff1
Add a nightly comparison of main with the last nightly's commit
jaredwy Dec 1, 2026
ed5beab
Report where Skippy regressed since the last nightly
jaredwy Dec 1, 2026
89a9773
Record each night's jobs and verdict in MLflow
jaredwy Dec 1, 2026
4666b65
Measure each recorded arm against llama.cpp at its own pin
jaredwy Dec 1, 2026
27e0477
Keep run links out of the recording job's public log
jaredwy Dec 1, 2026
e310d18
Measure the nightly on an x86 CUDA host as well
jaredwy Dec 1, 2026
6eb5478
Merge the updated comparison branch into the harness and nightly
jaredwy Dec 1, 2026
24d956b
Fix the ROCm memory figures and read GPU memory at each admission
jaredwy Dec 1, 2026
522aada
Fail a point on request errors that are not a full KV pool
jaredwy Dec 1, 2026
2604255
Compare variant flags as the launcher passes them
jaredwy Dec 1, 2026
6be1b33
Refuse a campaign whose timed points outlast the job
jaredwy Dec 1, 2026
1f86056
Chart a server comparison's control beside each variant
jaredwy Dec 1, 2026
b47b2b2
Count a recorded run as done only once its read-back passed
jaredwy Dec 1, 2026
51fc4fd
Test both stop handlers when the group refuses the signal
jaredwy Dec 1, 2026
1ef589b
Fail a point whose only failures are streams cut short
jaredwy Dec 1, 2026
012401e
Take a pool rejection only where llama-server logged one
jaredwy Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .agents/skills/manage-ci/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,24 @@ contract; no downstream product's workflow topology applies here.
Treat candidate log text as data, never Actions commands. Report capture gaps
without replacing the qualification verdict. User-facing reports link to
Actions logs and saved artifacts, not an external lab console.
- `.github/workflows/inference-performance-nightly.yml` runs nightly and on
dispatch from protected main. It calls `inference-performance.yml` once per
lane of `ci/inference-performance-nightly.json`: one model on one pinned
node, each node in one lane. Every lane measures the run's own head against
the head of the last successful nightly, with llama.cpp's server at each
commit's pin. The first night and a `rebaseline` dispatch measure main
against itself; a night on an unmoved main measures nothing and passes. A
failed night leaves the baseline at the last commit that passed. Its report
job holds no credentials: it checks each job's evidence against its plan
and compares the commits cell by cell at the shared 1% tolerance. The night
fails for an unfinished lane, evidence that did not hold, or a Skippy
regression whose rounds do not overlap the baseline's; a regression
llama.cpp's own server shares after a pin move is reported as llama.cpp's.
Never report an unmeasured cell as a regression. Its record job alone holds
the MLflow tracking credentials, in the `inference-records` environment, and
runs no candidate or measured code. Recording is required for the night's
success. This repository's logs are public: never print the tracking
server, the experiment or a run's address.
- The protected inference results-comment job alone receives pull-requests write
permission for PR comments, plus read-only contents/actions. It receives no
native dispatch credential and never executes candidate code.
Expand Down
58 changes: 58 additions & 0 deletions .github/scripts/inference-performance-nightly.test.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
const { test } = require('node:test');
const assert = require('node:assert/strict');
const { readFileSync } = require('node:fs');
const { join } = require('node:path');

const workflow = readFileSync(join(__dirname, '../workflows/inference-performance-nightly.yml'), 'utf8');
const jobs = workflow.split('\njobs:\n')[1];
const job = name => jobs.split(new RegExp(`(?:^|\\n) ${name}:\\n`))[1].split(/\n [a-z_]+:\n/)[0];

test('the nightly runs on a schedule and only from protected main of this repository', () => {
assert.match(workflow, /\n schedule:\n(?: #.*\n)* - cron: '\d+ \d+ \* \* \*'\n/);
assert.ok(job('plan').includes("if: github.repository == 'Mesh-LLM/skippy' && github.ref == 'refs/heads/main'"));
assert.ok(workflow.includes('cancel-in-progress: false'));
});

test('every lane measures the same two commits against llama.cpp and keeps its own evidence', () => {
const measure = job('measure');
for (const line of [
'needs: plan',
'matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}',
'uses: ./.github/workflows/inference-performance.yml',
'candidate: ${{ needs.plan.outputs.candidate }}',
'baseline: ${{ needs.plan.outputs.baseline }}',
'reference: true',
'backend: ${{ matrix.backend }}',
'nodes: ${{ matrix.node }}',
'label: ${{ matrix.id }}',
]) assert.ok(measure.includes(line), line);
});

test('the report runs after a failed lane, over the evidence of every attempt, and holds no credentials', () => {
const report = job('report');
assert.ok(report.includes(
"if: always() && !cancelled() && needs.plan.result == 'success' && needs.plan.outputs.mode != 'unchanged'"));
assert.ok(report.includes('pattern: inference-performance-*-${{ github.run_id }}-*'));
assert.ok(!report.includes('secrets.'));
});

test('only the recording job holds the tracking credentials, in its own environment', () => {
const record = job('record');
assert.ok(record.includes('environment: inference-records'));
assert.ok(record.includes("if: always() && !cancelled() && needs.report.result == 'success'"));
for (const name of ['TRACKING_URI', 'TRACKING_USERNAME', 'TRACKING_PASSWORD', 'EXPERIMENT']) {
assert.ok(record.includes(`secrets.SKIPPY_MLFLOW_${name}`), name);
}
assert.ok(record.includes('::add-mask::'));
assert.ok(!record.includes('JIANYANG_INFERENCE_SSH_KEY'));
for (const name of ['plan', 'measure', 'report', 'verdict']) {
assert.ok(!job(name).includes('MLFLOW'), name);
}
});

test('the verdict runs after a failed lane and reads every job it depends on', () => {
const verdict = job('verdict');
assert.ok(verdict.includes("if: always() && needs.plan.result != 'skipped'"));
const needs = verdict.match(/needs: \[([a-z_, ]+)\]/)[1].split(', ');
for (const name of needs) assert.ok(verdict.includes(`needs.${name}.result`), name);
});
185 changes: 185 additions & 0 deletions .github/workflows/inference-performance-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
name: Inference performance (nightly)
on:
schedule:
# 22:07 in Sydney during daylight saving: after the working day, and ahead of the 14:00 UTC
# nightlies and the 17:00 UTC release, which then queue behind a lane instead of delaying it.
- cron: '7 11 * * *'
workflow_dispatch:
inputs:
rebaseline:
description: Measure main against itself, an A/A noise run, so the next nightly compares with this commit.
type: boolean
default: false
permissions:
contents: read
concurrency:
# A night holds lab machines for hours; a second run waits for it and never cancels it.
group: inference-performance-nightly
cancel-in-progress: false
jobs:
plan:
# A schedule only fires on the default branch; a dispatch from any other ref stops here.
if: github.repository == 'Mesh-LLM/skippy' && github.ref == 'refs/heads/main'
runs-on: ${{ vars.SKIPPY_DEPOT_RUNNERS_ENABLED == 'true' && 'depot-ubuntu-24.04-4' || 'ubuntu-24.04' }}
timeout-minutes: 10
permissions:
contents: read
actions: read
outputs:
candidate: ${{ steps.plan.outputs.candidate }}
baseline: ${{ steps.plan.outputs.baseline }}
mode: ${{ steps.plan.outputs.mode }}
matrix: ${{ steps.plan.outputs.matrix }}
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
with:
ref: ${{ github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup
with:
cache: 'false'
- id: plan
name: Choose tonight's commits and lanes
env:
GH_TOKEN: ${{ github.token }}
REBASELINE: ${{ inputs.rebaseline }}
run: just inference-performance-nightly-plan
measure:
name: measure (${{ matrix.id }})
needs: plan
if: needs.plan.outputs.mode != 'unchanged'
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}
# Every lane measures the same two commits, so the lanes differ only in machine and model.
uses: ./.github/workflows/inference-performance.yml
with:
candidate: ${{ needs.plan.outputs.candidate }}
baseline: ${{ needs.plan.outputs.baseline }}
reference: true
backend: ${{ matrix.backend }}
models: ${{ matrix.model }}
nodes: ${{ matrix.node }}
servers: ${{ matrix.servers }}
rounds: ${{ matrix.rounds }}
trace: ${{ matrix.trace }}
label: ${{ matrix.id }}
secrets:
JIANYANG_INFERENCE_SSH_KEY: ${{ secrets.JIANYANG_INFERENCE_SSH_KEY }}
report:
name: Check the evidence and compare with the last nightly
needs: [plan, measure]
# After a failed lane too: the lanes that finished are still checked and compared.
if: always() && !cancelled() && needs.plan.result == 'success' && needs.plan.outputs.mode != 'unchanged'
runs-on: ${{ vars.SKIPPY_DEPOT_RUNNERS_ENABLED == 'true' && 'depot-ubuntu-24.04-4' || 'ubuntu-24.04' }}
timeout-minutes: 15
permissions:
contents: read
actions: read
outputs:
regressions: ${{ steps.report.outputs.regressions }}
unverified: ${{ steps.report.outputs.unverified }}
env:
EVIDENCE: target/ci-evidence/inference-performance-nightly
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
with:
ref: ${{ github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup
with:
cache: 'false'
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
continue-on-error: true
with:
# A rerun of the lanes that failed keeps what earlier attempts uploaded for the others.
pattern: inference-performance-*-${{ github.run_id }}-*
path: ${{ env.EVIDENCE }}
- id: report
name: Check each lane's evidence and find where Skippy regressed
env:
CANDIDATE: ${{ needs.plan.outputs.candidate }}
BASELINE: ${{ needs.plan.outputs.baseline }}
MODE: ${{ needs.plan.outputs.mode }}
run: just inference-performance-nightly-report "$EVIDENCE"
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
if: always()
with:
name: nightly-inference-performance-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ env.EVIDENCE }}/nightly
if-no-files-found: error
retention-days: 90
record:
name: Record the night in MLflow
needs: [plan, measure, report]
# After a failed lane or a regression too: what was measured is recorded with its verdict.
if: always() && !cancelled() && needs.report.result == 'success'
# The only job that holds the tracking server's credentials; it runs no measured code.
environment: inference-records
runs-on: ${{ vars.SKIPPY_DEPOT_RUNNERS_ENABLED == 'true' && 'depot-ubuntu-24.04-4' || 'ubuntu-24.04' }}
timeout-minutes: 30
permissions:
contents: read
actions: read
env:
EVIDENCE: target/ci-evidence/inference-performance-nightly
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
with:
ref: ${{ github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup
with:
cache: 'false'
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
# A night on which no lane uploaded evidence still records its verdict.
continue-on-error: true
with:
pattern: inference-performance-*-${{ github.run_id }}-*
path: ${{ env.EVIDENCE }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
with:
name: nightly-inference-performance-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ env.EVIDENCE }}/nightly
- name: Prepare the recording client
run: |
python3 -m venv "$RUNNER_TEMP/inference-record"
"$RUNNER_TEMP/inference-record/bin/python" -m pip install --requirement ci/inference-record-requirements.txt
- name: Record every job and the night's verdict
env:
MLFLOW_TRACKING_URI: ${{ secrets.SKIPPY_MLFLOW_TRACKING_URI }}
MLFLOW_TRACKING_USERNAME: ${{ secrets.SKIPPY_MLFLOW_TRACKING_USERNAME }}
MLFLOW_TRACKING_PASSWORD: ${{ secrets.SKIPPY_MLFLOW_TRACKING_PASSWORD }}
MLFLOW_EXPERIMENT_NAME: ${{ secrets.SKIPPY_MLFLOW_EXPERIMENT }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
# This log is public: a secret is masked as written, so the server's bare name is masked too.
host=${MLFLOW_TRACKING_URI#*://}
host=${host%%/*}
if [[ -n "$host" ]]; then echo "::add-mask::$host"; fi
SKIPPY_PYTHON="$RUNNER_TEMP/inference-record/bin/python" \
just inference-performance-record "$EVIDENCE"
verdict:
name: Nightly performance verdict
needs: [plan, measure, report, record]
if: always() && needs.plan.result != 'skipped'
runs-on: ${{ vars.SKIPPY_DEPOT_RUNNERS_ENABLED == 'true' && 'depot-ubuntu-24.04-4' || 'ubuntu-24.04' }}
timeout-minutes: 5
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
with:
ref: ${{ github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup
with:
cache: 'false'
- name: Settle the night's result
env:
PLAN: ${{ needs.plan.result }}
MODE: ${{ needs.plan.outputs.mode }}
MEASURE: ${{ needs.measure.result }}
REPORT: ${{ needs.report.result }}
RECORD: ${{ needs.record.result }}
REGRESSIONS: ${{ needs.report.outputs.regressions }}
UNVERIFIED: ${{ needs.report.outputs.unverified }}
run: just inference-performance-nightly-verdict
33 changes: 27 additions & 6 deletions .github/workflows/inference-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,32 @@ on:
workflow_dispatch:
inputs:
candidate:
description: Ref or SHA on main to measure, or pr:N for the head of an open pull request from this repository.
description: Ref or SHA on main to measure, pr:N for the head of an open pull request from this repository, or branch:NAME for a branch's head.
type: string
default: main
baseline:
description: Ref or SHA on main, or pr:N, to compare against. The candidate again gives an A/A noise run.
description: Ref or SHA on main, pr:N or branch:NAME, to compare against. The candidate again gives an A/A noise run.
type: string
required: true
reference:
description: Add llama.cpp's own server at the candidate's llama_cpp/upstream.txt pin.
type: boolean
default: true
backend:
description: The backend every job runs on, from the table in scripts/lib/performance_backends.py.
type: choice
options: [metal, cuda, cuda-x86, rocm]
default: metal
models:
description: Comma-separated ci/inference-ladder.json ids.
description: Comma-separated ci/inference-artifacts.json model ids.
type: string
default: qwen35-4b
nodes:
description: Comma-separated Metal nodes, one job each. Empty runs one job on any Metal Mac that fits.
description: Comma-separated nodes of that backend, one job each. Empty runs one job on any host that fits, where the backend allows it.
type: string
default: ''
servers:
description: Comma-separated ci/inference-performance.json server ids. Empty runs the scenario's default servers.
type: string
default: ''
rounds:
Expand All @@ -41,18 +50,28 @@ on:
reference:
type: boolean
default: true
backend:
type: string
default: metal
models:
type: string
default: qwen35-4b
nodes:
type: string
default: ''
servers:
type: string
default: ''
rounds:
type: number
default: 3
trace:
type: boolean
default: false
label:
description: Names this call's evidence artifact, so several calls in one run keep theirs apart.
type: string
default: ''
secrets:
JIANYANG_INFERENCE_SSH_KEY:
required: true
Expand Down Expand Up @@ -83,12 +102,14 @@ jobs:
CANDIDATE: ${{ inputs.candidate }}
BASELINE: ${{ inputs.baseline }}
REFERENCE: ${{ inputs.reference }}
BACKEND: ${{ inputs.backend }}
MODELS: ${{ inputs.models }}
NODES: ${{ inputs.nodes }}
SERVERS: ${{ inputs.servers }}
ROUNDS: ${{ inputs.rounds }}
TRACE: ${{ inputs.trace }}
run: just inference-performance-admit "$EVIDENCE"
- name: Measure every arm on each Metal host
- name: Measure every arm on each host
env:
JIANYANG_INFERENCE_SSH_KEY: ${{ secrets.JIANYANG_INFERENCE_SSH_KEY }}
run: just inference-performance-dispatch "$EVIDENCE"
Expand All @@ -103,7 +124,7 @@ jobs:
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
if: always()
with:
name: inference-performance-${{ github.run_id }}-${{ github.run_attempt }}
name: inference-performance-${{ inputs.label && format('{0}-', inputs.label) || '' }}${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ env.EVIDENCE }}
if-no-files-found: error
retention-days: 30
Loading
Loading