Skip to content
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0f349b6
Compare inference revisions on fixed hardware with calibrated intervals
i386 Nov 27, 2026
c3fde33
Pin protected main for manual PR-profile comparisons
i386 Nov 27, 2026
0549d93
Retain every paired inference arm in uploaded evidence archives
i386 Nov 27, 2026
05bb302
Require uploaded arm archives from both comparison roles
i386 Nov 27, 2026
3cf12ff
Merge main and retain Actions log links with paired inference reports
i386 Nov 27, 2026
fa8d403
Merge main and separate paired queue and execution budgets
i386 Nov 28, 2026
d36adad
Merge main and retain formation peer evidence in paired arms
i386 Nov 28, 2026
5634f35
Support IPv6 coordination and legacy reports during rollout
i386 Nov 28, 2026
f874ff6
Register controlled split inference noise pilot
i386 Nov 28, 2026
a7b2588
Capture native phases in split noise diagnostics
i386 Nov 28, 2026
2d13715
Require detailed native spans for noise phase diagnostics
i386 Nov 28, 2026
f5cab8d
Build both qualification revisions with shared release policy
i386 Nov 28, 2026
7895aca
Collect streaming client evidence in fixed release sizing pilot
i386 Nov 28, 2026
49a7d69
Gate client qualification on registered precision and power
i386 Nov 28, 2026
f706d3f
Reject invalid client power and executable provenance
i386 Nov 28, 2026
e43b957
Probe scheduler affinity with a verified within-server crossover
i386 Nov 28, 2026
10c23c2
Preserve arm-order balance and reject unvalidated power admission
i386 Nov 28, 2026
b9cd921
Add bounded private graph timeline diagnostics for main-only noise
i386 Nov 28, 2026
d9dc0a5
Verify final client comparisons independently from every uploaded arm
i386 Nov 28, 2026
8bf1932
Use installed Nsight session controls and bind raw input manifests
i386 Nov 28, 2026
a9dd160
Bound timeline exports by aggregating high-volume CUDA API calls
i386 Nov 28, 2026
104facd
Trace native ABI and scheduler costs behind pre-launch noise
i386 Nov 28, 2026
e4b8c70
Use conservative order-stratified client intervals
i386 Nov 28, 2026
249f33b
Screen infeasible qualification counts analytically
i386 Nov 28, 2026
701b56c
Preflight unprivileged scheduler tracing before model capture
i386 Nov 28, 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
26 changes: 20 additions & 6 deletions .gi/templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
}
},
{
"name": "Short Spark PR inference smoke",
"name": "Paired Spark PR inference qualification",
"group": "Inference",
"target": {
"executor": "lab",
Expand Down Expand Up @@ -640,23 +640,30 @@
}
],
"default": "Qwen3.5-4B"
},
{
"key": "baseline_sha",
"label": "Admitted main commit",
"kind": "text",
"required": true,
"default": "legacy"
}
],
"budget": {
"max_usd": 0,
"max_duration_s": 1800,
"max_duration_s": 14400,
"grace_s": 60
},
"retain": "never",
"key": "inference-pr-standalone",
"command": "cd \"$JIANYANG_REPO_DIR\" && just inference-execute ${profile} ${model_key} standalone",
"command": "cd \"$JIANYANG_REPO_DIR\" && just inference-paired ${model_key} standalone ${baseline_sha}",
"env": {
"HF_HOME": "/mnt/model-store/huggingface",
"HF_HUB_CACHE": "/mnt/model-store/huggingface/hub"
}
},
{
"name": "Short Spark PR inference smoke",
"name": "Paired Spark PR inference qualification",
"group": "Inference",
"target": {
"executor": "lab",
Expand Down Expand Up @@ -895,16 +902,23 @@
"label": "spark-001272"
}
]
},
{
"key": "baseline_sha",
"label": "Admitted main commit",
"kind": "text",
"required": true,
"default": "legacy"
}
],
"budget": {
"max_usd": 0,
"max_duration_s": 1800,
"max_duration_s": 14400,
"grace_s": 60
},
"retain": "never",
"key": "inference-pr-split",
"command": "cd \"$JIANYANG_REPO_DIR\" && just inference-execute ${profile} ${model_key} split",
"command": "cd \"$JIANYANG_REPO_DIR\" && just inference-paired ${model_key} split ${baseline_sha}",
"roles": [
{
"name": "leader",
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/inference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
outputs:
source: ${{ steps.admission.outputs.source || github.event.pull_request.head.sha || github.event.workflow_run.head_sha || github.sha }}
profile: ${{ steps.admission.outputs.profile || 'pr' }}
baseline: ${{ steps.admission.outputs.baseline || steps.admission.outputs.source }}
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
# Credentialed controller source always comes from protected main.
Expand Down Expand Up @@ -131,7 +132,7 @@ jobs:
max-parallel: 3
matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}
runs-on: ${{ vars.SKIPPY_DEPOT_RUNNERS_ENABLED == 'true' && 'depot-ubuntu-24.04-4' || 'ubuntu-24.04' }}
timeout-minutes: ${{ matrix.profile == 'pr' && 100 || 360 }}
timeout-minutes: ${{ matrix.profile == 'pr' && 260 || 360 }}
env:
EVIDENCE: target/ci-evidence/inference-${{ matrix.id }}
steps:
Expand All @@ -145,11 +146,13 @@ jobs:
SOURCE_SHA: ${{ needs.plan.outputs.source }}
PROFILE: ${{ matrix.profile }}
CONFIGURATION: ${{ matrix.configuration }}
BASELINE_SHA: ${{ needs.plan.outputs.baseline }}
NIGHTLY_PUBLICATION: ${{ needs.plan.outputs.profile == 'nightly' && github.event_name == 'schedule' && github.ref == 'refs/heads/main' && github.repository == 'Mesh-LLM/skippy' }}
JIANYANG_INFERENCE_SSH_KEY: ${{ secrets.JIANYANG_INFERENCE_SSH_KEY }}
run: |
flags=()
if [[ "$NIGHTLY_PUBLICATION" == true ]]; then flags+=(--collect-public); fi
if [[ "$PROFILE" == pr ]]; then flags+=(--baseline "$BASELINE_SHA"); fi
just inference-dispatch "$PROFILE" "$SOURCE_SHA" "$EVIDENCE" "$CONFIGURATION" "${flags[@]}"
- name: Cancel outstanding JY jobs and formations
if: cancelled() || failure()
Expand Down Expand Up @@ -270,6 +273,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
SOURCE_SHA: ${{ needs.plan.outputs.source || github.event.pull_request.head.sha }}
BASELINE_SHA: ${{ needs.plan.outputs.baseline }}
PLAN: ${{ needs.plan.result }}
REQUIRED: 'true'
RESULT: ${{ needs.qualification.result }}
Expand Down
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ inference-dispatch profile source output="target/ci-evidence/inference" *configu
inference-execute profile model mode:
@"{{ automation_python }}" scripts/inference-execute.py "$@"

[positional-arguments]
inference-paired model mode baseline:
@"{{ automation_python }}" scripts/inference-paired.py "$@"

[positional-arguments]
inference-cancel ledger="target/ci-evidence/inference/jobs.json":
@"{{ automation_python }}" scripts/inference-dispatch.py cancel "$@"
Expand Down
43 changes: 43 additions & 0 deletions ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,49 @@ The lab-results comment uses `scripts/inference-report.sh` with hosted-runner
configuration and native-attempt identity, updates only its bot-owned comment,
and refuses to replace results for a newer commit or workflow attempt.

PR throughput comparisons pin current protected main during admission, regardless
of the latest nightly outcome. Each PR-profile native job builds that main commit
in a separate disposable worktree and retains the candidate build. Both revisions
run inside the same exclusive job or atomic two-Spark formation. The two roles
keep their placement and wait at a barrier after each restarted server arm.
Build hashes, source commits, host/kernel/driver identities, raw responses and
client timings remain in the lab evidence. All builds finish before measurement.
Each arm has a top-level evidence archive because JY does not upload nested
directories. Collection requires every arm archive in the uploaded manifest,
including the worker's archives for split runs, and retains their hashes.

The fixed design runs six main/main pairs for noise calibration, followed by six
main/candidate pairs, alternating A/B and B/A order. Every arm repeats each of
the three prompt shapes three times. A shape-matched 64-token warmup precedes
each uncached 128-token measured response at concurrency one. Prefixes differ
between repetitions; cached or truncated responses invalidate the evidence.
Quality, offload, streaming and native split admission checks run for every arm.
No changes to the workload fixtures are accepted between the two revisions.

The controller recomputes per-shape server-phase rates and paired log-ratio
Student-t intervals (six pairs, df=5, pointwise 95%). It does not treat nested
requests as independent rounds or combine different prompt lengths. A/A noise
is the maximum absolute log-interval endpoint, converted back to a percentage.
A performance verdict requires the candidate interval to clear that envelope;
an A/A interval excluding equality, or an envelope above 5%, makes the comparison
inconclusive. These per-metric intervals have no matrix-wide multiplicity
correction. Qualification still tests correctness and complete evidence;
inconclusive performance is not a claimed win or loss. The PR table reports the
interval and noise alongside each estimate. Historical runs never replace a
missing paired comparison.

Scheduled PR-profile smoke rows run the same design with main in both arms;
their paired receipts retain the noise check in Actions artifacts. The twelve
AgentX workloads and their saved historical baseline policy are separate.
The paired native budget is four hours, with additional controller cleanup time.
Offline protocol, statistics and reporting checks run with `just ci-automation`.
They do not establish device qualification or a measured noise floor.

Deployment requires the protected controller to reach main and JY's installed
`.gi/templates.yaml` definitions to be synced. Before that controller is merged,
old controllers retain their legacy smoke behavior through the template's
explicit `legacy` default; they cannot produce a paired comparison receipt.

The shared report renderer takes normalized qualification JSON. It renders
Mermaid charts for Actions summaries and saves the Hugging Face card’s PNG
charts in `charts/` beside its README. PNG export uses the reporting
Expand Down
2 changes: 2 additions & 0 deletions ci/automation.just
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ inference-contracts:
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_build.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_contracts.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_probe.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_pairs.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_paired_execution.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/jy_read_recovery.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_markdown.py
@PYTHONPATH=scripts "{{ automation_python }}" scripts/tests/inference_nightly.py
Expand Down
16 changes: 13 additions & 3 deletions scripts/inference-dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from lib.inference_nightly_metrics import collect_nightly
from lib.inference_throughput import collect
from lib.jy_qualification import Pilot, placement
from lib.inference_paired_collect import collect_pairs

TERMINAL = {"succeeded", "failed", "cancelled", "expired"}
FAILURE = TERMINAL - {"succeeded"}
Expand Down Expand Up @@ -125,8 +126,12 @@ def record(ledger, identifiers):
temporary.unlink(missing_ok=True)


def dispatch(pilot, profile, sha, output, configuration, collect_public=False):
def dispatch(pilot, profile, sha, output, configuration, collect_public=False, baseline=None):
result = plan(profile, sha)
if profile == "pr":
if baseline is None or not re.fullmatch(r"[0-9a-f]{40}", baseline):
raise ValueError("PR comparisons require an admitted immutable main SHA")
result["baseline_sha"] = baseline
if configuration is not None:
result["rows"] = [row for row in result["rows"] if row["id"] == configuration]
if len(result["rows"]) != 1:
Expand All @@ -139,7 +144,7 @@ def dispatch(pilot, profile, sha, output, configuration, collect_public=False):
# Manual qualification may queue behind another PR's atomic Spark pair;
# a PR profile waits for placement instead of failing fast, and the job
# timeout in inference.yml carries the same headroom.
deadline = time.monotonic() + (5400 if profile == "pr" else 21000)
deadline = time.monotonic() + (15000 if profile == "pr" else 21000)
try:
for row in result["rows"]:
identity, mode = row["id"], row["mode"]
Expand All @@ -153,13 +158,17 @@ def dispatch(pilot, profile, sha, output, configuration, collect_public=False):
"model_key": model_key},
"idempotency_key": f"inference-{run_id}-{profile}-{attempt}-{identity}-{sha}",
}
if profile == "pr":
body["inputs"]["baseline_sha"] = baseline
launched = launch(pilot, f"/v1/repos/skippy/templates/{template}/launch", body,
deadline, mode == "split")
handle = resource_id(launched.get("job_id"))
identifiers.append(handle)
record(ledger, identifiers)
write_json(output / f"{identity}-launch.json", launched)
job = wait(pilot, handle, identity, sha, output, deadline)
if profile == "pr":
collect_pairs(pilot, job, row, sha, baseline, output)
if collect_public:
collect_nightly(pilot, job, row, sha, output, model_key, profile)
elif profile == "pr":
Expand All @@ -184,12 +193,13 @@ def main():
action.add_argument("output", type=Path)
action.add_argument("configuration", nargs="?")
action.add_argument("--collect-public", action="store_true")
action.add_argument("--baseline", help="Protected admission's immutable main SHA")
actions.add_parser("cancel").add_argument("ledger", type=Path)
actions.add_parser("control-preflight")
args = parser.parse_args()
pilot = Pilot()
if args.action == "dispatch":
dispatch(pilot, args.profile, args.sha, args.output, args.configuration, args.collect_public)
dispatch(pilot, args.profile, args.sha, args.output, args.configuration, args.collect_public, args.baseline)
elif args.action == "cancel":
cancel(pilot, args.ledger)
else:
Expand Down
7 changes: 5 additions & 2 deletions scripts/inference-execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def acknowledge_worker():
connection.sendall(b"HTTP/1.1 200 OK\r\nContent-Length: 22\r\nConnection: close\r\n\r\n" + body)


def execute(profile, key, mode):
def execute(profile, key, mode, repetitions=1):
sha, gpu = authority()
result = plan(profile, sha)
if not any(row["id"] == f"{key}-{mode}" for row in result["rows"]):
Expand Down Expand Up @@ -161,7 +161,10 @@ def execute(profile, key, mode):
score(coordinate, output, profile)
if profile == "pr":
streaming(coordinate, output)
measure(coordinate, output)
for repetition in range(repetitions):
probe_output = output if repetition == 0 else output / f"probe-{repetition}"
probe_output.mkdir(parents=True, exist_ok=True)
measure(coordinate, probe_output, repetition if repetitions > 1 else None)
scope = "GPU startup, deterministic endpoint repeats and bounded streaming smoke"
else:
performance(profile, coordinate, context, output, inputs)
Expand Down
Loading
Loading