Extend the performance harness and add a nightly regression comparison #283
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.52) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #283"
general
weight: 0.35
jaredwy
Stacked on #124 (
inference-performance); review that first. This branch is 42 commits ahead of it: the performance harness work done since #124 left it, a nightly comparison built on that harness, and one merge that brings #124's latest state in.Original problem
The performance workflow measured a candidate against a baseline on one Metal host, with one fixed scenario, once. Nothing compared main with itself over time, so a change that slowed Skippy reached main unnoticed unless someone ran a comparison by hand, and the numbers lived in artifacts that expire.
With this change, maintainers can:
Fix
Harness (33 commits): a backend table with GB10 CUDA, x86 CUDA and ROCm entries; branch arms; named servers, variants and server comparisons; rate points; conversation replay capped at each model's trained context, which is pinned in
ci/inference-artifacts.jsonand refused at planning when a replay cannot fit; llama-server at both pins; jobs run as steps that report progress; logs and AIPerf exports kept with the evidence; and fixes found running it on the lab's hosts.Recipe identity (
159fcae4): pinningtrained_contextchanged the recipe hash of every qualification configuration, so the audited history inci/inference-comparability.jsonstopped matching. The recipe now hashes a model's manifest entry without that field, which restores all 52 audited identities. The field follows from the pinned files and is checked against them at admission.Nightly (7 commits):
inference-performance-nightly.ymlruns at 11:07 UTC from protected main. Each lane inci/inference-performance-nightly.jsonis one model on one pinned node: two Macs, a GB10 and an x86 CUDA host. Every lane measures tonight's head against the head of the last successful nightly, with llama-server at each commit's pin. The first night and arebaselinedispatch measure main against itself.inference-recordsenvironment, and runs no measured code. It writes each lane's job in the existing view layout (arm.role,<field>/<point>medians, current and trend runs) and the night as its own run. It prints no server, experiment or run address: the client's run links are switched off and its output is redacted.Merge (
6eb5478a): #124 hardened its controller after this branch left it, and ten files conflicted. Two resolutions need a look:group_aliveraises onEPERMwhile the child still runs; this branch treats thatEPERMas Darwin's answer for an exiting group and checkspsfor a running process of ours. The merge keeps this branch's reading, because raising failed Metal teardown, and #124's threeci_process_contracts.pytests now use the uid-aware rows and expect the check.performance_controller_contracts.pytested the one-shotexecutethis branch replaced with steps. Those three tests now test the steps: a failed trace step is reported and the job goes on, a failed round fails it, and a failed job's logs are kept.git show --remerge-diff 6eb5478ashows only the resolutions.Workflow diagrams
inference-performance.ymlBefore (#124):
After:
inference-performance-nightly.ymlBefore: no such workflow.
After:
Compatibility
Qualification recipe identities are unchanged from the audited ones. The performance workflow's existing inputs keep their meaning;
backenddefaults to Metal. The record layout matches the existing view's.Validation
just ci-automationon6eb5478a: passed locally (macOS, Python 3.12).Before the nightly can run, an
inference-recordsenvironment needsSKIPPY_MLFLOW_TRACKING_URI,SKIPPY_MLFLOW_TRACKING_USERNAME,SKIPPY_MLFLOW_TRACKING_PASSWORDandSKIPPY_MLFLOW_EXPERIMENT, ideally for a service account rather than a person.Acceptance criteria
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added nightly inference performance comparisons across configured hardware and model lanes, with reports, regression checks, and experiment tracking.
Expanded performance comparisons to support Metal, CUDA, and ROCm backends, branch-based candidates and baselines, selectable servers, and conversation datasets.
Added richer benchmark results, including rejected-request counts, memory details, and host information.
Added model context information and new benchmark scenarios.
Documentation
Updated performance workflow guides with backend options, nightly comparisons, and reporting behavior.
Tests
* Added coverage for nightly comparisons, backend and workload options, reporting, and process handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->