diff --git a/docs/models/qwen3.8-flash-next/BENCHMARKS.md b/docs/models/qwen3.8-flash-next/BENCHMARKS.md index 6da3312c93..d45cbc5d13 100644 --- a/docs/models/qwen3.8-flash-next/BENCHMARKS.md +++ b/docs/models/qwen3.8-flash-next/BENCHMARKS.md @@ -223,3 +223,35 @@ Q8 MTP rates vary more between server starts than between cohorts of one start: a second start with three cohorts per point gave mixed 90.06 (C4) and 105.40 (C6), repetitive 115.74 (C4) and 118.65 (C6) tok/s, each cohort within 3% of its point's rate. + +## Draft TP snapshot-turn measurements (October 31, 2026) + +A separate integration-stack pilot uses two Strix Halo nodes, matching private +ROCm7.14.1 builds, UD-Q4_K_XL/sharedQ8_0MTP, 65K capacity, two sessions and crossed +40+20Gb/s. AR concurrent waves measure parent36.75/53.12 versus fix56.41/56.52 +tok/s; C1 remains about37.5–37.6tok/s. This fixes a measured admission mechanism +but includes a first-request batching tradeoff, 22 phase flags and variable +controls; no statistical gain is established. Adaptive MTP remains unqualified. +The published older base has separate bounded hardware/functional checks, with timing flags still open. [Full scope and per-request flags](../../patches/ar-snapshot-turn/README.md). + +The follow-up [eight-pair adaptive-MTP study](../../patches/ar-snapshot-turn/README.md) +completes 16 starts/80 exact outputs: concurrent geometric change +1.302%, +95% interval [−1.053,+3.511]%, balanced-order p=0.371429. No aggregate direction +or equivalence established. All 14 new phase flags and 30 changed-work +comparisons remain; earlier pilot flags are separate. The separate AR confidence study is complete (below); standalone timing follow-up remains open. + +The predeclared AR eight-pair integration study completes16starts/80exact outputs: +C2geometric throughput +5.415%,95%CI[0.886,12.644]%,balanced p=.028571. All16phase +flags remain; one first request takes464ms longer while the pair finishes sooner. +This does not establish the same gain on the older published base. Its standalone +24-output AR/MTP check retains24flags, including~0.77sMTP-C2wall slowdowns with +changed draft work; standalone confidence follow-up is complete but inconclusive. Independent +candidate AR/MTP cancellation and seeded18Kcache checks pass. Keep draft. + +The standalone published-base MTPfollow-up completes16starts/80exact outputs and +32clean host windows. Point C2change+18.365%,bootstrap95%[0.670,49.116]%,but exact +balanced p=.142857 (5/8positive): no established direction/equivalence. All55new +phase flags/30work changes remain. Equal-work repeated C1ranges1.991–2.556s. +A separate diagnostic finds198actualslowCorsairNVMecommands in three cohorts, +with IRQ→CQ≤6.75µs and observed reader runnable delay≤33.179µs. It does not explain the old long +plateau; collector failure/partialEVOcoverage limits remain. [Evidence](../../patches/ar-snapshot-turn/README.md). diff --git a/docs/models/qwen3.8-flash-next/EXPERIMENTS.md b/docs/models/qwen3.8-flash-next/EXPERIMENTS.md index 12f0dc16ad..e2c5213707 100644 --- a/docs/models/qwen3.8-flash-next/EXPERIMENTS.md +++ b/docs/models/qwen3.8-flash-next/EXPERIMENTS.md @@ -288,3 +288,9 @@ Development measurements, not published cells. | Disk cache | Retained. Each rank keeps its half of a snapshot on its own disk; rank 0's store decides what is saved and restored. Q4 MTP: upstream's `check-continuation.py`, text and images, left 46 files (3.0 GB) per host; after both ranks restarted, every checked request was restored from disk and repeated its output, except one seeded sampled case's next turn. Memory had replaced that prompt's first capture with a later cold prefill's, whose state differs slightly (on one host too), while the disk kept the first. | | Prefill steps and reuse timing | Retained fixes, found with upstream's `check-continuation.py`. A TP2 rank's recurrent-gate projection (48 rows) fell outside the pinned F16 GEMM that one host uses for its 96, so hipBLASLt's tiles made a prefill depend on how the prompt was split into steps; pinned, `tp_probe --split` is bit-identical at 7/40/150/200 of 251 tokens and at 600/1,100 of 1,115. A released state or snapshot was reused only after rank 1's verdict, so a follow-up sent right after a client disconnect missed the cache; captures are now checked against rank 0's digest, and reuse before the verdict makes the reusing request depend on it. The check's default cases pass 8/8 on TP2, AR and MTP. Its remaining failures (a sampled replay that restores a cold-prefilled snapshot, whose decoded tokens were prefilled) occur on one host and on upstream `main` alike: decoding a token differs slightly from prefilling it (`tp_probe --decode-tail`). | | TP2 against one host | Measurement. Reduction order differs, so logits are compared with a tolerance: 216 tokens RMSE 0.134, top-1 63/64, mean KL 0.0055; 5,713 tokens RMSE 0.51, KL 0.029. WikiText-2 (8 × 1024 tokens) perplexity 2.1093 on TP2 against 2.1168 on one host, KL 0.019, 97.1% same top token. | + +## TP AR snapshot turns (October 31, 2026; draft) + +| Experiment | Outcome | +| --- | --- | +| Extend pending-snapshot admission to AR advances with recursive turns | Unqualified candidate: an actual trace shows 22 advances bypassing one waiting capture during 601 ms. The integrated AR pilot completes concurrent waves at 56.41/56.52 versus 36.75/53.12 tok/s in variable controls, with a first-request batching tradeoff and all 22 phase flags retained. Adaptive MTP remains inconclusive (25 flags, changed work); fixed-depth1 diagnostic has equal work and no flags. Greedy/cancellation/18K seeded replay and CPU checks pass. Later standalone bounded AR/MTP and cancellation/18Kcache checks pass, but24timing flags remain. Eight-pair integration AR throughput+5.415%,CI[0.886,12.644]%,balanced p=.028571, with16flags and a464msfirst-request tradeoff; separate MTPconfidence remains inconclusive. Standalone MTPtiming follow-up complete/inconclusive (55newflags). [Evidence and exact scope](../../patches/ar-snapshot-turn/README.md). | diff --git a/docs/models/qwen3.8-flash-next/QUALITY.md b/docs/models/qwen3.8-flash-next/QUALITY.md index b7db095652..a357b6a4cd 100644 --- a/docs/models/qwen3.8-flash-next/QUALITY.md +++ b/docs/models/qwen3.8-flash-next/QUALITY.md @@ -1140,3 +1140,39 @@ prepares every session with one output token before the measured cohort; all 51 measured completion sets match their fresh one-user AR controls. These checks do not establish unquantized-model accuracy. Commands, preparation records, hashes, samples and draft counts remain in the artifacts. + +## Draft TP recursive snapshot turns (October 31, 2026) + +This host scheduling change preserves model arithmetic and collective order. +The integration-stack AR/MTP pilots match48canonical outputs; a supported +fixed-depth1 diagnostic matches12more with identical recorded draft work. +Candidate functional checks cover23HTTPrequests with six request-ID-matched +server cancellations, exact two-row survivors/post-cancel replay and two seeded +continuation histories reusing18,461tokens while retaining/discarding interrupted +assistant output. Actual MTP proposals are checked. Per-request timing remains +unqualified:22AR and25adaptive-MTP phase flags are retained, with changed +batching/draft work. The standalone published base has five passing CPU suites, a separate production +build and subsequently passing bounded AR/MTP hardware/functional checks; timing +flags remain open. +[Evidence and limits](../../patches/ar-snapshot-turn/README.md). + +The follow-up [eight-pair adaptive-MTP study](../../patches/ar-snapshot-turn/README.md) +completes 16 starts/80 exact outputs: concurrent geometric change +1.302%, +95% interval [−1.053,+3.511]%, balanced-order p=0.371429. No aggregate direction +or equivalence established. All 14 new phase flags and 30 changed-work +comparisons remain; earlier pilot flags are separate. The separate AR confidence study is complete (below); standalone timing follow-up remains open. + +The AR confidence comparison completes80exact outputs with16retainedphase flags; +its primary C2endpoint supports+5.415%throughput (95%CI[0.886,12.644]%) with a +first-request batching tradeoff. Standalone published AR/MTP each separately pass +23HTTPrequests, six confirmed cancellations, exact width-two survivors/replay and +two seeded18,461token continuations. Standalone timing retains24flags/six changed- +work comparisons; no blanket performance or error-path qualification is claimed. + +The standalone published-base MTPfollow-up completes16starts/80exact outputs and +32clean host windows. Point C2change+18.365%,bootstrap95%[0.670,49.116]%,but exact +balanced p=.142857 (5/8positive): no established direction/equivalence. All55new +phase flags/30work changes remain. Equal-work repeated C1ranges1.991–2.556s. +A separate diagnostic finds198actualslowCorsairNVMecommands in three cohorts, +with IRQ→CQ≤6.75µs and observed reader runnable delay≤33.179µs. It does not explain the old long +plateau; collector failure/partialEVOcoverage limits remain. [Evidence](../../patches/ar-snapshot-turn/README.md). diff --git a/docs/patches/ar-snapshot-turn/README.md b/docs/patches/ar-snapshot-turn/README.md new file mode 100644 index 0000000000..72d7812e70 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/README.md @@ -0,0 +1,261 @@ +# Give pending TP snapshots a turn before AR advances + +A pending snapshot can be starved by repeated autoregressive advances acquiring +the TP call mutex. On two Strix Halo nodes, an exact lock-site trace measured a +601.138 ms wait while 22 additional `Advance` calls acquired the same mutex. The +capture returned 3.875 ms after acquiring it. Other histories reproduced waits +of 2,239 and 888 ms. This is a host lock-handoff mechanism, separate from the +storage stalls investigated elsewhere. + +The existing pending-snapshot gate covers multi-token decode. This follow-up +extends admission to `Advance`, `AdvanceBatch`, `DecodeStep`, and `DecodeBatch`. +An outer turn waits before taking the call mutex. A nested turn on the same +runner proceeds so an active decode can finish its recursive `Advance`; waiting +there would deadlock the capture needing that mutex. A thread-local linked +stack also handles nested turns across different runners and exception unwind. + +An active call is allowed to finish, and prefill is unchanged. The check can race +with a newly registered capture, so this is not strict FIFO or a universal wait +bound. There are no model-math, GPU-kernel, collective-order, transport, cache +policy, wire-protocol, or system-configuration changes. + +## Evidence and scope + +The three-file follow-up is based on the existing snapshot-handoff branch +`b6d4cbaa`; its code commit is `92bf7cb6`. It is independently CPU-tested and +format-checked on that published base. The private production/inference test +stack also contains HC/cooperative/cache changes absent from this older base. +The confidence results below qualify that integration-stack delta. Separate +standalone published-base AR/MTP checks are reported independently; their +timing flags remain open. Exact binary/source identities and settings +are in [qualification.json](qualification.json). + +On the integration stack, the production build, sanitizer gate tests and five +CPU suites pass. An isolated negative control using unconditional nested waits +times out in the recursive-handoff test, demonstrating why nesting matters. +Actual two-node tests use Flash Next UD-Q4_K_XL, shared Q8_0 MTP when enabled, +65,536-token capacity, two sessions, CLI2K/backend4K and a 1 GiB cache budget. +Both hosts have 124 GiB HIP heaps and crossed 40+20 Gb/s links. The same temporary +driver is used in every paired arm and the approved drivers are restored. + +### Untraced AR pilot + +| Fixed execution order | Concurrent wave tok/s | Second-request first-followup gap ms | +|---|---:|---:| +| Parent before | 36.75 | 3342.25 | +| Fix first | 56.41 | 83.38 | +| Fix second | 56.52 | 83.87 | +| Parent after | 53.12 | 424.01 | + +All 24 canonical request/output identities match. The first parent effectively +serializes the pair (physical width 1); the fix runs both requests together +(width 2). The first request therefore finishes later: 3662 ms versus 4512/4529 +ms, while the second finishes sooner: 6956 ms versus 4528/4519 ms. Keep this +fairness/batching tradeoff distinct from a uniform latency improvement. +[All 22 timing flags](ar-phase-flags.csv) and +[four changed-width comparisons](ar-adaptive-work.csv) are retained. Controls +vary, and four fixed starts do not establish significance or stall frequency. +An instrumented parent/fix pair did not reproduce the large parent stall; it +does not prove a speedup. + +### Predeclared AR confidence study + +All eight balanced-order pairs complete:16fresh starts,80exact canonical +outputs,32clean host transport windows and approved-driver restoration. +Geometric C2 whole-wave throughput improves **5.415%**,95%paired-bootstrap +interval **[0.886,12.644]%**. Seven pairs favor the fix. The predeclared +256-sign symmetry p=0.0234375 and exact70balanced-assignment p=0.0285714. +The bootstrap assumes exchangeable pairs and the sign test assumes pairwise +symmetry; these support the measured history/stack, not arbitrary workloads. + +All16strict phase flags remain. There are zero recorded draft/acceptance/round/ +maximum-width differences; reaching width two does not mean the whole execution +mix is identical. In pair5 the first request takes4061.795→4525.313ms +(**463.517ms longer**) while the second takes5899.713→4514.532ms; whole-wave +completion improves5.910203→4.525313s. Retain this fairness/batching tradeoff. +Second-request first-followup gaps in pairs1/4/5 shrink551.572/475.501/1908.570ms +→82.941/84.738/83.190ms. This is reduced handoff stalling, not faster GPU math. + +No metric has two candidate observations above every baseline by the unchanged +margin; overlapping ranges do not clear individual flags. Secondary C1 first- +decode latency reduction0.414%,CI[0.162,0.652]%,balanced p=.02857 is exploratory; +repeat0.124%,CI[−0.215,+0.426]%,p=.57143 is inconclusive. These are not replacement +primary endpoints or a blanket C1 improvement claim. + +[Every pair](ar-confidence-rates.csv), [all flags](ar-confidence-flags.csv), +[work comparisons](ar-confidence-work.csv), [ranges](ar-confidence-ranges.csv), +[numerical results](ar-confidence.json), [C1 secondary results](ar-confidence-C1.json), +[validation](ar-confidence-validation.json) and +[statistics](ar-confidence-statistics.py) are retained. Same binaries/settings +as the AR pilot, same five-request prefix, only trailing32K omitted; no observers, +admin sampler, extra idle or warming. No pilot rows pooled or starts excluded. + +![Every AR pair and individual request change](ar-confidence.png) + +### MTP and functional checks + +The normal adaptive-MTP pilot has 24 matching canonical outputs, but concurrent +rates are 64.88/63.31 tok/s in controls and 57.27/68.99 in fix runs. Preserve +[25 timing flags](mtp-phase-flags.csv) and +[23 changed-work comparisons](mtp-adaptive-work.csv). There is no demonstrated +adaptive-MTP improvement or clearance of its slow candidate cohort. + +A separate supported `--draft-tokens 1 --min-draft-tokens 1` diagnostic matches +all 12 outputs and recorded draft/acceptance/round/width counts, with no strict +timing flags: 71.00 versus 71.04 concurrent tok/s. This different workload does +not clear adaptive-mode flags or recommend a new default. The attempted floor +of two was rejected by Flash Next before model loading completed; it is not a +benchmark result. + +The subsequent predeclared eight-pair normal-adaptive comparison completes all +16 starts and 80 matching canonical outputs, without exclusions or added +starts. Paired geometric concurrent throughput change is +1.302%, with 95% +paired-bootstrap interval [−1.053,+3.511]%; the predeclared sign-symmetry p is +0.3125 and exact balanced-order sensitivity p is 0.371429. Five pairs favor the +fix, three favor the parent. This establishes neither a gain nor a slowdown, +and is not equivalence. The bootstrap assumes exchangeable pairs; the two +p-values have different symmetry/randomization assumptions, both retained. + +All 14 new timing flags remain: eight public/raw decode comparisons across +four C2 requests and six warmup metrics. Thirty draft-work comparisons differ. +Every flagged C2 comparison has changed draft work, without establishing that +as the entire cause. No metric has two candidates outside every observed +baseline by the unchanged margin. No C1 strict flags; exploratory C1 first/ +repeat latency changes −0.065/−0.175% have intervals spanning zero. Earlier +pilot flags remain separate. This narrows the concern to variable adaptive +work/overlapping timings; it does not give a blanket per-request pass. + +[All pair rates](mtp-confidence-rates.csv), [flags](mtp-confidence-flags.csv), +[changed work](mtp-confidence-work.csv), [ranges](mtp-confidence-ranges.csv), +[numerical results](mtp-confidence.json) and the +[statistical calculation](mtp-confidence-statistics.py) are retained. The +same warmup/first-repeat2K/C2 prefix is used, omitting only trailing32K after +the affected requests. Explicit max7/min1, same binaries and controls, no +profiler/admin sampler/extra priming. All 32 host windows are clean; tested +servers exit and approved drivers restore. + +![Every MTP pair and individual request change](mtp-confidence.png) + +Candidate functional coverage includes 23 HTTP requests: two concurrent +victim/survivor orders, exact survivor/post-cancel replay, and two deep seeded +continuations retaining/discarding interrupted assistant output. All six client +disconnects join by request ID to server `finish=cancelled` outcomes. Both deep +cases reuse 18,461 tokens and reproduce their seeded continuation and third-turn +outputs exactly. Actual two-row survivors and MTP proposals are checked. +Checked transport counters stay clean and tested servers exit. This does not +qualify process loss, cable loss, persistence or overnight operation. + +## Standalone published-base hardware checks + +These are separate from the private integration stack: parentb6d4cbaa/ac0f26eb +versus published code92bf7cb6/binary0ced6bf2. The three task source hashes match +the integration prototype; all290actual normalized compile commands match. +No private HC/cooperative/cache patches are present. Settings match the studies +above, including the common temporary844Edriver and crossed40+20Gb/s links. + +Four fixed starts (ARparent/candidate, MTPparent/candidate) complete24exact +canonical identities, eight clean host transport windows, final driver restore, +server exit and frozen/runtime/boot/topology/kernel checks. They retain +[24phase flags](standalone-flags.csv) and [six work changes](standalone-work.csv). +AR C2whole-wave rates56.343→56.221tok/s; MTP66.719→55.586tok/s. The latter has +~0.77srequest-wall slowdowns and changed proposals/acceptances/rounds. This is an +open regression signal, not a qualified penalty or something cleared by private- +stack confidence. ARsecond-request gap/snapshot flags are~26–27ms. One pair per +mode cannot establish direction, equivalence or a standalone5.4%gain. + +Candidate-only functional checks then pass independently in **both AR and MTP**: +23HTTPrequests per mode, six request-ID-matched server cancellations per mode, +actual width-two survivors and exact post-cancel replay. Both seeded keep/discard +continuations reuse18,461tokens and exactly reproduce continuation/third-turn +outputs. ARhas zero proposals; MTPdeep cases propose1/9tokens, with substantive +proposals also required on solo/survivor/replay requests. Both modes restore +approved drivers and pass cleanup/counter/kernel/inventory checks. These are +functional checks, not matched timing controls or process/cable-loss coverage. + +[Mode results](standalone-modes.json), [validation](standalone-modes-validation.json), +[source/build provenance](standalone-source.json) and +[functional results/validation](standalone-functional.json) are retained. +### Standalone adaptive-MTP follow-up: inconclusive + +All16predeclared starts/80canonical outputs pass,32host transport windows clean, +server exit/approved-driver restoration/frozen/boot/topology/kernel checks pass. +No exclusions, added starts or pooling with earlier studies. Geometric C2point +change+18.365%,paired-bootstrap95%[+0.670,+49.116]%,but predeclared sign-symmetry +p=.109375 and exact balanced-assignment p=.142857. Five pairs favor candidate, +three favor parent; the16.554sparent outlier remains. The approximate bootstrap +interval does not override the nonsignificant exact tests: no supported gain, +slowdown or equivalence. This does not transfer the integration ARgain. + +All55newphase flags across12requests and30changed-work comparisons remain. +No metric repeatedly exceeds every control by the unchanged margin; individual +flags remain unresolved. Repeated C1has identical122proposals/66acceptances/ +31rounds in all16starts but decode1.991–2.556s. Candidate3/4/5are slower than +paired parents, while parent6is also slow; unchanged work does not identify the +cause. C1secondary first/repeat changes+0.190/−5.398%,balanced p=.828571/.057143 +are exploratory. No blanket performance clearance. + +Same five-request prefix, explicit max7/min1, no profiler/adminsampler/priming. +Early pairs overlap documentation/git/status activity; its CPU/storage effect +is not assumed zero. Later arms were free of repository updates; desktop/ +physical writeback was not independently controlled. No exclusions for activity. +V1wrapper execute-permission failure before any model ran remains separate. + +[Every standalone pair](standalone-mtp-rates.csv), [all flags](standalone-mtp-flags.csv), +[work](standalone-mtp-work.csv), [ranges](standalone-mtp-ranges.csv), +[primary results](standalone-mtp-confidence.json), [C1secondary](standalone-mtp-C1.json), +[validation](standalone-mtp-validation.json) and the shared +[statistical calculation](mtp-confidence-statistics.py) are retained. + +![Every standalone MTP observation; exact tests inconclusive](standalone-mtp.png) + +### Separate path capture: genuine Corsair I/O tails + +One actual five-request candidate replay preserves exact outputs. The long C1 +slowdown does not recur, but three Corsair table waits62.285/76.995/32.377ms +contain198NVMecommands over10ms. Setup→CPU CQconsumption maxima62.134/76.801/ +32.143ms; IRQentry→CQ≤6.75µs, observed reader runnable delay≤33.179µs and block +completion→readreturn≤92.537µs. Command setup timestamps span0.234–0.357ms; CQconsumptions cluster +in bursts across16–22queues. Request pointer/CID, IRQ-derivedQID, active table +FD/read TID/bytes and completion before read return are checked. This is actual +kernel-command completion-path latency, not just mmap/application waiting. + +Both ordered engine batch durations track those waits. Their171.658mssum in a +3.834719swave would conditionally permit at most4.476%latency reduction if all +waits were critical/removable and work unchanged. GPU overlap is unmeasured; +actual benefit may be lower. No old16.5soutlier attribution or speedup claim. + +[Measured cohorts and explicit limits](standalone-io-cohorts.json) retain the +failed collector shutdown guard, one missing EVOsetup record (0.239msread), +and missing final transport snapshot. Peer9030commands fully link; native +peer loss/recursion counters zero. Independent perf-link missed counters were +not collected. Both drivers restore and model/tracer processes exit. Setup→CQ +is not pure device service or exact doorbell/DMA/interrupt-generation timing; +thermal/APST/HMB/IOMMU/firmware causality is unresolved. No normal-only trace +loop or system-policy change follows from this capture. + +## Review status + +Keep this follow-up a draft. The integration AR confidence endpoint supports +a gain with a first-request tradeoff; individual flags remain open. Standalone +AR/MTP functional checks pass and the bounded MTPfollow-up is complete but +inconclusive. Equal-work tails and per-request timing flags remain unresolved. No default deployment, +universal deadlock clearance or blanket speedup is claimed. Existing snapshot- +handoff PRs retain their own review state. + +## CPU reproduction + +With the project's CPU test dependencies available: + +```bash +cmake --preset cpu-test -B build-cpu +cmake --build build-cpu --target tp_control_test tp_executor_test tp_snapshot_gate_test text_model_runner_test text_generation_scheduler_test --parallel 4 +ctest --test-dir build-cpu --output-on-failure -R '^(tp_control_test|tp_executor_test|tp_snapshot_gate_test|text_model_runner_test|text_generation_scheduler_test)$' +c++ -std=c++20 -O1 -g -Wall -Wextra -Werror -fsanitize=address,undefined -pthread -I . tests/cli/tp_snapshot_gate_test.cpp -o /tmp/tp-snapshot-turn-test +timeout 20 /tmp/tp-snapshot-turn-test +``` + +Lab raw traces, per-request JSONL, exact frozen commands/settings, counter/kernel +windows and validators are preserved in `strix-dispatch-investigation` under +`hc-ar-snapshot-path-v1/v2`, `ar-snapshot-turn-trace-v1`, +`ar-snapshot-turn-pilot-v1`, `snapshot-turn-mtp-pilot-v1`, +`snapshot-turn-functional-v1`, and `snapshot-turn-mtp-fixed1-v1`. diff --git a/docs/patches/ar-snapshot-turn/ar-adaptive-work.csv b/docs/patches/ar-snapshot-turn/ar-adaptive-work.csv new file mode 100644 index 0000000000..b189a05650 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-adaptive-work.csv @@ -0,0 +1,5 @@ +control,candidate,case,repetition,index,metric,baseline,candidate_value +before-baseline,first-candidate,short-c2,1,0,physical_execution_width,1,2 +before-baseline,first-candidate,short-c2,1,1,physical_execution_width,1,2 +before-baseline,second-candidate,short-c2,1,0,physical_execution_width,1,2 +before-baseline,second-candidate,short-c2,1,1,physical_execution_width,1,2 diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-C1.json b/docs/patches/ar-snapshot-turn/ar-confidence-C1.json new file mode 100644 index 0000000000..7b2ccc606a --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-C1.json @@ -0,0 +1,22 @@ +{ + "C1_first": { + "latency_reduction_pct": 0.41388978159848655, + "bootstrap95_latency_reduction_pct": [ + 0.16232866215349917, + 0.6517622592482453 + ], + "signflip_p": 0.03125, + "balanced_p": 0.02857142857142857, + "scope": "Declared secondary C1 endpoint; exploratory inference, not a new primary or equivalence claim." + }, + "C1_repeat": { + "latency_reduction_pct": 0.12368874780889216, + "bootstrap95_latency_reduction_pct": [ + -0.21522998744023525, + 0.4261888574310535 + ], + "signflip_p": 0.53125, + "balanced_p": 0.5714285714285714, + "scope": "Declared secondary C1 endpoint; exploratory inference, not a new primary or equivalence claim." + } +} diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-flags.csv b/docs/patches/ar-snapshot-turn/ar-confidence-flags.csv new file mode 100644 index 0000000000..6a6cfb57e0 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-flags.csv @@ -0,0 +1,17 @@ +pair,case,repetition,index,metric,baseline_ms,candidate_ms,delta_ms +3,short-c2,1,0,server_max_inter_token_ms,97.157249,122.816071,25.658822 +3,short-c2,1,0,first_followup_content_gap_ms,96.988385,122.703594,25.715209 +3,short-c2,1,0,raw.max_inter_token_ms,97.157249,122.816071,25.658822 +5,short-c2,1,0,wall_ms,4061.7953920009313,4525.312606998341,463.5172149974096 +5,short-c2,1,0,client_event_inter_token_ms,29.805433574824924,33.18751494489119,3.382081370066267 +5,short-c2,1,0,decode_ms,3688.578219,4122.117913999998,433.53969499999766 +5,short-c2,1,0,server_inter_token_ms,29.80657606299212,33.18845240157481,3.3818763385826855 +5,short-c2,1,0,raw.decode_ms,3688.578219,4122.117913999998,433.53969499999766 +5,short-c2,1,0,raw.mean_inter_token_ms,29.80657606299212,33.18845240157481,3.3818763385826855 +5,short-c2,1,1,decode_ms,3680.3139739999992,4115.215289999999,434.90131599999995 +5,short-c2,1,1,raw.decode_ms,3680.3139739999992,4115.215289999999,434.90131599999995 +6,pp2048-tg128,1,0,first_followup_content_gap_ms,30.429948,33.582684,3.152736000000001 +8,short-c2,1,1,server_max_inter_token_ms,57.484447,85.858357,28.373909999999995 +8,short-c2,1,1,first_followup_content_gap_ms,57.508856,86.006922,28.498066 +8,short-c2,1,1,raw.cache_snapshot_ms,100.411001,129.725392,29.314391 +8,short-c2,1,1,raw.max_inter_token_ms,57.484447,85.858357,28.373909999999995 diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-ranges.csv b/docs/patches/ar-snapshot-turn/ar-confidence-ranges.csv new file mode 100644 index 0000000000..3b1f4c51f7 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-ranges.csv @@ -0,0 +1,17 @@ +case,repetition,index,metric,baseline_range_ms,candidate_range_ms,flagged_pairs,candidates_over_entire_baseline_range,classification +pp2048-tg128,1,0,first_followup_content_gap_ms,"[30.158007, 31.298233]","[30.201645, 33.582684]",[6],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,wall_ms,"[4061.7953920009313, 4542.632135999156]","[4483.973785001581, 4525.312606998341]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,client_event_inter_token_ms,"[29.805433574824924, 33.39200114173513]","[33.13624195274544, 33.31946067716106]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,decode_ms,"[3688.578219, 4145.507900999998]","[4112.8367800000005, 4138.123372000002]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,server_inter_token_ms,"[29.80657606299212, 33.38911020472441]","[33.13740963779527, 33.320145220472455]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,server_max_inter_token_ms,"[96.716623, 122.309584]","[93.637016, 122.816071]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,first_followup_content_gap_ms,"[96.604517, 122.192697]","[93.522919, 122.703594]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.decode_ms,"[3688.578219, 4145.507900999998]","[4112.8367800000005, 4138.123372000002]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.mean_inter_token_ms,"[29.80657606299212, 33.38911020472441]","[33.13740963779527, 33.320145220472455]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.max_inter_token_ms,"[96.716623, 122.309584]","[93.637016, 122.816071]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,decode_ms,"[3680.3139739999992, 4139.004495000004]","[4103.333453999997, 4132.427252000002]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,server_max_inter_token_ms,"[57.484447, 1908.522542]","[58.031132, 85.858357]",[8],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,first_followup_content_gap_ms,"[57.508856, 1908.56982]","[58.117049, 86.006922]",[8],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.cache_snapshot_ms,"[100.411001, 1951.819884]","[102.112851, 129.725392]",[8],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.decode_ms,"[3680.3139739999992, 4139.004495000004]","[4103.333453999997, 4132.427252000002]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.max_inter_token_ms,"[57.484447, 1908.522542]","[58.031132, 85.858357]",[8],0,Variable/overlapping or sparse; unresolved diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-rates.csv b/docs/patches/ar-snapshot-turn/ar-confidence-rates.csv new file mode 100644 index 0000000000..49450d777f --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-rates.csv @@ -0,0 +1,9 @@ +pair,order,baseline_C2_wave_seconds,baseline_C2_wave_tps,baseline_C1_first_tps,baseline_C1_repeat_tps,baseline_C2_0_wall_ms,baseline_C2_0_first_gap_ms,baseline_C2_0_max_gap_ms,baseline_C2_0_snapshot_ms,baseline_C2_0_width,baseline_C2_0_drafts,baseline_C2_0_accepted,baseline_C2_0_rounds,baseline_C2_1_wall_ms,baseline_C2_1_first_gap_ms,baseline_C2_1_max_gap_ms,baseline_C2_1_snapshot_ms,baseline_C2_1_width,baseline_C2_1_drafts,baseline_C2_1_accepted,baseline_C2_1_rounds,candidate_C2_wave_seconds,candidate_C2_wave_tps,candidate_C1_first_tps,candidate_C1_repeat_tps,candidate_C2_0_wall_ms,candidate_C2_0_first_gap_ms,candidate_C2_0_max_gap_ms,candidate_C2_0_snapshot_ms,candidate_C2_0_width,candidate_C2_0_drafts,candidate_C2_0_accepted,candidate_C2_0_rounds,candidate_C2_1_wall_ms,candidate_C2_1_first_gap_ms,candidate_C2_1_max_gap_ms,candidate_C2_1_snapshot_ms,candidate_C2_1_width,candidate_C2_1_drafts,candidate_C2_1_accepted,candidate_C2_1_rounds +1,BC,4.860231725000631,52.67238569781707,37.36844138040228,37.47339012494584,4364.878552998562,96.604517,96.716623,173.15322300000003,2,0,0,0,4849.698550002358,551.572368,551.600357,594.7287550000001,2,0,0,0,4.518833401001757,56.65178980558316,37.63063181197085,37.53522951593549,4492.690204002429,98.15029,97.943777,175.538683,2,0,0,0,4508.403933999944,82.941485,82.78681,126.079073,2,0,0,0 +2,CB,4.573575121998147,55.97371709686848,37.530823326205926,37.46212450333059,4521.579718999419,97.571018,97.13997,174.73755599999998,2,0,0,0,4563.094854998781,134.608528,134.696105,178.34943800000002,2,0,0,0,4.515915948999464,56.68838899818736,37.46565732072737,37.43989108731706,4515.915948999464,96.899788,97.017834,175.186362,2,0,0,0,4504.932018000545,83.412322,83.45946,128.18748,2,0,0,0 +3,BC,4.515369004999229,56.69525562951055,37.532508628731215,37.497967784362295,4515.090062999661,96.988385,97.157249,175.14986299999998,2,0,0,0,4504.927377998683,82.382232,82.339593,126.45916199999999,2,0,0,0,4.511608467997576,56.74251252427997,37.63225965473746,37.506862826523644,4511.608467997576,122.703594,122.816071,170.718706,2,0,0,0,4500.698805000866,58.117049,58.031132,102.112851,2,0,0,0 +4,BC,4.8262880020010925,53.04283538277375,37.19542749262912,37.23989156338097,4435.281114001555,98.032024,97.670674,175.455334,2,0,0,0,4815.9554220001155,475.501336,475.445398,519.673224,2,0,0,0,4.536346446002426,56.43307958226943,37.540917045634586,37.42901354064717,4510.562878000201,98.590286,98.666814,176.14529299999998,2,0,0,0,4525.888800002576,84.738202,84.733572,129.094684,2,0,0,0 +5,CB,5.910203034000006,43.31492480500117,37.51118758306314,37.50528617094266,4061.7953920009313,97.404763,97.511319,175.15955300000002,2,0,0,0,5899.713437996979,1908.56982,1908.522542,1951.819884,2,0,0,0,4.525312606998341,56.57067748294319,37.50789937936271,37.198796215746974,4525.312606998341,93.522919,93.637016,172.870113,2,0,0,0,4514.531980999891,83.189738,83.157069,127.476111,2,0,0,0 +6,BC,4.524912298002164,56.57568216582428,37.30583270246667,37.26647448147904,4524.679314999958,97.049141,97.126228,177.581106,2,0,0,0,4514.6066670022265,83.474288,83.461548,127.753399,2,0,0,0,4.530374054000276,56.50747530967217,37.45868854859338,37.558892551257614,4504.227688001265,97.244155,97.285214,174.081803,2,0,0,0,4519.847739000397,84.798767,84.066059,127.335463,2,0,0,0 +7,CB,4.542632135999156,56.35499251001811,37.25160471737547,37.26119341533881,4542.632135999156,97.021661,97.095389,174.27810499999998,2,0,0,0,4531.882339000731,82.904285,83.014362,126.430851,2,0,0,0,4.514436481000303,56.706966877796425,37.545771921797765,37.45943330256126,4514.0339030003815,96.914415,96.973223,174.242297,2,0,0,0,4503.89930700112,82.829167,82.795778,126.356232,2,0,0,0 +8,CB,4.517152370000986,56.67287242735718,37.36787189250652,37.53084361949188,4516.894437001611,122.192697,122.309584,169.832389,2,0,0,0,4506.330924999929,57.508856,57.484447,100.411001,2,0,0,0,4.51003347400183,56.76232814583676,37.523607363248026,37.47932947400627,4483.973785001581,98.519407,98.587075,173.891367,2,0,0,0,4499.484309999389,86.006922,85.858357,129.725392,2,0,0,0 diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-statistics.py b/docs/patches/ar-snapshot-turn/ar-confidence-statistics.py new file mode 100644 index 0000000000..e1655b3580 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-statistics.py @@ -0,0 +1,28 @@ +"""Paired log-ratio summaries; assumptions are part of the returned result.""" +import itertools +import math +import random +import statistics + +def summarize(logs,observed): + assert len(logs)==len(observed)==8 and sorted(observed)==[-1]*4+[1]*4 + mean=statistics.mean(logs) + null=[statistics.mean(d*s for d,s in zip(logs,signs))for signs in itertools.product((-1,1),repeat=8)] + p=sum(abs(x)>=abs(mean)-1e-12 for x in null)/len(null) + balanced=[] + for first_candidate in itertools.combinations(range(8),4): + selected=set(first_candidate) + balanced.append(statistics.mean(d*o*(1 if i in selected else-1)for i,(d,o)in enumerate(zip(logs,observed)))) + balanced_p=sum(abs(x)>=abs(mean)-1e-12 for x in balanced)/len(balanced) + rng=random.Random(2026103101) + boot=sorted(statistics.mean(rng.choices(logs,k=8))for _ in range(20000)) + ci=(boot[500],boot[19499]) + return dict(paired_log_ratios=logs,mean_log_ratio=mean, + wave_latency_reduction_pct=100*(1-math.exp(-mean)), + paired_geometric_throughput_increase_pct=100*math.expm1(mean), + bootstrap95_latency_reduction_pct=[100*(1-math.exp(-v))for v in ci], + bootstrap95_throughput_increase_pct=[100*math.expm1(v)for v in ci], + predeclared_two_sided_signflip_p=p, + signflip_assumption='Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.', + balanced_assignment_sensitivity_p=balanced_p,balanced_assignments=70, + positive_pairs=sum(x>0 for x in logs),negative_pairs=sum(x<0 for x in logs)) diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-validation.json b/docs/patches/ar-snapshot-turn/ar-confidence-validation.json new file mode 100644 index 0000000000..0867bac9e9 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-validation.json @@ -0,0 +1,13 @@ +{ + "80_canonical_identities_exact": true, + "frozen_harness_hashes_unchanged": true, + "rank_binary_and_serving_settings_match": true, + "32_transport_windows_zero_checked_errors": true, + "all_recorded_server_PIDs_exited": true, + "both_approved_drivers_restored_idle_four_rails": true, + "boot_flags_and_topology_unchanged": true, + "checked_kernel_fault_patterns_absent": true, + "strict_phase_flags": 16, + "adaptive_work_comparisons": 0, + "scope": "Eight balanced-order AR pairs; all per-request flags/work differences retained independently of primary endpoint. No significance, cache/error-path qualification or default adoption inferred." +} diff --git a/docs/patches/ar-snapshot-turn/ar-confidence-work.csv b/docs/patches/ar-snapshot-turn/ar-confidence-work.csv new file mode 100644 index 0000000000..13c024e8a9 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence-work.csv @@ -0,0 +1 @@ +no_rows diff --git a/docs/patches/ar-snapshot-turn/ar-confidence.json b/docs/patches/ar-snapshot-turn/ar-confidence.json new file mode 100644 index 0000000000..9aeb15160e --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence.json @@ -0,0 +1,893 @@ +{ + "pairs": 8, + "starts": 16, + "requests": 80, + "identities_match": true, + "primary": { + "paired_log_ratios": [ + 0.07283225340918734, + 0.012687167184206516, + 0.0008331774905709426, + 0.061955702094270156, + 0.26699352595743897, + -0.0012063134059212236, + 0.006226241022866625, + 0.0015772130092200057 + ], + "mean_log_ratio": 0.05273737084522991, + "wave_latency_reduction_pct": 5.137088256694322, + "paired_geometric_throughput_increase_pct": 5.415275751386409, + "bootstrap95_latency_reduction_pct": [ + 0.8784947022840495, + 11.224748461525746 + ], + "bootstrap95_throughput_increase_pct": [ + 0.8862806306718661, + 12.644006372272642 + ], + "predeclared_two_sided_signflip_p": 0.0234375, + "signflip_assumption": "Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.", + "balanced_assignment_sensitivity_p": 0.02857142857142857, + "balanced_assignments": 70, + "positive_pairs": 7, + "negative_pairs": 1 + }, + "rates": [ + { + "pair": 1, + "order": "BC", + "baseline_C2_wave_seconds": 4.860231725000631, + "baseline_C2_wave_tps": 52.67238569781707, + "baseline_C1_first_tps": 37.36844138040228, + "baseline_C1_repeat_tps": 37.47339012494584, + "baseline_C2_0_wall_ms": 4364.878552998562, + "baseline_C2_0_first_gap_ms": 96.604517, + "baseline_C2_0_max_gap_ms": 96.716623, + "baseline_C2_0_snapshot_ms": 173.15322300000003, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4849.698550002358, + "baseline_C2_1_first_gap_ms": 551.572368, + "baseline_C2_1_max_gap_ms": 551.600357, + "baseline_C2_1_snapshot_ms": 594.7287550000001, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.518833401001757, + "candidate_C2_wave_tps": 56.65178980558316, + "candidate_C1_first_tps": 37.63063181197085, + "candidate_C1_repeat_tps": 37.53522951593549, + "candidate_C2_0_wall_ms": 4492.690204002429, + "candidate_C2_0_first_gap_ms": 98.15029, + "candidate_C2_0_max_gap_ms": 97.943777, + "candidate_C2_0_snapshot_ms": 175.538683, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4508.403933999944, + "candidate_C2_1_first_gap_ms": 82.941485, + "candidate_C2_1_max_gap_ms": 82.78681, + "candidate_C2_1_snapshot_ms": 126.079073, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 2, + "order": "CB", + "baseline_C2_wave_seconds": 4.573575121998147, + "baseline_C2_wave_tps": 55.97371709686848, + "baseline_C1_first_tps": 37.530823326205926, + "baseline_C1_repeat_tps": 37.46212450333059, + "baseline_C2_0_wall_ms": 4521.579718999419, + "baseline_C2_0_first_gap_ms": 97.571018, + "baseline_C2_0_max_gap_ms": 97.13997, + "baseline_C2_0_snapshot_ms": 174.73755599999998, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4563.094854998781, + "baseline_C2_1_first_gap_ms": 134.608528, + "baseline_C2_1_max_gap_ms": 134.696105, + "baseline_C2_1_snapshot_ms": 178.34943800000002, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.515915948999464, + "candidate_C2_wave_tps": 56.68838899818736, + "candidate_C1_first_tps": 37.46565732072737, + "candidate_C1_repeat_tps": 37.43989108731706, + "candidate_C2_0_wall_ms": 4515.915948999464, + "candidate_C2_0_first_gap_ms": 96.899788, + "candidate_C2_0_max_gap_ms": 97.017834, + "candidate_C2_0_snapshot_ms": 175.186362, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4504.932018000545, + "candidate_C2_1_first_gap_ms": 83.412322, + "candidate_C2_1_max_gap_ms": 83.45946, + "candidate_C2_1_snapshot_ms": 128.18748, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 3, + "order": "BC", + "baseline_C2_wave_seconds": 4.515369004999229, + "baseline_C2_wave_tps": 56.69525562951055, + "baseline_C1_first_tps": 37.532508628731215, + "baseline_C1_repeat_tps": 37.497967784362295, + "baseline_C2_0_wall_ms": 4515.090062999661, + "baseline_C2_0_first_gap_ms": 96.988385, + "baseline_C2_0_max_gap_ms": 97.157249, + "baseline_C2_0_snapshot_ms": 175.14986299999998, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4504.927377998683, + "baseline_C2_1_first_gap_ms": 82.382232, + "baseline_C2_1_max_gap_ms": 82.339593, + "baseline_C2_1_snapshot_ms": 126.45916199999999, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.511608467997576, + "candidate_C2_wave_tps": 56.74251252427997, + "candidate_C1_first_tps": 37.63225965473746, + "candidate_C1_repeat_tps": 37.506862826523644, + "candidate_C2_0_wall_ms": 4511.608467997576, + "candidate_C2_0_first_gap_ms": 122.703594, + "candidate_C2_0_max_gap_ms": 122.816071, + "candidate_C2_0_snapshot_ms": 170.718706, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4500.698805000866, + "candidate_C2_1_first_gap_ms": 58.117049, + "candidate_C2_1_max_gap_ms": 58.031132, + "candidate_C2_1_snapshot_ms": 102.112851, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 4, + "order": "BC", + "baseline_C2_wave_seconds": 4.8262880020010925, + "baseline_C2_wave_tps": 53.04283538277375, + "baseline_C1_first_tps": 37.19542749262912, + "baseline_C1_repeat_tps": 37.23989156338097, + "baseline_C2_0_wall_ms": 4435.281114001555, + "baseline_C2_0_first_gap_ms": 98.032024, + "baseline_C2_0_max_gap_ms": 97.670674, + "baseline_C2_0_snapshot_ms": 175.455334, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4815.9554220001155, + "baseline_C2_1_first_gap_ms": 475.501336, + "baseline_C2_1_max_gap_ms": 475.445398, + "baseline_C2_1_snapshot_ms": 519.673224, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.536346446002426, + "candidate_C2_wave_tps": 56.43307958226943, + "candidate_C1_first_tps": 37.540917045634586, + "candidate_C1_repeat_tps": 37.42901354064717, + "candidate_C2_0_wall_ms": 4510.562878000201, + "candidate_C2_0_first_gap_ms": 98.590286, + "candidate_C2_0_max_gap_ms": 98.666814, + "candidate_C2_0_snapshot_ms": 176.14529299999998, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4525.888800002576, + "candidate_C2_1_first_gap_ms": 84.738202, + "candidate_C2_1_max_gap_ms": 84.733572, + "candidate_C2_1_snapshot_ms": 129.094684, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 5, + "order": "CB", + "baseline_C2_wave_seconds": 5.910203034000006, + "baseline_C2_wave_tps": 43.31492480500117, + "baseline_C1_first_tps": 37.51118758306314, + "baseline_C1_repeat_tps": 37.50528617094266, + "baseline_C2_0_wall_ms": 4061.7953920009313, + "baseline_C2_0_first_gap_ms": 97.404763, + "baseline_C2_0_max_gap_ms": 97.511319, + "baseline_C2_0_snapshot_ms": 175.15955300000002, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 5899.713437996979, + "baseline_C2_1_first_gap_ms": 1908.56982, + "baseline_C2_1_max_gap_ms": 1908.522542, + "baseline_C2_1_snapshot_ms": 1951.819884, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.525312606998341, + "candidate_C2_wave_tps": 56.57067748294319, + "candidate_C1_first_tps": 37.50789937936271, + "candidate_C1_repeat_tps": 37.198796215746974, + "candidate_C2_0_wall_ms": 4525.312606998341, + "candidate_C2_0_first_gap_ms": 93.522919, + "candidate_C2_0_max_gap_ms": 93.637016, + "candidate_C2_0_snapshot_ms": 172.870113, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4514.531980999891, + "candidate_C2_1_first_gap_ms": 83.189738, + "candidate_C2_1_max_gap_ms": 83.157069, + "candidate_C2_1_snapshot_ms": 127.476111, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 6, + "order": "BC", + "baseline_C2_wave_seconds": 4.524912298002164, + "baseline_C2_wave_tps": 56.57568216582428, + "baseline_C1_first_tps": 37.30583270246667, + "baseline_C1_repeat_tps": 37.26647448147904, + "baseline_C2_0_wall_ms": 4524.679314999958, + "baseline_C2_0_first_gap_ms": 97.049141, + "baseline_C2_0_max_gap_ms": 97.126228, + "baseline_C2_0_snapshot_ms": 177.581106, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4514.6066670022265, + "baseline_C2_1_first_gap_ms": 83.474288, + "baseline_C2_1_max_gap_ms": 83.461548, + "baseline_C2_1_snapshot_ms": 127.753399, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.530374054000276, + "candidate_C2_wave_tps": 56.50747530967217, + "candidate_C1_first_tps": 37.45868854859338, + "candidate_C1_repeat_tps": 37.558892551257614, + "candidate_C2_0_wall_ms": 4504.227688001265, + "candidate_C2_0_first_gap_ms": 97.244155, + "candidate_C2_0_max_gap_ms": 97.285214, + "candidate_C2_0_snapshot_ms": 174.081803, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4519.847739000397, + "candidate_C2_1_first_gap_ms": 84.798767, + "candidate_C2_1_max_gap_ms": 84.066059, + "candidate_C2_1_snapshot_ms": 127.335463, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 7, + "order": "CB", + "baseline_C2_wave_seconds": 4.542632135999156, + "baseline_C2_wave_tps": 56.35499251001811, + "baseline_C1_first_tps": 37.25160471737547, + "baseline_C1_repeat_tps": 37.26119341533881, + "baseline_C2_0_wall_ms": 4542.632135999156, + "baseline_C2_0_first_gap_ms": 97.021661, + "baseline_C2_0_max_gap_ms": 97.095389, + "baseline_C2_0_snapshot_ms": 174.27810499999998, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4531.882339000731, + "baseline_C2_1_first_gap_ms": 82.904285, + "baseline_C2_1_max_gap_ms": 83.014362, + "baseline_C2_1_snapshot_ms": 126.430851, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.514436481000303, + "candidate_C2_wave_tps": 56.706966877796425, + "candidate_C1_first_tps": 37.545771921797765, + "candidate_C1_repeat_tps": 37.45943330256126, + "candidate_C2_0_wall_ms": 4514.0339030003815, + "candidate_C2_0_first_gap_ms": 96.914415, + "candidate_C2_0_max_gap_ms": 96.973223, + "candidate_C2_0_snapshot_ms": 174.242297, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4503.89930700112, + "candidate_C2_1_first_gap_ms": 82.829167, + "candidate_C2_1_max_gap_ms": 82.795778, + "candidate_C2_1_snapshot_ms": 126.356232, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + }, + { + "pair": 8, + "order": "CB", + "baseline_C2_wave_seconds": 4.517152370000986, + "baseline_C2_wave_tps": 56.67287242735718, + "baseline_C1_first_tps": 37.36787189250652, + "baseline_C1_repeat_tps": 37.53084361949188, + "baseline_C2_0_wall_ms": 4516.894437001611, + "baseline_C2_0_first_gap_ms": 122.192697, + "baseline_C2_0_max_gap_ms": 122.309584, + "baseline_C2_0_snapshot_ms": 169.832389, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 0, + "baseline_C2_0_accepted": 0, + "baseline_C2_0_rounds": 0, + "baseline_C2_1_wall_ms": 4506.330924999929, + "baseline_C2_1_first_gap_ms": 57.508856, + "baseline_C2_1_max_gap_ms": 57.484447, + "baseline_C2_1_snapshot_ms": 100.411001, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 0, + "baseline_C2_1_accepted": 0, + "baseline_C2_1_rounds": 0, + "candidate_C2_wave_seconds": 4.51003347400183, + "candidate_C2_wave_tps": 56.76232814583676, + "candidate_C1_first_tps": 37.523607363248026, + "candidate_C1_repeat_tps": 37.47932947400627, + "candidate_C2_0_wall_ms": 4483.973785001581, + "candidate_C2_0_first_gap_ms": 98.519407, + "candidate_C2_0_max_gap_ms": 98.587075, + "candidate_C2_0_snapshot_ms": 173.891367, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 0, + "candidate_C2_0_accepted": 0, + "candidate_C2_0_rounds": 0, + "candidate_C2_1_wall_ms": 4499.484309999389, + "candidate_C2_1_first_gap_ms": 86.006922, + "candidate_C2_1_max_gap_ms": 85.858357, + "candidate_C2_1_snapshot_ms": 129.725392, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 0, + "candidate_C2_1_accepted": 0, + "candidate_C2_1_rounds": 0 + } + ], + "strict_flags": [ + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 97.157249, + "candidate_ms": 122.816071, + "delta_ms": 25.658822 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 96.988385, + "candidate_ms": 122.703594, + "delta_ms": 25.715209 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 97.157249, + "candidate_ms": 122.816071, + "delta_ms": 25.658822 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "wall_ms", + "baseline_ms": 4061.7953920009313, + "candidate_ms": 4525.312606998341, + "delta_ms": 463.5172149974096 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "client_event_inter_token_ms", + "baseline_ms": 29.805433574824924, + "candidate_ms": 33.18751494489119, + "delta_ms": 3.382081370066267 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "decode_ms", + "baseline_ms": 3688.578219, + "candidate_ms": 4122.117913999998, + "delta_ms": 433.53969499999766 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_inter_token_ms", + "baseline_ms": 29.80657606299212, + "candidate_ms": 33.18845240157481, + "delta_ms": 3.3818763385826855 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.decode_ms", + "baseline_ms": 3688.578219, + "candidate_ms": 4122.117913999998, + "delta_ms": 433.53969499999766 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.mean_inter_token_ms", + "baseline_ms": 29.80657606299212, + "candidate_ms": 33.18845240157481, + "delta_ms": 3.3818763385826855 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_ms": 3680.3139739999992, + "candidate_ms": 4115.215289999999, + "delta_ms": 434.90131599999995 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_ms": 3680.3139739999992, + "candidate_ms": 4115.215289999999, + "delta_ms": 434.90131599999995 + }, + { + "pair": 6, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 30.429948, + "candidate_ms": 33.582684, + "delta_ms": 3.152736000000001 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_ms": 57.484447, + "candidate_ms": 85.858357, + "delta_ms": 28.373909999999995 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 57.508856, + "candidate_ms": 86.006922, + "delta_ms": 28.498066 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 100.411001, + "candidate_ms": 129.725392, + "delta_ms": 29.314391 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 57.484447, + "candidate_ms": 85.858357, + "delta_ms": 28.373909999999995 + } + ], + "adaptive_work_differences": [], + "per_request_ranges": [ + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_range_ms": [ + 30.158007, + 31.298233 + ], + "candidate_range_ms": [ + 30.201645, + 33.582684 + ], + "flagged_pairs": [ + 6 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "wall_ms", + "baseline_range_ms": [ + 4061.7953920009313, + 4542.632135999156 + ], + "candidate_range_ms": [ + 4483.973785001581, + 4525.312606998341 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "client_event_inter_token_ms", + "baseline_range_ms": [ + 29.805433574824924, + 33.39200114173513 + ], + "candidate_range_ms": [ + 33.13624195274544, + 33.31946067716106 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "decode_ms", + "baseline_range_ms": [ + 3688.578219, + 4145.507900999998 + ], + "candidate_range_ms": [ + 4112.8367800000005, + 4138.123372000002 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_inter_token_ms", + "baseline_range_ms": [ + 29.80657606299212, + 33.38911020472441 + ], + "candidate_range_ms": [ + 33.13740963779527, + 33.320145220472455 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_range_ms": [ + 96.716623, + 122.309584 + ], + "candidate_range_ms": [ + 93.637016, + 122.816071 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_range_ms": [ + 96.604517, + 122.192697 + ], + "candidate_range_ms": [ + 93.522919, + 122.703594 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.decode_ms", + "baseline_range_ms": [ + 3688.578219, + 4145.507900999998 + ], + "candidate_range_ms": [ + 4112.8367800000005, + 4138.123372000002 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.mean_inter_token_ms", + "baseline_range_ms": [ + 29.80657606299212, + 33.38911020472441 + ], + "candidate_range_ms": [ + 33.13740963779527, + 33.320145220472455 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_range_ms": [ + 96.716623, + 122.309584 + ], + "candidate_range_ms": [ + 93.637016, + 122.816071 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_range_ms": [ + 3680.3139739999992, + 4139.004495000004 + ], + "candidate_range_ms": [ + 4103.333453999997, + 4132.427252000002 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_range_ms": [ + 57.484447, + 1908.522542 + ], + "candidate_range_ms": [ + 58.031132, + 85.858357 + ], + "flagged_pairs": [ + 8 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_range_ms": [ + 57.508856, + 1908.56982 + ], + "candidate_range_ms": [ + 58.117049, + 86.006922 + ], + "flagged_pairs": [ + 8 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_range_ms": [ + 100.411001, + 1951.819884 + ], + "candidate_range_ms": [ + 102.112851, + 129.725392 + ], + "flagged_pairs": [ + 8 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_range_ms": [ + 3680.3139739999992, + 4139.004495000004 + ], + "candidate_range_ms": [ + 4103.333453999997, + 4132.427252000002 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_range_ms": [ + 57.484447, + 1908.522542 + ], + "candidate_range_ms": [ + 58.031132, + 85.858357 + ], + "flagged_pairs": [ + 8 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + } + ], + "safety": { + "pair01-baseline/rank0": {}, + "pair01-baseline/rank1": {}, + "pair01-candidate/rank0": {}, + "pair01-candidate/rank1": {}, + "pair02-candidate/rank0": {}, + "pair02-candidate/rank1": {}, + "pair02-baseline/rank0": {}, + "pair02-baseline/rank1": {}, + "pair03-baseline/rank0": {}, + "pair03-baseline/rank1": {}, + "pair03-candidate/rank0": {}, + "pair03-candidate/rank1": {}, + "pair04-baseline/rank0": {}, + "pair04-baseline/rank1": {}, + "pair04-candidate/rank0": {}, + "pair04-candidate/rank1": {}, + "pair05-candidate/rank0": {}, + "pair05-candidate/rank1": {}, + "pair05-baseline/rank0": {}, + "pair05-baseline/rank1": {}, + "pair06-baseline/rank0": {}, + "pair06-baseline/rank1": {}, + "pair06-candidate/rank0": {}, + "pair06-candidate/rank1": {}, + "pair07-candidate/rank0": {}, + "pair07-candidate/rank1": {}, + "pair07-baseline/rank0": {}, + "pair07-baseline/rank1": {}, + "pair08-candidate/rank0": {}, + "pair08-candidate/rank1": {}, + "pair08-baseline/rank0": {}, + "pair08-baseline/rank1": {} + }, + "scope": "All predeclared fresh-process pairs; no exclusions/added starts. Aggregate AR effect is not pure dispatch cost, equivalence, phase-gate clearance, independent kernel trials or default adoption. Prior studies separate. No profiler/adminsampler/fulltablewarming." +} diff --git a/docs/patches/ar-snapshot-turn/ar-confidence.png b/docs/patches/ar-snapshot-turn/ar-confidence.png new file mode 100644 index 0000000000..9d0a8db38b Binary files /dev/null and b/docs/patches/ar-snapshot-turn/ar-confidence.png differ diff --git a/docs/patches/ar-snapshot-turn/ar-confidence.svg b/docs/patches/ar-snapshot-turn/ar-confidence.svg new file mode 100644 index 0000000000..8ca1fcbedd --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-confidence.svg @@ -0,0 +1,2478 @@ + + + + + + + + 2026-10-31T03:47:26.436374 + image/svg+xml + + + Matplotlib v3.11.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/patches/ar-snapshot-turn/ar-phase-flags.csv b/docs/patches/ar-snapshot-turn/ar-phase-flags.csv new file mode 100644 index 0000000000..87c481700f --- /dev/null +++ b/docs/patches/ar-snapshot-turn/ar-phase-flags.csv @@ -0,0 +1,23 @@ +control,candidate,case,repetition,index,metric,baseline_ms,candidate_ms,delta_ms +before-baseline,first-candidate,short-c2,1,0,wall_ms,3662.0180160007294,4511.760362000132,849.7423459994025 +before-baseline,first-candidate,short-c2,1,0,client_event_inter_token_ms,26.62965079527896,33.33351029920498,6.703859503926022 +before-baseline,first-candidate,short-c2,1,0,decode_ms,3311.8746920000026,4134.642457999998,822.7677659999958 +before-baseline,first-candidate,short-c2,1,0,server_inter_token_ms,26.630393141732284,33.33425051968503,6.703857377952744 +before-baseline,first-candidate,short-c2,1,0,raw.decode_ms,3311.8746920000026,4134.642457999998,822.7677659999958 +before-baseline,first-candidate,short-c2,1,0,raw.mean_inter_token_ms,26.630393141732284,33.33425051968503,6.703857377952744 +before-baseline,first-candidate,short-c2,1,1,decode_ms,3303.6317189999995,4127.808977999998,824.1772589999987 +before-baseline,first-candidate,short-c2,1,1,raw.decode_ms,3303.6317189999995,4127.808977999998,824.1772589999987 +before-baseline,second-candidate,short-c2,1,0,wall_ms,3662.0180160007294,4528.952755999853,866.9347399991238 +before-baseline,second-candidate,short-c2,1,0,client_event_inter_token_ms,26.62965079527896,33.25018673228807,6.620535937009112 +before-baseline,second-candidate,short-c2,1,0,decode_ms,3311.8746920000026,4122.292511000001,810.417818999998 +before-baseline,second-candidate,short-c2,1,0,server_inter_token_ms,26.630393141732284,33.25073246456692,6.6203393228346386 +before-baseline,second-candidate,short-c2,1,0,raw.decode_ms,3311.8746920000026,4122.292511000001,810.417818999998 +before-baseline,second-candidate,short-c2,1,0,raw.mean_inter_token_ms,26.630393141732284,33.25073246456692,6.6203393228346386 +before-baseline,second-candidate,short-c2,1,1,decode_ms,3303.6317189999995,4114.564346999999,810.9326279999991 +before-baseline,second-candidate,short-c2,1,1,raw.decode_ms,3303.6317189999995,4114.564346999999,810.9326279999991 +after-baseline,second-candidate,warmup,0,0,wall_ms,358.88545099987823,380.507583000508,21.62213200062979 +after-baseline,second-candidate,warmup,0,0,client_ttft_ms,167.18917799880728,190.62514600045688,23.4359680016496 +after-baseline,second-candidate,warmup,0,0,prefill_ms,159.11864,182.411161,23.292520999999994 +after-baseline,second-candidate,warmup,0,0,server_ttft_ms,166.76835,190.054502,23.286152000000016 +after-baseline,second-candidate,warmup,0,0,raw.prefill_ms,159.11864,182.411161,23.292520999999994 +after-baseline,second-candidate,warmup,0,0,raw.ttft_ms,166.76835,190.054502,23.286152000000016 diff --git a/docs/patches/ar-snapshot-turn/mtp-adaptive-work.csv b/docs/patches/ar-snapshot-turn/mtp-adaptive-work.csv new file mode 100644 index 0000000000..2e94492b50 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-adaptive-work.csv @@ -0,0 +1,24 @@ +control,candidate,case,repetition,index,metric,baseline,candidate_value +before-baseline,first-candidate,short-c2,1,0,draft_tokens,131,134 +before-baseline,first-candidate,short-c2,1,0,draft_accepted_tokens,65,59 +before-baseline,first-candidate,short-c2,1,0,raw.draft_rounds,48,51 +before-baseline,first-candidate,short-c2,1,1,draft_tokens,131,129 +before-baseline,first-candidate,short-c2,1,1,draft_accepted_tokens,76,74 +before-baseline,second-candidate,short-c2,1,0,draft_tokens,131,88 +before-baseline,second-candidate,short-c2,1,0,draft_accepted_tokens,65,60 +before-baseline,second-candidate,short-c2,1,0,raw.draft_rounds,48,63 +before-baseline,second-candidate,short-c2,1,1,draft_tokens,131,88 +before-baseline,second-candidate,short-c2,1,1,draft_accepted_tokens,76,61 +before-baseline,second-candidate,short-c2,1,1,raw.draft_rounds,47,62 +after-baseline,first-candidate,short-c2,1,0,draft_tokens,113,134 +after-baseline,first-candidate,short-c2,1,0,draft_accepted_tokens,56,59 +after-baseline,first-candidate,short-c2,1,0,raw.draft_rounds,54,51 +after-baseline,first-candidate,short-c2,1,1,draft_tokens,113,129 +after-baseline,first-candidate,short-c2,1,1,draft_accepted_tokens,65,74 +after-baseline,first-candidate,short-c2,1,1,raw.draft_rounds,53,47 +after-baseline,second-candidate,short-c2,1,0,draft_tokens,113,88 +after-baseline,second-candidate,short-c2,1,0,draft_accepted_tokens,56,60 +after-baseline,second-candidate,short-c2,1,0,raw.draft_rounds,54,63 +after-baseline,second-candidate,short-c2,1,1,draft_tokens,113,88 +after-baseline,second-candidate,short-c2,1,1,draft_accepted_tokens,65,61 +after-baseline,second-candidate,short-c2,1,1,raw.draft_rounds,53,62 diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence-flags.csv b/docs/patches/ar-snapshot-turn/mtp-confidence-flags.csv new file mode 100644 index 0000000000..e2a861d245 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence-flags.csv @@ -0,0 +1,15 @@ +pair,case,repetition,index,metric,baseline_ms,candidate_ms,delta_ms +1,short-c2,1,1,decode_ms,2974.684798999999,3182.012736,207.32793700000093 +1,short-c2,1,1,raw.decode_ms,2974.684798999999,3182.012736,207.32793700000093 +2,short-c2,1,1,decode_ms,2961.853602,3120.991559000001,159.13795700000082 +2,short-c2,1,1,raw.decode_ms,2961.853602,3120.991559000001,159.13795700000082 +4,short-c2,1,0,decode_ms,3223.304894999999,3394.3003229999995,170.99542800000063 +4,short-c2,1,0,raw.decode_ms,3223.304894999999,3394.3003229999995,170.99542800000063 +5,warmup,0,0,wall_ms,253.87530100124422,288.1654829980107,34.29018199676648 +5,warmup,0,0,client_ttft_ms,157.6712440000847,191.2740070001746,33.60276300008991 +5,warmup,0,0,prefill_ms,149.652006,182.951637,33.299631000000005 +5,warmup,0,0,server_ttft_ms,157.301926,190.556499,33.25457299999999 +5,warmup,0,0,raw.prefill_ms,149.652006,182.951637,33.299631000000005 +5,warmup,0,0,raw.ttft_ms,157.301926,190.556499,33.25457299999999 +7,short-c2,1,1,decode_ms,2935.38395,3135.1075200000005,199.72357000000056 +7,short-c2,1,1,raw.decode_ms,2935.38395,3135.1075200000005,199.72357000000056 diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence-ranges.csv b/docs/patches/ar-snapshot-turn/mtp-confidence-ranges.csv new file mode 100644 index 0000000000..eb0d147c16 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence-ranges.csv @@ -0,0 +1,11 @@ +case,repetition,index,metric,baseline_range_ms,candidate_range_ms,flagged_pairs,candidates_over_entire_baseline_range,classification +warmup,0,0,wall_ms,"[253.77793399820803, 289.56599199955235]","[252.8136529981566, 288.6087100014265]",[5],0,Variable/overlapping or sparse; unresolved +warmup,0,0,client_ttft_ms,"[157.6712440000847, 193.16504100061138]","[157.10365199993248, 192.53124899842078]",[5],0,Variable/overlapping or sparse; unresolved +warmup,0,0,prefill_ms,"[149.61222600000002, 184.069523]","[149.052183, 184.38419499999998]",[5],0,Variable/overlapping or sparse; unresolved +warmup,0,0,server_ttft_ms,"[157.177069, 192.50234]","[156.674235, 192.019855]",[5],0,Variable/overlapping or sparse; unresolved +warmup,0,0,raw.prefill_ms,"[149.61222600000002, 184.069523]","[149.052183, 184.38419499999998]",[5],0,Variable/overlapping or sparse; unresolved +warmup,0,0,raw.ttft_ms,"[157.177069, 192.50234]","[156.674235, 192.019855]",[5],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,decode_ms,"[3223.304894999999, 3451.1019169999995]","[3207.3831059999993, 3425.401719]",[4],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.decode_ms,"[3223.304894999999, 3451.1019169999995]","[3207.3831059999993, 3425.401719]",[4],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,decode_ms,"[2900.129140999999, 3138.2238359999997]","[2911.2960200000007, 3182.012736]","[1, 2, 7]",0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.decode_ms,"[2900.129140999999, 3138.2238359999997]","[2911.2960200000007, 3182.012736]","[1, 2, 7]",0,Variable/overlapping or sparse; unresolved diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence-rates.csv b/docs/patches/ar-snapshot-turn/mtp-confidence-rates.csv new file mode 100644 index 0000000000..3261b58dc8 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence-rates.csv @@ -0,0 +1,9 @@ +pair,order,baseline_C2_wave_seconds,baseline_C2_wave_tps,baseline_C1_first_tps,baseline_C1_repeat_tps,baseline_C2_0_wall_ms,baseline_C2_0_first_gap_ms,baseline_C2_0_max_gap_ms,baseline_C2_0_snapshot_ms,baseline_C2_0_width,baseline_C2_0_drafts,baseline_C2_0_accepted,baseline_C2_0_rounds,baseline_C2_1_wall_ms,baseline_C2_1_first_gap_ms,baseline_C2_1_max_gap_ms,baseline_C2_1_snapshot_ms,baseline_C2_1_width,baseline_C2_1_drafts,baseline_C2_1_accepted,baseline_C2_1_rounds,candidate_C2_wave_seconds,candidate_C2_wave_tps,candidate_C1_first_tps,candidate_C1_repeat_tps,candidate_C2_0_wall_ms,candidate_C2_0_first_gap_ms,candidate_C2_0_max_gap_ms,candidate_C2_0_snapshot_ms,candidate_C2_0_width,candidate_C2_0_drafts,candidate_C2_0_accepted,candidate_C2_0_rounds,candidate_C2_1_wall_ms,candidate_C2_1_first_gap_ms,candidate_C2_1_max_gap_ms,candidate_C2_1_snapshot_ms,candidate_C2_1_width,candidate_C2_1_drafts,candidate_C2_1_accepted,candidate_C2_1_rounds +1,CB,3.81730212399998,67.06307011710906,56.67405446569826,56.612185055311286,3817.30212399998,117.055032,117.09877,175.994705,2,118,56,53,3745.787948002544,132.508399,132.168349,157.642475,2,117,72,51,3.6512616610016266,70.11275108937912,56.531459389695875,56.34158296264435,3651.2616610016266,117.201527,117.240876,176.54848900000002,2,94,59,63,3640.470483998797,132.540288,132.607156,157.925427,2,94,61,62 +2,CB,3.772678511999402,67.85629869753413,56.87094305780318,56.41585237123718,3772.517877001519,116.46932,116.517308,175.610256,2,116,57,52,3762.2213149988966,132.583066,132.287455,157.80538,2,116,72,51,3.6128148329989926,70.85887648094457,56.856613378169726,56.59933083512736,3612.652267998783,118.087711,117.835608,175.558518,2,80,55,64,3602.259408999089,134.210928,133.544398,159.343784,2,80,58,63 +3,BC,3.8090617710004153,67.20815134818986,56.70769254774073,56.69480971600286,3809.0617710004153,116.607325,116.728092,175.871669,2,121,56,53,3798.442609000631,132.034123,132.006543,157.437872,2,118,74,49,3.8204972490020737,67.00698451408859,56.70744521969583,56.51987210443256,3820.286145000864,116.522888,116.618915,175.700224,2,121,56,53,3810.0544810004067,132.311134,132.301915,157.47007000000002,2,118,74,49 +4,BC,3.617669636998471,70.76378599688819,56.79251276179402,56.6434665721339,3617.4951430002693,118.192898,118.253525,175.622817,2,81,55,64,3607.1962709975196,134.1304,133.896857,159.42945200000003,2,81,58,63,3.7896225139993476,67.55290244722356,56.68124624859499,56.524662388496054,3789.6225139993476,117.232137,117.341373,175.631836,2,115,57,54,3566.823301000113,133.543108,133.545088,158.80411099999998,2,115,70,53 +5,BC,3.6261913609996554,70.59748769834002,56.62467618370895,56.64324990102934,3625.6495469970105,116.403071,116.456719,175.627477,2,80,55,64,3615.683706000709,132.063652,132.081862,157.35463399999998,2,80,58,63,3.602882300001511,71.05422233745816,56.67019675185189,56.6266882848721,3602.882300001511,118.808349,118.197698,177.35290400000002,2,106,63,60,3591.9072599972424,132.45011,132.026623,157.56106699999998,2,106,64,59 +6,CB,3.6423588979996566,70.28412278114394,56.771250622697096,56.53698426189327,3642.063445997337,122.721772,122.44653,182.418943,2,80,55,64,3631.983579001826,139.125121,138.841229,165.572389,2,80,58,63,3.6438147839980957,70.25604076371566,56.492854473055544,56.34940680199045,3643.8147839980957,118.418011,118.542507,178.008845,2,80,55,64,3607.0850439973583,134.594096,134.705693,160.608036,2,80,58,63 +7,BC,3.8496807139999873,66.49902135234606,56.39845818553825,56.8378731633033,3849.6807139999873,117.064892,116.900457,177.683195,2,124,56,53,3529.9146879988257,133.054742,133.11151,158.91486700000002,2,121,74,49,3.6297765240014996,70.52775792317462,56.61370917270361,56.517573319919,3629.2894090001937,116.926666,117.038572,177.426473,2,80,55,64,3619.438034002087,132.390032,132.513398,158.713054,2,80,58,63 +8,CB,3.6211352329992224,70.6960617397232,56.644314816698156,56.6577196238754,3620.9730679984204,116.005854,116.103741,176.036854,2,80,55,64,3610.6678969990753,132.109551,132.099211,157.77680099999998,2,80,58,63,3.6202321799974015,70.71369660058205,56.63754984026697,56.772540070117806,3620.0716649982496,118.493299,118.547057,179.507879,2,80,55,64,3609.7440739977174,132.299465,132.277306,160.19234999999998,2,80,58,63 diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence-statistics.py b/docs/patches/ar-snapshot-turn/mtp-confidence-statistics.py new file mode 100644 index 0000000000..e1655b3580 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence-statistics.py @@ -0,0 +1,28 @@ +"""Paired log-ratio summaries; assumptions are part of the returned result.""" +import itertools +import math +import random +import statistics + +def summarize(logs,observed): + assert len(logs)==len(observed)==8 and sorted(observed)==[-1]*4+[1]*4 + mean=statistics.mean(logs) + null=[statistics.mean(d*s for d,s in zip(logs,signs))for signs in itertools.product((-1,1),repeat=8)] + p=sum(abs(x)>=abs(mean)-1e-12 for x in null)/len(null) + balanced=[] + for first_candidate in itertools.combinations(range(8),4): + selected=set(first_candidate) + balanced.append(statistics.mean(d*o*(1 if i in selected else-1)for i,(d,o)in enumerate(zip(logs,observed)))) + balanced_p=sum(abs(x)>=abs(mean)-1e-12 for x in balanced)/len(balanced) + rng=random.Random(2026103101) + boot=sorted(statistics.mean(rng.choices(logs,k=8))for _ in range(20000)) + ci=(boot[500],boot[19499]) + return dict(paired_log_ratios=logs,mean_log_ratio=mean, + wave_latency_reduction_pct=100*(1-math.exp(-mean)), + paired_geometric_throughput_increase_pct=100*math.expm1(mean), + bootstrap95_latency_reduction_pct=[100*(1-math.exp(-v))for v in ci], + bootstrap95_throughput_increase_pct=[100*math.expm1(v)for v in ci], + predeclared_two_sided_signflip_p=p, + signflip_assumption='Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.', + balanced_assignment_sensitivity_p=balanced_p,balanced_assignments=70, + positive_pairs=sum(x>0 for x in logs),negative_pairs=sum(x<0 for x in logs)) diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence-work.csv b/docs/patches/ar-snapshot-turn/mtp-confidence-work.csv new file mode 100644 index 0000000000..7fdf842eed --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence-work.csv @@ -0,0 +1,31 @@ +pair,case,repetition,index,metric,baseline,candidate +1,short-c2,1,0,draft_tokens,118,94 +1,short-c2,1,0,draft_accepted_tokens,56,59 +1,short-c2,1,0,raw.draft_rounds,53,63 +1,short-c2,1,1,draft_tokens,117,94 +1,short-c2,1,1,draft_accepted_tokens,72,61 +1,short-c2,1,1,raw.draft_rounds,51,62 +2,short-c2,1,0,draft_tokens,116,80 +2,short-c2,1,0,draft_accepted_tokens,57,55 +2,short-c2,1,0,raw.draft_rounds,52,64 +2,short-c2,1,1,draft_tokens,116,80 +2,short-c2,1,1,draft_accepted_tokens,72,58 +2,short-c2,1,1,raw.draft_rounds,51,63 +4,short-c2,1,0,draft_tokens,81,115 +4,short-c2,1,0,draft_accepted_tokens,55,57 +4,short-c2,1,0,raw.draft_rounds,64,54 +4,short-c2,1,1,draft_tokens,81,115 +4,short-c2,1,1,draft_accepted_tokens,58,70 +4,short-c2,1,1,raw.draft_rounds,63,53 +5,short-c2,1,0,draft_tokens,80,106 +5,short-c2,1,0,draft_accepted_tokens,55,63 +5,short-c2,1,0,raw.draft_rounds,64,60 +5,short-c2,1,1,draft_tokens,80,106 +5,short-c2,1,1,draft_accepted_tokens,58,64 +5,short-c2,1,1,raw.draft_rounds,63,59 +7,short-c2,1,0,draft_tokens,124,80 +7,short-c2,1,0,draft_accepted_tokens,56,55 +7,short-c2,1,0,raw.draft_rounds,53,64 +7,short-c2,1,1,draft_tokens,121,80 +7,short-c2,1,1,draft_accepted_tokens,74,58 +7,short-c2,1,1,raw.draft_rounds,49,63 diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence.json b/docs/patches/ar-snapshot-turn/mtp-confidence.json new file mode 100644 index 0000000000..25c8f0790c --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence.json @@ -0,0 +1,1022 @@ +{ + "pairs": 8, + "starts": 16, + "requests": 80, + "identities_match": true, + "primary": { + "paired_log_ratios": [ + 0.044471154428549986, + 0.04329802918017666, + -0.0029976795605152306, + -0.046436341747687446, + 0.006448721611845344, + -0.0003996297868693108, + 0.05881913068642667, + 0.00024941504967189833 + ], + "mean_log_ratio": 0.012931599982699821, + "wave_latency_reduction_pct": 1.2848346098680352, + "paired_geometric_throughput_increase_pct": 1.3015574707191533, + "bootstrap95_latency_reduction_pct": [ + -1.0642317372953292, + 3.392136798187062 + ], + "bootstrap95_throughput_increase_pct": [ + -1.053025109874366, + 3.5112429628020254 + ], + "predeclared_two_sided_signflip_p": 0.3125, + "signflip_assumption": "Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.", + "balanced_assignment_sensitivity_p": 0.37142857142857144, + "balanced_assignments": 70, + "positive_pairs": 5, + "negative_pairs": 3 + }, + "rates": [ + { + "pair": 1, + "order": "CB", + "baseline_C2_wave_seconds": 3.81730212399998, + "baseline_C2_wave_tps": 67.06307011710906, + "baseline_C1_first_tps": 56.67405446569826, + "baseline_C1_repeat_tps": 56.612185055311286, + "baseline_C2_0_wall_ms": 3817.30212399998, + "baseline_C2_0_first_gap_ms": 117.055032, + "baseline_C2_0_max_gap_ms": 117.09877, + "baseline_C2_0_snapshot_ms": 175.994705, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 118, + "baseline_C2_0_accepted": 56, + "baseline_C2_0_rounds": 53, + "baseline_C2_1_wall_ms": 3745.787948002544, + "baseline_C2_1_first_gap_ms": 132.508399, + "baseline_C2_1_max_gap_ms": 132.168349, + "baseline_C2_1_snapshot_ms": 157.642475, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 117, + "baseline_C2_1_accepted": 72, + "baseline_C2_1_rounds": 51, + "candidate_C2_wave_seconds": 3.6512616610016266, + "candidate_C2_wave_tps": 70.11275108937912, + "candidate_C1_first_tps": 56.531459389695875, + "candidate_C1_repeat_tps": 56.34158296264435, + "candidate_C2_0_wall_ms": 3651.2616610016266, + "candidate_C2_0_first_gap_ms": 117.201527, + "candidate_C2_0_max_gap_ms": 117.240876, + "candidate_C2_0_snapshot_ms": 176.54848900000002, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 94, + "candidate_C2_0_accepted": 59, + "candidate_C2_0_rounds": 63, + "candidate_C2_1_wall_ms": 3640.470483998797, + "candidate_C2_1_first_gap_ms": 132.540288, + "candidate_C2_1_max_gap_ms": 132.607156, + "candidate_C2_1_snapshot_ms": 157.925427, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 94, + "candidate_C2_1_accepted": 61, + "candidate_C2_1_rounds": 62 + }, + { + "pair": 2, + "order": "CB", + "baseline_C2_wave_seconds": 3.772678511999402, + "baseline_C2_wave_tps": 67.85629869753413, + "baseline_C1_first_tps": 56.87094305780318, + "baseline_C1_repeat_tps": 56.41585237123718, + "baseline_C2_0_wall_ms": 3772.517877001519, + "baseline_C2_0_first_gap_ms": 116.46932, + "baseline_C2_0_max_gap_ms": 116.517308, + "baseline_C2_0_snapshot_ms": 175.610256, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 116, + "baseline_C2_0_accepted": 57, + "baseline_C2_0_rounds": 52, + "baseline_C2_1_wall_ms": 3762.2213149988966, + "baseline_C2_1_first_gap_ms": 132.583066, + "baseline_C2_1_max_gap_ms": 132.287455, + "baseline_C2_1_snapshot_ms": 157.80538, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 116, + "baseline_C2_1_accepted": 72, + "baseline_C2_1_rounds": 51, + "candidate_C2_wave_seconds": 3.6128148329989926, + "candidate_C2_wave_tps": 70.85887648094457, + "candidate_C1_first_tps": 56.856613378169726, + "candidate_C1_repeat_tps": 56.59933083512736, + "candidate_C2_0_wall_ms": 3612.652267998783, + "candidate_C2_0_first_gap_ms": 118.087711, + "candidate_C2_0_max_gap_ms": 117.835608, + "candidate_C2_0_snapshot_ms": 175.558518, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 80, + "candidate_C2_0_accepted": 55, + "candidate_C2_0_rounds": 64, + "candidate_C2_1_wall_ms": 3602.259408999089, + "candidate_C2_1_first_gap_ms": 134.210928, + "candidate_C2_1_max_gap_ms": 133.544398, + "candidate_C2_1_snapshot_ms": 159.343784, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 80, + "candidate_C2_1_accepted": 58, + "candidate_C2_1_rounds": 63 + }, + { + "pair": 3, + "order": "BC", + "baseline_C2_wave_seconds": 3.8090617710004153, + "baseline_C2_wave_tps": 67.20815134818986, + "baseline_C1_first_tps": 56.70769254774073, + "baseline_C1_repeat_tps": 56.69480971600286, + "baseline_C2_0_wall_ms": 3809.0617710004153, + "baseline_C2_0_first_gap_ms": 116.607325, + "baseline_C2_0_max_gap_ms": 116.728092, + "baseline_C2_0_snapshot_ms": 175.871669, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 121, + "baseline_C2_0_accepted": 56, + "baseline_C2_0_rounds": 53, + "baseline_C2_1_wall_ms": 3798.442609000631, + "baseline_C2_1_first_gap_ms": 132.034123, + "baseline_C2_1_max_gap_ms": 132.006543, + "baseline_C2_1_snapshot_ms": 157.437872, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 118, + "baseline_C2_1_accepted": 74, + "baseline_C2_1_rounds": 49, + "candidate_C2_wave_seconds": 3.8204972490020737, + "candidate_C2_wave_tps": 67.00698451408859, + "candidate_C1_first_tps": 56.70744521969583, + "candidate_C1_repeat_tps": 56.51987210443256, + "candidate_C2_0_wall_ms": 3820.286145000864, + "candidate_C2_0_first_gap_ms": 116.522888, + "candidate_C2_0_max_gap_ms": 116.618915, + "candidate_C2_0_snapshot_ms": 175.700224, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 121, + "candidate_C2_0_accepted": 56, + "candidate_C2_0_rounds": 53, + "candidate_C2_1_wall_ms": 3810.0544810004067, + "candidate_C2_1_first_gap_ms": 132.311134, + "candidate_C2_1_max_gap_ms": 132.301915, + "candidate_C2_1_snapshot_ms": 157.47007000000002, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 118, + "candidate_C2_1_accepted": 74, + "candidate_C2_1_rounds": 49 + }, + { + "pair": 4, + "order": "BC", + "baseline_C2_wave_seconds": 3.617669636998471, + "baseline_C2_wave_tps": 70.76378599688819, + "baseline_C1_first_tps": 56.79251276179402, + "baseline_C1_repeat_tps": 56.6434665721339, + "baseline_C2_0_wall_ms": 3617.4951430002693, + "baseline_C2_0_first_gap_ms": 118.192898, + "baseline_C2_0_max_gap_ms": 118.253525, + "baseline_C2_0_snapshot_ms": 175.622817, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 81, + "baseline_C2_0_accepted": 55, + "baseline_C2_0_rounds": 64, + "baseline_C2_1_wall_ms": 3607.1962709975196, + "baseline_C2_1_first_gap_ms": 134.1304, + "baseline_C2_1_max_gap_ms": 133.896857, + "baseline_C2_1_snapshot_ms": 159.42945200000003, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 81, + "baseline_C2_1_accepted": 58, + "baseline_C2_1_rounds": 63, + "candidate_C2_wave_seconds": 3.7896225139993476, + "candidate_C2_wave_tps": 67.55290244722356, + "candidate_C1_first_tps": 56.68124624859499, + "candidate_C1_repeat_tps": 56.524662388496054, + "candidate_C2_0_wall_ms": 3789.6225139993476, + "candidate_C2_0_first_gap_ms": 117.232137, + "candidate_C2_0_max_gap_ms": 117.341373, + "candidate_C2_0_snapshot_ms": 175.631836, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 115, + "candidate_C2_0_accepted": 57, + "candidate_C2_0_rounds": 54, + "candidate_C2_1_wall_ms": 3566.823301000113, + "candidate_C2_1_first_gap_ms": 133.543108, + "candidate_C2_1_max_gap_ms": 133.545088, + "candidate_C2_1_snapshot_ms": 158.80411099999998, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 115, + "candidate_C2_1_accepted": 70, + "candidate_C2_1_rounds": 53 + }, + { + "pair": 5, + "order": "BC", + "baseline_C2_wave_seconds": 3.6261913609996554, + "baseline_C2_wave_tps": 70.59748769834002, + "baseline_C1_first_tps": 56.62467618370895, + "baseline_C1_repeat_tps": 56.64324990102934, + "baseline_C2_0_wall_ms": 3625.6495469970105, + "baseline_C2_0_first_gap_ms": 116.403071, + "baseline_C2_0_max_gap_ms": 116.456719, + "baseline_C2_0_snapshot_ms": 175.627477, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 80, + "baseline_C2_0_accepted": 55, + "baseline_C2_0_rounds": 64, + "baseline_C2_1_wall_ms": 3615.683706000709, + "baseline_C2_1_first_gap_ms": 132.063652, + "baseline_C2_1_max_gap_ms": 132.081862, + "baseline_C2_1_snapshot_ms": 157.35463399999998, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 80, + "baseline_C2_1_accepted": 58, + "baseline_C2_1_rounds": 63, + "candidate_C2_wave_seconds": 3.602882300001511, + "candidate_C2_wave_tps": 71.05422233745816, + "candidate_C1_first_tps": 56.67019675185189, + "candidate_C1_repeat_tps": 56.6266882848721, + "candidate_C2_0_wall_ms": 3602.882300001511, + "candidate_C2_0_first_gap_ms": 118.808349, + "candidate_C2_0_max_gap_ms": 118.197698, + "candidate_C2_0_snapshot_ms": 177.35290400000002, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 106, + "candidate_C2_0_accepted": 63, + "candidate_C2_0_rounds": 60, + "candidate_C2_1_wall_ms": 3591.9072599972424, + "candidate_C2_1_first_gap_ms": 132.45011, + "candidate_C2_1_max_gap_ms": 132.026623, + "candidate_C2_1_snapshot_ms": 157.56106699999998, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 106, + "candidate_C2_1_accepted": 64, + "candidate_C2_1_rounds": 59 + }, + { + "pair": 6, + "order": "CB", + "baseline_C2_wave_seconds": 3.6423588979996566, + "baseline_C2_wave_tps": 70.28412278114394, + "baseline_C1_first_tps": 56.771250622697096, + "baseline_C1_repeat_tps": 56.53698426189327, + "baseline_C2_0_wall_ms": 3642.063445997337, + "baseline_C2_0_first_gap_ms": 122.721772, + "baseline_C2_0_max_gap_ms": 122.44653, + "baseline_C2_0_snapshot_ms": 182.418943, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 80, + "baseline_C2_0_accepted": 55, + "baseline_C2_0_rounds": 64, + "baseline_C2_1_wall_ms": 3631.983579001826, + "baseline_C2_1_first_gap_ms": 139.125121, + "baseline_C2_1_max_gap_ms": 138.841229, + "baseline_C2_1_snapshot_ms": 165.572389, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 80, + "baseline_C2_1_accepted": 58, + "baseline_C2_1_rounds": 63, + "candidate_C2_wave_seconds": 3.6438147839980957, + "candidate_C2_wave_tps": 70.25604076371566, + "candidate_C1_first_tps": 56.492854473055544, + "candidate_C1_repeat_tps": 56.34940680199045, + "candidate_C2_0_wall_ms": 3643.8147839980957, + "candidate_C2_0_first_gap_ms": 118.418011, + "candidate_C2_0_max_gap_ms": 118.542507, + "candidate_C2_0_snapshot_ms": 178.008845, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 80, + "candidate_C2_0_accepted": 55, + "candidate_C2_0_rounds": 64, + "candidate_C2_1_wall_ms": 3607.0850439973583, + "candidate_C2_1_first_gap_ms": 134.594096, + "candidate_C2_1_max_gap_ms": 134.705693, + "candidate_C2_1_snapshot_ms": 160.608036, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 80, + "candidate_C2_1_accepted": 58, + "candidate_C2_1_rounds": 63 + }, + { + "pair": 7, + "order": "BC", + "baseline_C2_wave_seconds": 3.8496807139999873, + "baseline_C2_wave_tps": 66.49902135234606, + "baseline_C1_first_tps": 56.39845818553825, + "baseline_C1_repeat_tps": 56.8378731633033, + "baseline_C2_0_wall_ms": 3849.6807139999873, + "baseline_C2_0_first_gap_ms": 117.064892, + "baseline_C2_0_max_gap_ms": 116.900457, + "baseline_C2_0_snapshot_ms": 177.683195, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 124, + "baseline_C2_0_accepted": 56, + "baseline_C2_0_rounds": 53, + "baseline_C2_1_wall_ms": 3529.9146879988257, + "baseline_C2_1_first_gap_ms": 133.054742, + "baseline_C2_1_max_gap_ms": 133.11151, + "baseline_C2_1_snapshot_ms": 158.91486700000002, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 121, + "baseline_C2_1_accepted": 74, + "baseline_C2_1_rounds": 49, + "candidate_C2_wave_seconds": 3.6297765240014996, + "candidate_C2_wave_tps": 70.52775792317462, + "candidate_C1_first_tps": 56.61370917270361, + "candidate_C1_repeat_tps": 56.517573319919, + "candidate_C2_0_wall_ms": 3629.2894090001937, + "candidate_C2_0_first_gap_ms": 116.926666, + "candidate_C2_0_max_gap_ms": 117.038572, + "candidate_C2_0_snapshot_ms": 177.426473, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 80, + "candidate_C2_0_accepted": 55, + "candidate_C2_0_rounds": 64, + "candidate_C2_1_wall_ms": 3619.438034002087, + "candidate_C2_1_first_gap_ms": 132.390032, + "candidate_C2_1_max_gap_ms": 132.513398, + "candidate_C2_1_snapshot_ms": 158.713054, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 80, + "candidate_C2_1_accepted": 58, + "candidate_C2_1_rounds": 63 + }, + { + "pair": 8, + "order": "CB", + "baseline_C2_wave_seconds": 3.6211352329992224, + "baseline_C2_wave_tps": 70.6960617397232, + "baseline_C1_first_tps": 56.644314816698156, + "baseline_C1_repeat_tps": 56.6577196238754, + "baseline_C2_0_wall_ms": 3620.9730679984204, + "baseline_C2_0_first_gap_ms": 116.005854, + "baseline_C2_0_max_gap_ms": 116.103741, + "baseline_C2_0_snapshot_ms": 176.036854, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 80, + "baseline_C2_0_accepted": 55, + "baseline_C2_0_rounds": 64, + "baseline_C2_1_wall_ms": 3610.6678969990753, + "baseline_C2_1_first_gap_ms": 132.109551, + "baseline_C2_1_max_gap_ms": 132.099211, + "baseline_C2_1_snapshot_ms": 157.77680099999998, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 80, + "baseline_C2_1_accepted": 58, + "baseline_C2_1_rounds": 63, + "candidate_C2_wave_seconds": 3.6202321799974015, + "candidate_C2_wave_tps": 70.71369660058205, + "candidate_C1_first_tps": 56.63754984026697, + "candidate_C1_repeat_tps": 56.772540070117806, + "candidate_C2_0_wall_ms": 3620.0716649982496, + "candidate_C2_0_first_gap_ms": 118.493299, + "candidate_C2_0_max_gap_ms": 118.547057, + "candidate_C2_0_snapshot_ms": 179.507879, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 80, + "candidate_C2_0_accepted": 55, + "candidate_C2_0_rounds": 64, + "candidate_C2_1_wall_ms": 3609.7440739977174, + "candidate_C2_1_first_gap_ms": 132.299465, + "candidate_C2_1_max_gap_ms": 132.277306, + "candidate_C2_1_snapshot_ms": 160.19234999999998, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 80, + "candidate_C2_1_accepted": 58, + "candidate_C2_1_rounds": 63 + } + ], + "strict_flags": [ + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_ms": 2974.684798999999, + "candidate_ms": 3182.012736, + "delta_ms": 207.32793700000093 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_ms": 2974.684798999999, + "candidate_ms": 3182.012736, + "delta_ms": 207.32793700000093 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_ms": 2961.853602, + "candidate_ms": 3120.991559000001, + "delta_ms": 159.13795700000082 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_ms": 2961.853602, + "candidate_ms": 3120.991559000001, + "delta_ms": 159.13795700000082 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "decode_ms", + "baseline_ms": 3223.304894999999, + "candidate_ms": 3394.3003229999995, + "delta_ms": 170.99542800000063 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.decode_ms", + "baseline_ms": 3223.304894999999, + "candidate_ms": 3394.3003229999995, + "delta_ms": 170.99542800000063 + }, + { + "pair": 5, + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "wall_ms", + "baseline_ms": 253.87530100124422, + "candidate_ms": 288.1654829980107, + "delta_ms": 34.29018199676648 + }, + { + "pair": 5, + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "client_ttft_ms", + "baseline_ms": 157.6712440000847, + "candidate_ms": 191.2740070001746, + "delta_ms": 33.60276300008991 + }, + { + "pair": 5, + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "prefill_ms", + "baseline_ms": 149.652006, + "candidate_ms": 182.951637, + "delta_ms": 33.299631000000005 + }, + { + "pair": 5, + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "server_ttft_ms", + "baseline_ms": 157.301926, + "candidate_ms": 190.556499, + "delta_ms": 33.25457299999999 + }, + { + "pair": 5, + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "raw.prefill_ms", + "baseline_ms": 149.652006, + "candidate_ms": 182.951637, + "delta_ms": 33.299631000000005 + }, + { + "pair": 5, + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "raw.ttft_ms", + "baseline_ms": 157.301926, + "candidate_ms": 190.556499, + "delta_ms": 33.25457299999999 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_ms": 2935.38395, + "candidate_ms": 3135.1075200000005, + "delta_ms": 199.72357000000056 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_ms": 2935.38395, + "candidate_ms": 3135.1075200000005, + "delta_ms": 199.72357000000056 + } + ], + "adaptive_work_differences": [ + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 118, + "candidate": 94 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 56, + "candidate": 59 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 53, + "candidate": 63 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 117, + "candidate": 94 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 72, + "candidate": 61 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 51, + "candidate": 62 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 116, + "candidate": 80 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 57, + "candidate": 55 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 52, + "candidate": 64 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 116, + "candidate": 80 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 72, + "candidate": 58 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 51, + "candidate": 63 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 81, + "candidate": 115 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 55, + "candidate": 57 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 64, + "candidate": 54 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 81, + "candidate": 115 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 58, + "candidate": 70 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 63, + "candidate": 53 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 80, + "candidate": 106 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 55, + "candidate": 63 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 64, + "candidate": 60 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 80, + "candidate": 106 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 58, + "candidate": 64 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 63, + "candidate": 59 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 124, + "candidate": 80 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 56, + "candidate": 55 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 53, + "candidate": 64 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 121, + "candidate": 80 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 74, + "candidate": 58 + }, + { + "pair": 7, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 49, + "candidate": 63 + } + ], + "per_request_ranges": [ + { + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "wall_ms", + "baseline_range_ms": [ + 253.77793399820803, + 289.56599199955235 + ], + "candidate_range_ms": [ + 252.8136529981566, + 288.6087100014265 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "client_ttft_ms", + "baseline_range_ms": [ + 157.6712440000847, + 193.16504100061138 + ], + "candidate_range_ms": [ + 157.10365199993248, + 192.53124899842078 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "prefill_ms", + "baseline_range_ms": [ + 149.61222600000002, + 184.069523 + ], + "candidate_range_ms": [ + 149.052183, + 184.38419499999998 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "server_ttft_ms", + "baseline_range_ms": [ + 157.177069, + 192.50234 + ], + "candidate_range_ms": [ + 156.674235, + 192.019855 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "raw.prefill_ms", + "baseline_range_ms": [ + 149.61222600000002, + 184.069523 + ], + "candidate_range_ms": [ + 149.052183, + 184.38419499999998 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "warmup", + "repetition": 0, + "index": 0, + "metric": "raw.ttft_ms", + "baseline_range_ms": [ + 157.177069, + 192.50234 + ], + "candidate_range_ms": [ + 156.674235, + 192.019855 + ], + "flagged_pairs": [ + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "decode_ms", + "baseline_range_ms": [ + 3223.304894999999, + 3451.1019169999995 + ], + "candidate_range_ms": [ + 3207.3831059999993, + 3425.401719 + ], + "flagged_pairs": [ + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.decode_ms", + "baseline_range_ms": [ + 3223.304894999999, + 3451.1019169999995 + ], + "candidate_range_ms": [ + 3207.3831059999993, + 3425.401719 + ], + "flagged_pairs": [ + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_range_ms": [ + 2900.129140999999, + 3138.2238359999997 + ], + "candidate_range_ms": [ + 2911.2960200000007, + 3182.012736 + ], + "flagged_pairs": [ + 1, + 2, + 7 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_range_ms": [ + 2900.129140999999, + 3138.2238359999997 + ], + "candidate_range_ms": [ + 2911.2960200000007, + 3182.012736 + ], + "flagged_pairs": [ + 1, + 2, + 7 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + } + ], + "scope": "All predeclared fresh-process pairs; no exclusions/added starts. Aggregate default-mode effect is not pure dispatch cost, equivalence, phase-gate clearance, independent kernel trials or default adoption. Prior studies separate. No profiler/adminsampler/fulltablewarming.", + "secondary_C1_exploratory": { + "C1_first": { + "latency_reduction_pct": -0.0645093494861193, + "bootstrap95_latency_reduction_pct": [ + -0.23065255296146336, + 0.10226796599153154 + ], + "signflip_p": 0.4765625, + "balanced_p": 0.42857142857142855, + "scope": "Declared secondary C1 endpoint; exploratory inference, not a new primary or equivalence claim." + }, + "C1_repeat": { + "latency_reduction_pct": -0.17486356812901338, + "bootstrap95_latency_reduction_pct": [ + -0.37196542169393165, + 0.036852000750664526 + ], + "signflip_p": 0.1484375, + "balanced_p": 0.22857142857142856, + "scope": "Declared secondary C1 endpoint; exploratory inference, not a new primary or equivalence claim." + } + } +} diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence.png b/docs/patches/ar-snapshot-turn/mtp-confidence.png new file mode 100644 index 0000000000..6ef3d762b0 Binary files /dev/null and b/docs/patches/ar-snapshot-turn/mtp-confidence.png differ diff --git a/docs/patches/ar-snapshot-turn/mtp-confidence.svg b/docs/patches/ar-snapshot-turn/mtp-confidence.svg new file mode 100644 index 0000000000..f4309cfaa8 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-confidence.svg @@ -0,0 +1,2422 @@ + + + + + + + + 2026-10-31T03:23:03.951738 + image/svg+xml + + + Matplotlib v3.11.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/patches/ar-snapshot-turn/mtp-phase-flags.csv b/docs/patches/ar-snapshot-turn/mtp-phase-flags.csv new file mode 100644 index 0000000000..2539ceb087 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/mtp-phase-flags.csv @@ -0,0 +1,26 @@ +control,candidate,case,repetition,index,metric,baseline_ms,candidate_ms,delta_ms +before-baseline,first-candidate,short-c2,1,0,wall_ms,3945.7641600001807,4469.629605000591,523.8654450004105 +before-baseline,first-candidate,short-c2,1,0,client_event_inter_token_ms,28.87711917322831,32.986055677167144,4.1089365039388355 +before-baseline,first-candidate,short-c2,1,0,decode_ms,3552.3087339999993,4074.4342750000005,522.1255410000012 +before-baseline,first-candidate,short-c2,1,0,server_inter_token_ms,28.878257094488195,32.98747279527558,4.109215700787384 +before-baseline,first-candidate,short-c2,1,0,raw.decode_ms,3552.3087339999993,4074.4342750000005,522.1255410000012 +before-baseline,first-candidate,short-c2,1,0,raw.mean_inter_token_ms,28.878257094488195,32.98747279527558,4.109215700787384 +before-baseline,first-candidate,short-c2,1,1,wall_ms,3718.7528449994716,4459.450000000288,740.6971550008166 +before-baseline,first-candidate,short-c2,1,1,client_event_inter_token_ms,26.191156622053672,29.248555362204296,3.0573987401506244 +before-baseline,first-candidate,short-c2,1,1,decode_ms,3237.696963999999,3625.0895929999992,387.3926290000004 +before-baseline,first-candidate,short-c2,1,1,server_inter_token_ms,26.190880645669292,29.248397960629926,3.0575173149606343 +before-baseline,first-candidate,short-c2,1,1,raw.decode_ms,3237.696963999999,3625.0895929999992,387.3926290000004 +before-baseline,first-candidate,short-c2,1,1,raw.mean_inter_token_ms,26.190880645669292,29.248397960629926,3.0575173149606343 +after-baseline,first-candidate,short-c2,1,0,wall_ms,4043.854449000719,4469.629605000591,425.77515599987237 +after-baseline,first-candidate,short-c2,1,0,client_event_inter_token_ms,29.62079884251064,32.986055677167144,3.3652568346565026 +after-baseline,first-candidate,short-c2,1,0,decode_ms,3646.814852999998,4074.4342750000005,427.6194220000025 +after-baseline,first-candidate,short-c2,1,0,server_inter_token_ms,29.621230094488205,32.98747279527558,3.3662427007873745 +after-baseline,first-candidate,short-c2,1,0,server_max_inter_token_ms,121.188836,133.832078,12.643242 +after-baseline,first-candidate,short-c2,1,0,raw.decode_ms,3646.814852999998,4074.4342750000005,427.6194220000025 +after-baseline,first-candidate,short-c2,1,0,raw.mean_inter_token_ms,29.621230094488205,32.98747279527558,3.3662427007873745 +after-baseline,first-candidate,short-c2,1,0,raw.max_inter_token_ms,121.188836,133.832078,12.643242 +after-baseline,first-candidate,short-c2,1,1,wall_ms,3977.843147000385,4459.450000000288,481.6068529999029 +after-baseline,first-candidate,short-c2,1,1,decode_ms,3385.8334059999993,3625.0895929999992,239.25618699999995 +after-baseline,first-candidate,short-c2,1,1,raw.decode_ms,3385.8334059999993,3625.0895929999992,239.25618699999995 +after-baseline,second-candidate,short-c2,1,0,server_max_inter_token_ms,121.188836,135.676822,14.487985999999992 +after-baseline,second-candidate,short-c2,1,0,raw.max_inter_token_ms,121.188836,135.676822,14.487985999999992 diff --git a/docs/patches/ar-snapshot-turn/qualification.json b/docs/patches/ar-snapshot-turn/qualification.json new file mode 100644 index 0000000000..ef5671654a --- /dev/null +++ b/docs/patches/ar-snapshot-turn/qualification.json @@ -0,0 +1,432 @@ +{ + "publication_base": "b6d4cbaacb609424a52ca70dd60e97fc4d8ca57e", + "publication_code_commit": "92bf7cb65e9e86b8e6408e39ca0498e8b52b31f8", + "hardware_integration_code_commit": "e62c887e", + "runtime_parent_SHA256": "ccdb9495527b0d69190e4303cebf30e2cd4142e9d8baaf94c5763b7f7e6adcd5", + "runtime_fix_SHA256": "d41a20216e0a4d7da8df30285c3c9ee89bab197b7965f62f1e6c4b8557a54162", + "hardware_scope": "Two Ryzen AI Max+395/gfx1151 128GB nodes, Linux7.3.0-strix-test, privateROCm7.14.1, UD-Q4_K_XL FlashNext/sharedQ8_0MTP,65Kcontext/twosessions,CLI2K/backend4K,1GiBcache,124GiBHIPheaps,crossed40+20Gbps/common844Edriver. Published older base does NOT include the other HC/cooperative/cache integration work used for hardware runs; Standalone bounded hardware and functional checks now reported separately; timing flags remain open.", + "observed_starvation": { + "mutex_wait_ms": 601.137875, + "Advance_acquisitions_after_capture_wait_begins": 22, + "capture_after_acquisition_ms": 3.874954 + }, + "AR_pilot": { + "requests": 24, + "rates": { + "before-baseline": { + "first_2K_ms": 1097.994703, + "repeat_2K_ms": 1086.925635, + "pp32768_ms": 15376.228482999999, + "pp32768_tps": 2131.081756246559, + "C1_tps": 37.52348257311957, + "C1_repeat_tps": 37.47916204195642, + "C2_wave_tps": 36.74956898862988, + "C2_TTFT_ms": [ + 275.061794, + 334.690326 + ], + "C2_max_gap_ms": [ + 97.097129, + 3342.218603 + ], + "C2_draft_rounds": [ + 0, + 0 + ] + }, + "first-candidate": { + "first_2K_ms": 1076.892775, + "repeat_2K_ms": 1094.470739, + "pp32768_ms": 15420.213387000002, + "pp32768_tps": 2125.0030189352005, + "C1_tps": 37.64559679005069, + "C1_repeat_tps": 37.535195540438195, + "C2_wave_tps": 56.41009617596594, + "C2_TTFT_ms": [ + 276.923168, + 339.298568 + ], + "C2_max_gap_ms": [ + 99.522077, + 83.385151 + ], + "C2_draft_rounds": [ + 0, + 0 + ] + }, + "second-candidate": { + "first_2K_ms": 1111.341493, + "repeat_2K_ms": 1091.144818, + "pp32768_ms": 15408.159379, + "pp32768_tps": 2126.6654370579768, + "C1_tps": 37.55817892787901, + "C1_repeat_tps": 37.517138447211444, + "C2_wave_tps": 56.52290644846816, + "C2_TTFT_ms": [ + 277.837781, + 341.875351 + ], + "C2_max_gap_ms": [ + 101.435479, + 84.086009 + ], + "C2_draft_rounds": [ + 0, + 0 + ] + }, + "after-baseline": { + "first_2K_ms": 1079.123239, + "repeat_2K_ms": 1092.5684959999999, + "pp32768_ms": 15457.495418000002, + "pp32768_tps": 2119.8777107086958, + "C1_tps": 37.58395135529262, + "C1_repeat_tps": 37.4008338074369, + "C2_wave_tps": 53.118000627704596, + "C2_TTFT_ms": [ + 279.20396, + 341.748405 + ], + "C2_max_gap_ms": [ + 100.300803, + 423.62555 + ], + "C2_draft_rounds": [ + 0, + 0 + ] + } + }, + "strict_phase_flags": 22, + "adaptive_work_comparisons": 4 + }, + "adaptive_MTP_pilot": { + "requests": 24, + "rates": { + "before-baseline": { + "first_2K_ms": 1111.6025849999999, + "repeat_2K_ms": 1132.183528, + "pp32768_ms": 16069.410493000001, + "pp32768_tps": 2039.153832947019, + "C1_tps": 56.54103759817082, + "C1_repeat_tps": 56.58065348660936, + "C2_wave_tps": 64.87970127438845, + "C2_TTFT_ms": [ + 277.065684, + 336.876341 + ], + "C2_max_gap_ms": [ + 136.473668, + 136.472828 + ], + "C2_draft_rounds": [ + 48, + 47 + ] + }, + "first-candidate": { + "first_2K_ms": 1117.390542, + "repeat_2K_ms": 1130.697873, + "pp32768_ms": 16071.687195, + "pp32768_tps": 2038.8649680908625, + "C1_tps": 56.68451720135543, + "C1_repeat_tps": 56.33744537172927, + "C2_wave_tps": 57.27131151715378, + "C2_TTFT_ms": [ + 278.974267, + 338.948769 + ], + "C2_max_gap_ms": [ + 133.832078, + 133.832168 + ], + "C2_draft_rounds": [ + 51, + 47 + ] + }, + "second-candidate": { + "first_2K_ms": 1121.393022, + "repeat_2K_ms": 1132.755521, + "pp32768_ms": 16116.526701, + "pp32768_tps": 2033.1924246411484, + "C1_tps": 56.576695283260946, + "C1_repeat_tps": 56.576648034285846, + "C2_wave_tps": 68.98661052943444, + "C2_TTFT_ms": [ + 281.603088, + 341.952438 + ], + "C2_max_gap_ms": [ + 135.676822, + 135.675582 + ], + "C2_draft_rounds": [ + 63, + 62 + ] + }, + "after-baseline": { + "first_2K_ms": 1116.381382, + "repeat_2K_ms": 1130.0911409999999, + "pp32768_ms": 16108.676839999998, + "pp32768_tps": 2034.1832122817607, + "C1_tps": 56.333885005917715, + "C1_repeat_tps": 56.391663268894305, + "C2_wave_tps": 63.30593824000278, + "C2_TTFT_ms": [ + 280.348405, + 340.762644 + ], + "C2_max_gap_ms": [ + 121.188836, + 133.037072 + ], + "C2_draft_rounds": [ + 54, + 53 + ] + } + }, + "strict_phase_flags": 25, + "adaptive_work_comparisons": 23 + }, + "fixed1_diagnostic": { + "requests": 12, + "rates": { + "before-baseline": { + "first_2K_ms": 1119.161542, + "repeat_2K_ms": 1131.7090950000002, + "pp32768_ms": 16090.352346, + "pp32768_tps": 2036.4998413565506, + "C1_tps": 53.72532139247971, + "C1_repeat_tps": 53.45001384953714, + "C2_wave_tps": 70.99918360005724, + "C2_TTFT_ms": [ + 275.520868, + 335.601119 + ], + "C2_max_gap_ms": [ + 105.052794, + 104.645346 + ], + "C2_draft_rounds": [ + 69, + 68 + ] + }, + "first-candidate": { + "first_2K_ms": 1118.955379, + "repeat_2K_ms": 1134.5554399999999, + "pp32768_ms": 16113.521972, + "pp32768_tps": 2033.571559150135, + "C1_tps": 53.758802635231774, + "C1_repeat_tps": 53.48991160291289, + "C2_wave_tps": 71.04432072696633, + "C2_TTFT_ms": [ + 277.685383, + 337.206361 + ], + "C2_max_gap_ms": [ + 104.154411, + 102.908078 + ], + "C2_draft_rounds": [ + 69, + 68 + ] + } + }, + "strict_phase_flags": 0, + "adaptive_work_comparisons": 0, + "scope": "Supported min=max1 diagnostic only; not a default recommendation or clearance of adaptive flags." + }, + "functional": { + "functional_records": 11, + "client_HTTP_requests": 23, + "server_confirmed_cancellations": 6, + "cancellation_orders": [ + [ + 0, + 1 + ], + [ + 1, + 0 + ] + ], + "survivor_and_replay_hashes_match": true, + "actual_two_row_survivors": true, + "deep_cases": [ + { + "case": "content-preserve0-sampled1", + "cached": 18461, + "prefill": 34, + "accepted": 0, + "proposed": 1, + "exact": true, + "discard_assistant": false + }, + { + "case": "content-preserve1-sampled1", + "cached": 18461, + "prefill": 13, + "accepted": 9, + "proposed": 9, + "exact": true, + "discard_assistant": true + } + ], + "checked_transport_errors_zero": true, + "scope": "Candidate-only MTP functional coverage; two concurrent disconnect orders plus two deep seeded cached/replay histories. No timing-control, confidence, process-loss, cable-loss, persistence or universal deadlock qualification." + }, + "all_checked_transport_windows_clean": true, + "approved_drivers_restored": true, + "remaining": [ + "AR randomized confidence remains pending.", + "Per-request adaptive-MTP flags remain inconclusive; work differences do not prove their cause.", + "AR first-request batching tradeoff retained.", + "Published older tree has CPU/build coverage, not standalone live hardware coverage.", + "No default promotion or universal deadlock/process-loss/cable-loss/overnight qualification." + ], + "publication_validation": { + "CPU_suites": "5/5 passed on published base", + "format": "692C++files checked", + "production_build": "295targets passed; standalone published-base binary never deployed", + "production_binary_SHA256": "0ced6bf2afe5cb5d313c48cc965beeaead5ca0a2f631f5e0088417ba18df6e7a" + }, + "adaptive_MTP_confidence": { + "pairs": 8, + "starts": 16, + "requests": 80, + "primary": { + "paired_log_ratios": [ + 0.044471154428549986, + 0.04329802918017666, + -0.0029976795605152306, + -0.046436341747687446, + 0.006448721611845344, + -0.0003996297868693108, + 0.05881913068642667, + 0.00024941504967189833 + ], + "mean_log_ratio": 0.012931599982699821, + "wave_latency_reduction_pct": 1.2848346098680352, + "paired_geometric_throughput_increase_pct": 1.3015574707191533, + "bootstrap95_latency_reduction_pct": [ + -1.0642317372953292, + 3.392136798187062 + ], + "bootstrap95_throughput_increase_pct": [ + -1.053025109874366, + 3.5112429628020254 + ], + "predeclared_two_sided_signflip_p": 0.3125, + "signflip_assumption": "Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.", + "balanced_assignment_sensitivity_p": 0.37142857142857144, + "balanced_assignments": 70, + "positive_pairs": 5, + "negative_pairs": 3 + }, + "strict_flags": 14, + "work_comparisons": 30, + "C2_flagged_pairs": [ + 1, + 2, + 4, + 7 + ], + "all_flagged_C2_pairs_have_changed_work": true, + "repeated_outside_entire_control_range": 0, + "scope": "No established aggregate direction or equivalence. Earlier pilot flags retained separately. Standalone published tree not hardware qualified." + }, + "AR_confidence": { + "requests": 80, + "pairs": 8, + "primary": { + "paired_log_ratios": [ + 0.07283225340918734, + 0.012687167184206516, + 0.0008331774905709426, + 0.061955702094270156, + 0.26699352595743897, + -0.0012063134059212236, + 0.006226241022866625, + 0.0015772130092200057 + ], + "mean_log_ratio": 0.05273737084522991, + "wave_latency_reduction_pct": 5.137088256694322, + "paired_geometric_throughput_increase_pct": 5.415275751386409, + "bootstrap95_latency_reduction_pct": [ + 0.8784947022840495, + 11.224748461525746 + ], + "bootstrap95_throughput_increase_pct": [ + 0.8862806306718661, + 12.644006372272642 + ], + "predeclared_two_sided_signflip_p": 0.0234375, + "signflip_assumption": "Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.", + "balanced_assignment_sensitivity_p": 0.02857142857142857, + "balanced_assignments": 70, + "positive_pairs": 7, + "negative_pairs": 1 + }, + "strict_phase_flags": 16, + "adaptive_work_comparisons": 0, + "first_request_tradeoff_ms": 463.5172149974096, + "scope": "Integration stack only; first-request batching tradeoff and every flag retained. C1secondary exploratory, standalone published-base and MTP conclusions separate." + }, + "standalone_published_base": { + "parent_binary_SHA256": "ac0f26eb78f815d3acfaed770bb982996290177b6db481380dccedd6e80a0fc4", + "candidate_binary_SHA256": "0ced6bf2afe5cb5d313c48cc965beeaead5ca0a2f631f5e0088417ba18df6e7a", + "mode_requests": 24, + "strict_phase_flags": 24, + "work_comparisons": 6, + "functional": { + "AR_HTTP_requests": 23, + "MTP_HTTP_requests": 23, + "server_cancellations_per_mode": 6, + "cached_tokens_per_deep_case": 18461 + }, + "scope": "Bounded mode/functional checks pass. Separate eight-pair MTPconfidence complete/inconclusive; all timing flags retained. No integration performance transfer or default promotion." + }, + "standalone_adaptive_MTP_confidence": { + "pairs": 8, + "requests": 80, + "primary": { + "paired_log_ratios": [ + 0.01490189077725202, + 0.3137606597144458, + -0.0571139282757867, + -0.004784545635439341, + 0.8989570278668737, + 0.11322398584396587, + -0.01800185336464093, + 0.08785144990520202 + ], + "mean_log_ratio": 0.16859933585398404, + "wave_latency_reduction_pct": 15.515266438108434, + "paired_geometric_throughput_increase_pct": 18.364579947147845, + "bootstrap95_latency_reduction_pct": [ + 0.6656497886195378, + 32.93826001072977 + ], + "bootstrap95_throughput_increase_pct": [ + 0.6701103769270703, + 49.116321789443326 + ], + "predeclared_two_sided_signflip_p": 0.109375, + "signflip_assumption": "Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.", + "balanced_assignment_sensitivity_p": 0.14285714285714285, + "balanced_assignments": 70, + "positive_pairs": 5, + "negative_pairs": 3 + }, + "strict_phase_flags": 55, + "work_comparisons": 30, + "scope": "Inconclusive exact tests despite approximate bootstrap interval; no standalone gain/equivalence or clearance of earlier flags. Equal-work C1tails remain." + }, + "standalone_IO_diagnostic": "See standalone-io-cohorts.json;198actualslowCorsaircommands, no longC1plateau, controllerfailure/oneEVOsetupmiss/missingtransportaftergate retained." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-flags.csv b/docs/patches/ar-snapshot-turn/standalone-flags.csv new file mode 100644 index 0000000000..b48dc29a95 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-flags.csv @@ -0,0 +1,25 @@ +mode,case,repetition,index,metric,baseline_ms,candidate_ms,delta_ms +ar,short-c2,1,1,server_max_inter_token_ms,59.537165,85.784209,26.247044000000002 +ar,short-c2,1,1,first_followup_content_gap_ms,59.583184,86.487638,26.904454 +ar,short-c2,1,1,raw.cache_snapshot_ms,102.670771,128.858508,26.187737 +ar,short-c2,1,1,raw.max_inter_token_ms,59.537165,85.784209,26.247044000000002 +mtp,short-c2,1,0,wall_ms,3836.8046440009493,4605.435282999679,768.6306389987294 +mtp,short-c2,1,0,client_event_inter_token_ms,27.411561755898433,34.008551472451956,6.596989716553523 +mtp,short-c2,1,0,decode_ms,3433.3033930000006,4203.232067000001,769.9286740000002 +mtp,short-c2,1,0,server_inter_token_ms,27.412009929133863,34.00928507874016,6.5972751496063005 +mtp,short-c2,1,0,server_max_inter_token_ms,142.984974,158.14458,15.159605999999997 +mtp,short-c2,1,0,first_followup_content_gap_ms,52.063029,118.271195,66.208166 +mtp,short-c2,1,0,raw.cache_snapshot_ms,108.053161,177.26011699999998,69.20695599999998 +mtp,short-c2,1,0,raw.decode_ms,3433.3033930000006,4203.232067000001,769.9286740000002 +mtp,short-c2,1,0,raw.mean_inter_token_ms,27.412009929133863,34.00928507874016,6.5972751496063005 +mtp,short-c2,1,0,raw.max_inter_token_ms,142.984974,158.14458,15.159605999999997 +mtp,short-c2,1,1,wall_ms,3826.63329999923,4594.483072000003,767.8497720007726 +mtp,short-c2,1,1,client_event_inter_token_ms,26.0369011496185,33.24427100001123,7.20736985039273 +mtp,short-c2,1,1,decode_ms,3254.5274279999976,4132.357625000001,877.830197000003 +mtp,short-c2,1,1,server_inter_token_ms,26.037358385826778,33.244581149606304,7.2072227637795265 +mtp,short-c2,1,1,server_max_inter_token_ms,142.984573,158.149839,15.165265999999974 +mtp,short-c2,1,1,first_followup_content_gap_ms,97.625133,134.596615,36.97148200000001 +mtp,short-c2,1,1,raw.cache_snapshot_ms,121.42186,159.305835,37.88397500000001 +mtp,short-c2,1,1,raw.decode_ms,3254.5274279999976,4132.357625000001,877.830197000003 +mtp,short-c2,1,1,raw.mean_inter_token_ms,26.037358385826778,33.244581149606304,7.2072227637795265 +mtp,short-c2,1,1,raw.max_inter_token_ms,142.984573,158.149839,15.165265999999974 diff --git a/docs/patches/ar-snapshot-turn/standalone-functional.json b/docs/patches/ar-snapshot-turn/standalone-functional.json new file mode 100644 index 0000000000..cdb0ac1715 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-functional.json @@ -0,0 +1,118 @@ +{ + "ar": { + "analysis": { + "functional_records": 11, + "client_HTTP_requests": 23, + "server_confirmed_cancellations": 6, + "cancellation_orders": [ + [ + 0, + 1 + ], + [ + 1, + 0 + ] + ], + "survivor_and_replay_hashes_match": true, + "actual_two_row_survivors": true, + "deep_cases": [ + { + "case": "content-preserve0-sampled1", + "cached": 18461, + "prefill": 34, + "accepted": 0, + "proposed": 0, + "exact": true, + "discard_assistant": false + }, + { + "case": "content-preserve1-sampled1", + "cached": 18461, + "prefill": 13, + "accepted": 0, + "proposed": 0, + "exact": true, + "discard_assistant": true + } + ], + "checked_transport_errors_zero": true, + "scope": "Candidate-only AR functional coverage; two concurrent disconnect orders plus two deep seeded cached/replay histories. No timing-control, confidence, process-loss, cable-loss, persistence or universal deadlock qualification." + }, + "validation": { + "greedy_survivor_replay_and_seeded_continuation_exact": true, + "frozen_harness_hashes_unchanged": true, + "rank_binary_and_serving_settings_match": true, + "2_transport_windows_zero_checked_errors": true, + "all_recorded_server_PIDs_exited": true, + "both_approved_drivers_restored_idle_four_rails": true, + "boot_flags_and_topology_unchanged": true, + "checked_kernel_fault_patterns_absent": true, + "server_confirmed_cancellations": 6, + "deep_cached_tokens": [ + 18461, + 18461 + ], + "candidate_only_no_timing_control": true, + "scope": "Candidate-only actual AR cancellation and deep cached continuation qualification; earlier timing flags remain open. No timing significance, process/cable-loss, persistence or default adoption inferred." + } + }, + "mtp": { + "analysis": { + "functional_records": 11, + "client_HTTP_requests": 23, + "server_confirmed_cancellations": 6, + "cancellation_orders": [ + [ + 0, + 1 + ], + [ + 1, + 0 + ] + ], + "survivor_and_replay_hashes_match": true, + "actual_two_row_survivors": true, + "deep_cases": [ + { + "case": "content-preserve0-sampled1", + "cached": 18461, + "prefill": 34, + "accepted": 0, + "proposed": 1, + "exact": true, + "discard_assistant": false + }, + { + "case": "content-preserve1-sampled1", + "cached": 18461, + "prefill": 13, + "accepted": 9, + "proposed": 9, + "exact": true, + "discard_assistant": true + } + ], + "checked_transport_errors_zero": true, + "scope": "Candidate-only MTP functional coverage; two concurrent disconnect orders plus two deep seeded cached/replay histories. No timing-control, confidence, process-loss, cable-loss, persistence or universal deadlock qualification." + }, + "validation": { + "greedy_survivor_replay_and_seeded_continuation_exact": true, + "frozen_harness_hashes_unchanged": true, + "rank_binary_and_serving_settings_match": true, + "2_transport_windows_zero_checked_errors": true, + "all_recorded_server_PIDs_exited": true, + "both_approved_drivers_restored_idle_four_rails": true, + "boot_flags_and_topology_unchanged": true, + "checked_kernel_fault_patterns_absent": true, + "server_confirmed_cancellations": 6, + "deep_cached_tokens": [ + 18461, + 18461 + ], + "candidate_only_no_timing_control": true, + "scope": "Candidate-only actual MTP cancellation and deep cached continuation qualification; earlier timing flags remain open. No timing significance, process/cable-loss, persistence or default adoption inferred." + } + } +} diff --git a/docs/patches/ar-snapshot-turn/standalone-io-cohorts.json b/docs/patches/ar-snapshot-turn/standalone-io-cohorts.json new file mode 100644 index 0000000000..031b44b2a5 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-io-cohorts.json @@ -0,0 +1,189 @@ +{ + "ranks": { + "0": { + "table_reads": 9030, + "fully_linked_native_commands": 9029, + "commands_over10ms": 0, + "missing_native_setup_read_ms": [ + 0.239183 + ], + "cohorts": [] + }, + "1": { + "table_reads": 9030, + "fully_linked_native_commands": 9030, + "commands_over10ms": 198, + "missing_native_setup_read_ms": [], + "cohorts": [ + { + "wait_index": 116, + "WaitRead_ms": 62.285008, + "commands_in_wait": 96, + "slow_commands": 96, + "setup_span_ms": 0.356417, + "distinct_QIDs": [ + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 9, + 11, + 12, + 16, + 18, + 24, + 26, + 28, + 29, + 30, + 31, + 32 + ], + "max_setup_to_CQ_ms": 62.133844, + "max_IRQ_entry_to_CQ_us": 6.75, + "completion_bursts": [ + { + "count": 55, + "offset_from_first_setup_ms": 10.554408, + "span_us": 630.419 + }, + { + "count": 34, + "offset_from_first_setup_ms": 36.316447, + "span_us": 235.202 + }, + { + "count": 7, + "offset_from_first_setup_ms": 62.345536, + "span_us": 2.45 + } + ], + "max_observed_reader_runnable_ms": 0.033179, + "max_block_completion_to_read_return_ms": 0.092537 + }, + { + "wait_index": 117, + "WaitRead_ms": 76.995384, + "commands_in_wait": 96, + "slow_commands": 96, + "setup_span_ms": 0.256822, + "distinct_QIDs": [ + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 9, + 10, + 11, + 12, + 28, + 29, + 30, + 31, + 32 + ], + "max_setup_to_CQ_ms": 76.801031, + "max_IRQ_entry_to_CQ_us": 3.29, + "completion_bursts": [ + { + "count": 59, + "offset_from_first_setup_ms": 21.288282, + "span_us": 287.41 + }, + { + "count": 32, + "offset_from_first_setup_ms": 49.142198, + "span_us": 222.203 + }, + { + "count": 5, + "offset_from_first_setup_ms": 76.967726, + "span_us": 18.379 + } + ], + "max_observed_reader_runnable_ms": 0.01794, + "max_block_completion_to_read_return_ms": 0.069388 + }, + { + "wait_index": 118, + "WaitRead_ms": 32.377372, + "commands_in_wait": 64, + "slow_commands": 6, + "setup_span_ms": 0.234232, + "distinct_QIDs": [ + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 9, + 10, + 11, + 12, + 18, + 19, + 21, + 24, + 28, + 29, + 30, + 31, + 32 + ], + "max_setup_to_CQ_ms": 32.142649, + "max_IRQ_entry_to_CQ_us": 3.68, + "completion_bursts": [ + { + "count": 58, + "offset_from_first_setup_ms": 4.594063, + "span_us": 294.75 + }, + { + "count": 6, + "offset_from_first_setup_ms": 32.100542, + "span_us": 209.552 + } + ], + "max_observed_reader_runnable_ms": 0.016069, + "max_block_completion_to_read_return_ms": 0.064548 + } + ] + } + }, + "conditional_fixed_work_impact": { + "C2_wave_seconds": 3.8347186249993683, + "peer_three_waits_sum_ms": 171.657764, + "ordered_engine_batch_comparison": [ + { + "one_based_engine_batch_ordinal": 8, + "EVO_engine_batch_ms": 116.782502, + "Corsair_engine_batch_ms": 116.747794, + "Corsair_WaitRead_ms": 62.285008 + }, + { + "one_based_engine_batch_ordinal": 9, + "EVO_engine_batch_ms": 130.457753, + "Corsair_engine_batch_ms": 130.378547, + "Corsair_WaitRead_ms": 76.995384 + }, + { + "one_based_engine_batch_ordinal": 10, + "EVO_engine_batch_ms": 75.049902, + "Corsair_engine_batch_ms": 74.996243, + "Corsair_WaitRead_ms": 32.377372 + } + ], + "conditional_latency_saving_upper_pct": 4.476410938756381, + "conditional_throughput_increase_upper_pct": 4.686183782192677, + "scope": "Conditional fixed-work estimate assuming every selected CPU wait removable and critical, no compensating work/policy changes. GPU overlap not measured; actual benefit may be lower. Mirrored ordered call durations, not aligned cross-host clocks. Not attribution of earlier16.5soutlier." + }, + "scope": "Separate diagnostic: long C1 slowdown not reproduced; three actual Corsair I/O tail cohorts identified. Controller fails shutdown-status guard, original failure retained; independent artifacts analyzed. One EVO native setup miss and missing post-run transport-counter snapshot retained. No independent perf-link missed counters. Source/module identities guarded; command request/CID, IRQ-derivedQID and active table FD/TID/bytes joined, no cross-host time alignment. Setup\u2192CQ is software completion-path interval, not pure device service or attribution of old unprofiled plateau." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-modes-validation.json b/docs/patches/ar-snapshot-turn/standalone-modes-validation.json new file mode 100644 index 0000000000..98e8924d7b --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-modes-validation.json @@ -0,0 +1,13 @@ +{ + "24_canonical_identities_exact_within_each_mode": true, + "frozen_harness_hashes_unchanged": true, + "rank_binary_and_AR_MTP_serving_settings_match": true, + "8_transport_windows_zero_checked_errors": true, + "all_recorded_server_PIDs_exited": true, + "both_approved_drivers_restored_idle_four_rails": true, + "boot_flags_and_topology_unchanged": true, + "checked_kernel_fault_patterns_absent": true, + "strict_phase_flags": 24, + "adaptive_work_comparisons": 6, + "scope": "Standalone published-base bounded parent/candidate checks in AR and MTP. All timing flags retained; no significance/equivalence, integration-stack gain transfer, cancellation/cache qualification or default adoption inferred." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-modes.json b/docs/patches/ar-snapshot-turn/standalone-modes.json new file mode 100644 index 0000000000..01e4442355 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-modes.json @@ -0,0 +1,327 @@ +{ + "requests": 24, + "identities_match_within_each_mode": true, + "mode_AR_MTP_verified": true, + "rates": { + "ar-baseline": { + "C1_tps": 37.19057444121908, + "C2_wave_tps": 56.34256488624545, + "pp32768_tps": 2096.4342250638574 + }, + "ar-candidate": { + "C1_tps": 37.26704061255103, + "C2_wave_tps": 56.221095824609336, + "pp32768_tps": 2098.7904592890463 + }, + "mtp-baseline": { + "C1_tps": 56.452435266784306, + "C2_wave_tps": 66.71936245309556, + "pp32768_tps": 2005.4401429343386 + }, + "mtp-candidate": { + "C1_tps": 56.086704840042344, + "C2_wave_tps": 55.58649384239276, + "pp32768_tps": 2004.548613214956 + } + }, + "strict_flags": [ + { + "mode": "ar", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_ms": 59.537165, + "candidate_ms": 85.784209, + "delta_ms": 26.247044000000002 + }, + { + "mode": "ar", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 59.583184, + "candidate_ms": 86.487638, + "delta_ms": 26.904454 + }, + { + "mode": "ar", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 102.670771, + "candidate_ms": 128.858508, + "delta_ms": 26.187737 + }, + { + "mode": "ar", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 59.537165, + "candidate_ms": 85.784209, + "delta_ms": 26.247044000000002 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "wall_ms", + "baseline_ms": 3836.8046440009493, + "candidate_ms": 4605.435282999679, + "delta_ms": 768.6306389987294 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "client_event_inter_token_ms", + "baseline_ms": 27.411561755898433, + "candidate_ms": 34.008551472451956, + "delta_ms": 6.596989716553523 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "decode_ms", + "baseline_ms": 3433.3033930000006, + "candidate_ms": 4203.232067000001, + "delta_ms": 769.9286740000002 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_inter_token_ms", + "baseline_ms": 27.412009929133863, + "candidate_ms": 34.00928507874016, + "delta_ms": 6.5972751496063005 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 142.984974, + "candidate_ms": 158.14458, + "delta_ms": 15.159605999999997 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 52.063029, + "candidate_ms": 118.271195, + "delta_ms": 66.208166 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 108.053161, + "candidate_ms": 177.26011699999998, + "delta_ms": 69.20695599999998 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.decode_ms", + "baseline_ms": 3433.3033930000006, + "candidate_ms": 4203.232067000001, + "delta_ms": 769.9286740000002 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.mean_inter_token_ms", + "baseline_ms": 27.412009929133863, + "candidate_ms": 34.00928507874016, + "delta_ms": 6.5972751496063005 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 142.984974, + "candidate_ms": 158.14458, + "delta_ms": 15.159605999999997 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "wall_ms", + "baseline_ms": 3826.63329999923, + "candidate_ms": 4594.483072000003, + "delta_ms": 767.8497720007726 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "client_event_inter_token_ms", + "baseline_ms": 26.0369011496185, + "candidate_ms": 33.24427100001123, + "delta_ms": 7.20736985039273 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "decode_ms", + "baseline_ms": 3254.5274279999976, + "candidate_ms": 4132.357625000001, + "delta_ms": 877.830197000003 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_inter_token_ms", + "baseline_ms": 26.037358385826778, + "candidate_ms": 33.244581149606304, + "delta_ms": 7.2072227637795265 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_ms": 142.984573, + "candidate_ms": 158.149839, + "delta_ms": 15.165265999999974 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 97.625133, + "candidate_ms": 134.596615, + "delta_ms": 36.97148200000001 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 121.42186, + "candidate_ms": 159.305835, + "delta_ms": 37.88397500000001 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.decode_ms", + "baseline_ms": 3254.5274279999976, + "candidate_ms": 4132.357625000001, + "delta_ms": 877.830197000003 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.mean_inter_token_ms", + "baseline_ms": 26.037358385826778, + "candidate_ms": 33.244581149606304, + "delta_ms": 7.2072227637795265 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 142.984573, + "candidate_ms": 158.149839, + "delta_ms": 15.165265999999974 + } + ], + "adaptive_work_differences": [ + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 105, + "candidate": 108 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 62, + "candidate": 53 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 60, + "candidate": 42 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 104, + "candidate": 108 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 65, + "candidate": 55 + }, + { + "mode": "mtp", + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 58, + "candidate": 41 + } + ], + "checked_transport_errors_zero": true, + "scope": "Standalone published-base parentb6d4/ac0f versus task92bf/0ced. No HC/cooperative/cache integration patches. One pair per mode; bounded production checks, not significance/equivalence or transfer of integration-stack gains. Timing flags remain open." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-C1.json b/docs/patches/ar-snapshot-turn/standalone-mtp-C1.json new file mode 100644 index 0000000000..83514fa6ed --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-C1.json @@ -0,0 +1,22 @@ +{ + "C1_first": { + "latency_reduction_pct": 0.1900034889039781, + "bootstrap95_latency_reduction_pct": [ + -1.07296939852759, + 1.6324433777565872 + ], + "signflip_p": 0.734375, + "balanced_p": 0.8285714285714286, + "scope": "Declared secondary C1 endpoint; exploratory inference, not a new primary or equivalence claim." + }, + "C1_repeat": { + "latency_reduction_pct": -5.398224414496755, + "bootstrap95_latency_reduction_pct": [ + -11.895327868253137, + -0.5996790169639388 + ], + "signflip_p": 0.078125, + "balanced_p": 0.05714285714285714, + "scope": "Declared secondary C1 endpoint; exploratory inference, not a new primary or equivalence claim." + } +} diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-confidence.json b/docs/patches/ar-snapshot-turn/standalone-mtp-confidence.json new file mode 100644 index 0000000000..48a749fc0d --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-confidence.json @@ -0,0 +1,1953 @@ +{ + "pairs": 8, + "starts": 16, + "requests": 80, + "identities_match": true, + "primary": { + "paired_log_ratios": [ + 0.01490189077725202, + 0.3137606597144458, + -0.0571139282757867, + -0.004784545635439341, + 0.8989570278668737, + 0.11322398584396587, + -0.01800185336464093, + 0.08785144990520202 + ], + "mean_log_ratio": 0.16859933585398404, + "wave_latency_reduction_pct": 15.515266438108434, + "paired_geometric_throughput_increase_pct": 18.364579947147845, + "bootstrap95_latency_reduction_pct": [ + 0.6656497886195378, + 32.93826001072977 + ], + "bootstrap95_throughput_increase_pct": [ + 0.6701103769270703, + 49.116321789443326 + ], + "predeclared_two_sided_signflip_p": 0.109375, + "signflip_assumption": "Pairwise sign symmetry;256signpatterns, not the constrained assignment distribution.", + "balanced_assignment_sensitivity_p": 0.14285714285714285, + "balanced_assignments": 70, + "positive_pairs": 5, + "negative_pairs": 3 + }, + "rates": [ + { + "pair": 1, + "order": "BC", + "baseline_C2_wave_seconds": 3.6549768170007155, + "baseline_C2_wave_tps": 70.04148393205797, + "baseline_C1_first_tps": 23.59967021144183, + "baseline_C1_repeat_tps": 56.4917395801175, + "baseline_C2_0_wall_ms": 3654.81268199801, + "baseline_C2_0_first_gap_ms": 122.950246, + "baseline_C2_0_max_gap_ms": 122.902567, + "baseline_C2_0_snapshot_ms": 182.784144, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 81, + "baseline_C2_0_accepted": 55, + "baseline_C2_0_rounds": 64, + "baseline_C2_1_wall_ms": 3644.550639000954, + "baseline_C2_1_first_gap_ms": 137.472561, + "baseline_C2_1_max_gap_ms": 137.229698, + "baseline_C2_1_snapshot_ms": 165.896978, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 81, + "baseline_C2_1_accepted": 58, + "baseline_C2_1_rounds": 63, + "candidate_C2_wave_seconds": 3.6009145669995632, + "candidate_C2_wave_tps": 71.0930501784468, + "candidate_C1_first_tps": 23.591496793299907, + "candidate_C1_repeat_tps": 56.75202125462638, + "candidate_C2_0_wall_ms": 3600.743701997999, + "candidate_C2_0_first_gap_ms": 118.758012, + "candidate_C2_0_max_gap_ms": 118.757542, + "candidate_C2_0_snapshot_ms": 175.76620400000002, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 100, + "candidate_C2_0_accepted": 62, + "candidate_C2_0_rounds": 61, + "candidate_C2_1_wall_ms": 3590.590046002035, + "candidate_C2_1_first_gap_ms": 135.682344, + "candidate_C2_1_max_gap_ms": 135.290086, + "candidate_C2_1_snapshot_ms": 160.640487, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 100, + "candidate_C2_1_accepted": 63, + "candidate_C2_1_rounds": 60 + }, + { + "pair": 2, + "order": "CB", + "baseline_C2_wave_seconds": 4.922251075000531, + "baseline_C2_wave_tps": 52.00872448384246, + "baseline_C1_first_tps": 56.07865490500618, + "baseline_C1_repeat_tps": 56.5300012065303, + "baseline_C2_0_wall_ms": 4922.251075000531, + "baseline_C2_0_first_gap_ms": 52.445739, + "baseline_C2_0_max_gap_ms": 160.838241, + "baseline_C2_0_snapshot_ms": 114.596645, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 82, + "baseline_C2_0_accepted": 38, + "baseline_C2_0_rounds": 32, + "baseline_C2_1_wall_ms": 4696.530388999236, + "baseline_C2_1_first_gap_ms": 97.100211, + "baseline_C2_1_max_gap_ms": 160.844321, + "baseline_C2_1_snapshot_ms": 123.261537, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 77, + "baseline_C2_1_accepted": 43, + "baseline_C2_1_rounds": 28, + "candidate_C2_wave_seconds": 3.5966587940019963, + "candidate_C2_wave_tps": 71.1771715534765, + "candidate_C1_first_tps": 56.23754712833355, + "candidate_C1_repeat_tps": 56.42764486238818, + "candidate_C2_0_wall_ms": 3596.6587940019963, + "candidate_C2_0_first_gap_ms": 120.578427, + "candidate_C2_0_max_gap_ms": 120.609826, + "candidate_C2_0_snapshot_ms": 177.345496, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 90, + "candidate_C2_0_accepted": 60, + "candidate_C2_0_rounds": 63, + "candidate_C2_1_wall_ms": 3586.008872000093, + "candidate_C2_1_first_gap_ms": 136.786461, + "candidate_C2_1_max_gap_ms": 136.766952, + "candidate_C2_1_snapshot_ms": 161.634197, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 90, + "candidate_C2_1_accepted": 61, + "candidate_C2_1_rounds": 62 + }, + { + "pair": 3, + "order": "CB", + "baseline_C2_wave_seconds": 4.702511499002867, + "baseline_C2_wave_tps": 54.43899500390013, + "baseline_C1_first_tps": 56.333560832679815, + "baseline_C1_repeat_tps": 54.836427916903816, + "baseline_C2_0_wall_ms": 4702.511499002867, + "baseline_C2_0_first_gap_ms": 116.657105, + "baseline_C2_0_max_gap_ms": 168.316946, + "baseline_C2_0_snapshot_ms": 179.185511, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 134, + "baseline_C2_0_accepted": 63, + "baseline_C2_0_rounds": 47, + "baseline_C2_1_wall_ms": 4484.888070001034, + "baseline_C2_1_first_gap_ms": 133.140421, + "baseline_C2_1_max_gap_ms": 168.317606, + "baseline_C2_1_snapshot_ms": 158.653206, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 130, + "baseline_C2_1_accepted": 72, + "baseline_C2_1_rounds": 44, + "candidate_C2_wave_seconds": 4.9789083280011255, + "candidate_C2_wave_tps": 51.4168936512185, + "candidate_C1_first_tps": 56.127134089982334, + "candidate_C1_repeat_tps": 47.35200932479234, + "candidate_C2_0_wall_ms": 4978.623606999463, + "candidate_C2_0_first_gap_ms": 200.187152, + "candidate_C2_0_max_gap_ms": 220.693468, + "candidate_C2_0_snapshot_ms": 176.57382, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 88, + "candidate_C2_0_accepted": 48, + "candidate_C2_0_rounds": 48, + "candidate_C2_1_wall_ms": 4968.5915670015675, + "candidate_C2_1_first_gap_ms": 330.026642, + "candidate_C2_1_max_gap_ms": 329.899216, + "candidate_C2_1_snapshot_ms": 294.962573, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 85, + "candidate_C2_1_accepted": 52, + "candidate_C2_1_rounds": 45 + }, + { + "pair": 4, + "order": "CB", + "baseline_C2_wave_seconds": 6.700406797001051, + "baseline_C2_wave_tps": 38.206635470935844, + "baseline_C1_first_tps": 56.022081199484276, + "baseline_C1_repeat_tps": 54.64621322933445, + "baseline_C2_0_wall_ms": 6700.406797001051, + "baseline_C2_0_first_gap_ms": 163.003916, + "baseline_C2_0_max_gap_ms": 219.763765, + "baseline_C2_0_snapshot_ms": 177.893809, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 128, + "baseline_C2_0_accepted": 66, + "baseline_C2_0_rounds": 55, + "baseline_C2_1_wall_ms": 6689.660429001378, + "baseline_C2_1_first_gap_ms": 294.092488, + "baseline_C2_1_max_gap_ms": 294.011431, + "baseline_C2_1_snapshot_ms": 259.59720200000004, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 128, + "baseline_C2_1_accepted": 69, + "baseline_C2_1_rounds": 54, + "candidate_C2_wave_seconds": 6.732542014000501, + "candidate_C2_wave_tps": 38.024270694136206, + "candidate_C1_first_tps": 56.44300484146367, + "candidate_C1_repeat_tps": 44.21779110815743, + "candidate_C2_0_wall_ms": 6732.542014000501, + "candidate_C2_0_first_gap_ms": 201.458343, + "candidate_C2_0_max_gap_ms": 221.348587, + "candidate_C2_0_snapshot_ms": 176.54369, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 128, + "candidate_C2_0_accepted": 66, + "candidate_C2_0_rounds": 55, + "candidate_C2_1_wall_ms": 6721.600312001101, + "candidate_C2_1_first_gap_ms": 332.285814, + "candidate_C2_1_max_gap_ms": 331.950254, + "candidate_C2_1_snapshot_ms": 294.335272, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 128, + "candidate_C2_1_accepted": 69, + "candidate_C2_1_rounds": 54 + }, + { + "pair": 5, + "order": "CB", + "baseline_C2_wave_seconds": 16.55441861300278, + "baseline_C2_wave_tps": 15.46414923922022, + "baseline_C1_first_tps": 56.25915932097545, + "baseline_C1_repeat_tps": 55.393405196577, + "baseline_C2_0_wall_ms": 16554.41861300278, + "baseline_C2_0_first_gap_ms": 201.702206, + "baseline_C2_0_max_gap_ms": 714.392705, + "baseline_C2_0_snapshot_ms": 177.426713, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 156, + "baseline_C2_0_accepted": 64, + "baseline_C2_0_rounds": 50, + "baseline_C2_1_wall_ms": 15724.54369800107, + "baseline_C2_1_first_gap_ms": 329.531116, + "baseline_C2_1_max_gap_ms": 714.393595, + "baseline_C2_1_snapshot_ms": 294.345711, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 156, + "baseline_C2_1_accepted": 74, + "baseline_C2_1_rounds": 49, + "candidate_C2_wave_seconds": 6.737547753997205, + "candidate_C2_wave_tps": 37.9960201169813, + "candidate_C1_first_tps": 56.166405252642456, + "candidate_C1_repeat_tps": 52.26350615807504, + "candidate_C2_0_wall_ms": 6737.079917998926, + "candidate_C2_0_first_gap_ms": 200.278169, + "candidate_C2_0_max_gap_ms": 219.753015, + "candidate_C2_0_snapshot_ms": 178.56900000000002, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 128, + "candidate_C2_0_accepted": 66, + "candidate_C2_0_rounds": 55, + "candidate_C2_1_wall_ms": 6727.157915996941, + "candidate_C2_1_first_gap_ms": 333.325832, + "candidate_C2_1_max_gap_ms": 333.161437, + "candidate_C2_1_snapshot_ms": 296.53342399999997, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 128, + "candidate_C2_1_accepted": 69, + "candidate_C2_1_rounds": 54 + }, + { + "pair": 6, + "order": "BC", + "baseline_C2_wave_seconds": 7.538474215998576, + "baseline_C2_wave_tps": 33.959126563927526, + "baseline_C1_first_tps": 56.270503312547675, + "baseline_C1_repeat_tps": 44.49262508378341, + "baseline_C2_0_wall_ms": 7538.26682199724, + "baseline_C2_0_first_gap_ms": 200.259799, + "baseline_C2_0_max_gap_ms": 406.537949, + "baseline_C2_0_snapshot_ms": 177.22777, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 128, + "baseline_C2_0_accepted": 66, + "baseline_C2_0_rounds": 55, + "baseline_C2_1_wall_ms": 7527.889453998796, + "baseline_C2_1_first_gap_ms": 329.676183, + "baseline_C2_1_max_gap_ms": 406.539449, + "baseline_C2_1_snapshot_ms": 294.41154900000004, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 128, + "baseline_C2_1_accepted": 69, + "baseline_C2_1_rounds": 54, + "candidate_C2_wave_seconds": 6.731485296000756, + "candidate_C2_wave_tps": 38.030239797462265, + "candidate_C1_first_tps": 56.09505479191702, + "candidate_C1_repeat_tps": 44.23055655450614, + "candidate_C2_0_wall_ms": 6731.485296000756, + "candidate_C2_0_first_gap_ms": 200.92724, + "candidate_C2_0_max_gap_ms": 219.860963, + "candidate_C2_0_snapshot_ms": 176.77308399999998, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 128, + "candidate_C2_0_accepted": 66, + "candidate_C2_0_rounds": 55, + "candidate_C2_1_wall_ms": 6651.509811999858, + "candidate_C2_1_first_gap_ms": 330.041651, + "candidate_C2_1_max_gap_ms": 330.040691, + "candidate_C2_1_snapshot_ms": 293.95494199999996, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 128, + "candidate_C2_1_accepted": 69, + "candidate_C2_1_rounds": 54 + }, + { + "pair": 7, + "order": "BC", + "baseline_C2_wave_seconds": 6.727469685996766, + "baseline_C2_wave_tps": 38.05293995346634, + "baseline_C1_first_tps": 56.164423578710505, + "baseline_C1_repeat_tps": 55.235255676698195, + "baseline_C2_0_wall_ms": 6727.469685996766, + "baseline_C2_0_first_gap_ms": 195.017237, + "baseline_C2_0_max_gap_ms": 218.284339, + "baseline_C2_0_snapshot_ms": 176.911049, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 128, + "baseline_C2_0_accepted": 66, + "baseline_C2_0_rounds": 55, + "baseline_C2_1_wall_ms": 6716.960770998412, + "baseline_C2_1_first_gap_ms": 325.342112, + "baseline_C2_1_max_gap_ms": 325.316763, + "baseline_C2_1_snapshot_ms": 291.204274, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 128, + "baseline_C2_1_accepted": 69, + "baseline_C2_1_rounds": 54, + "candidate_C2_wave_seconds": 6.849673253997025, + "candidate_C2_wave_tps": 37.37404552116628, + "candidate_C1_first_tps": 54.46987402381068, + "candidate_C1_repeat_tps": 55.27600328355113, + "candidate_C2_0_wall_ms": 6849.418331999914, + "candidate_C2_0_first_gap_ms": 200.91889, + "candidate_C2_0_max_gap_ms": 219.400437, + "candidate_C2_0_snapshot_ms": 176.17011100000002, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 128, + "candidate_C2_0_accepted": 66, + "candidate_C2_0_rounds": 55, + "candidate_C2_1_wall_ms": 6839.325673998246, + "candidate_C2_1_first_gap_ms": 332.216276, + "candidate_C2_1_max_gap_ms": 331.941475, + "candidate_C2_1_snapshot_ms": 295.759609, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 128, + "candidate_C2_1_accepted": 69, + "candidate_C2_1_rounds": 54 + }, + { + "pair": 8, + "order": "BC", + "baseline_C2_wave_seconds": 5.10869687900049, + "baseline_C2_wave_tps": 50.11062626406718, + "baseline_C1_first_tps": 53.926272057155856, + "baseline_C1_repeat_tps": 55.59070191592396, + "baseline_C2_0_wall_ms": 5108.69687900049, + "baseline_C2_0_first_gap_ms": 161.408634, + "baseline_C2_0_max_gap_ms": 162.935618, + "baseline_C2_0_snapshot_ms": 221.490184, + "baseline_C2_0_width": 2, + "baseline_C2_0_drafts": 118, + "baseline_C2_0_accepted": 55, + "baseline_C2_0_rounds": 54, + "baseline_C2_1_wall_ms": 5033.562289998372, + "baseline_C2_1_first_gap_ms": 177.054235, + "baseline_C2_1_max_gap_ms": 176.848361, + "baseline_C2_1_snapshot_ms": 201.86127299999998, + "baseline_C2_1_width": 2, + "baseline_C2_1_drafts": 114, + "baseline_C2_1_accepted": 59, + "baseline_C2_1_rounds": 51, + "candidate_C2_wave_seconds": 4.679039753002144, + "candidate_C2_wave_tps": 54.71208057929973, + "candidate_C1_first_tps": 56.37037806312557, + "candidate_C1_repeat_tps": 55.504109740407394, + "candidate_C2_0_wall_ms": 4679.039753002144, + "candidate_C2_0_first_gap_ms": 119.16246, + "candidate_C2_0_max_gap_ms": 176.535411, + "candidate_C2_0_snapshot_ms": 216.243461, + "candidate_C2_0_width": 2, + "candidate_C2_0_drafts": 130, + "candidate_C2_0_accepted": 61, + "candidate_C2_0_rounds": 55, + "candidate_C2_1_wall_ms": 4668.3526530032395, + "candidate_C2_1_first_gap_ms": 134.803241, + "candidate_C2_1_max_gap_ms": 176.538791, + "candidate_C2_1_snapshot_ms": 159.76601399999998, + "candidate_C2_1_width": 2, + "candidate_C2_1_drafts": 130, + "candidate_C2_1_accepted": 67, + "candidate_C2_1_rounds": 54 + } + ], + "strict_flags": [ + { + "pair": 1, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "client_ttft_ms", + "baseline_ms": 1179.5443580012943, + "candidate_ms": 1272.602338998695, + "delta_ms": 93.05798099740059 + }, + { + "pair": 1, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "prefill_ms", + "baseline_ms": 1174.12574, + "candidate_ms": 1267.0680940000002, + "delta_ms": 92.94235400000025 + }, + { + "pair": 1, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "server_ttft_ms", + "baseline_ms": 1178.856258, + "candidate_ms": 1271.945609, + "delta_ms": 93.08935100000008 + }, + { + "pair": 1, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "raw.prefill_ms", + "baseline_ms": 1174.12574, + "candidate_ms": 1267.0680940000002, + "delta_ms": 92.94235400000025 + }, + { + "pair": 1, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "raw.ttft_ms", + "baseline_ms": 1178.856258, + "candidate_ms": 1271.945609, + "delta_ms": 93.08935100000008 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 52.445739, + "candidate_ms": 120.578427, + "delta_ms": 68.132688 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 114.596645, + "candidate_ms": 177.345496, + "delta_ms": 62.748851 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 97.100211, + "candidate_ms": 136.786461, + "delta_ms": 39.68625 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 123.261537, + "candidate_ms": 161.634197, + "delta_ms": 38.372659999999996 + }, + { + "pair": 3, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "wall_ms", + "baseline_ms": 3214.352348997636, + "candidate_ms": 3542.390759997943, + "delta_ms": 328.03841100030695 + }, + { + "pair": 3, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "decode_ms", + "baseline_ms": 2060.673977, + "candidate_ms": 2386.382365, + "delta_ms": 325.708388 + }, + { + "pair": 3, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 108.240077, + "candidate_ms": 140.437193, + "delta_ms": 32.19711600000001 + }, + { + "pair": 3, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.decode_ms", + "baseline_ms": 2060.673977, + "candidate_ms": 2386.382365, + "delta_ms": 325.708388 + }, + { + "pair": 3, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 108.240077, + "candidate_ms": 140.437193, + "delta_ms": 32.19711600000001 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "wall_ms", + "baseline_ms": 4702.511499002867, + "candidate_ms": 4978.623606999463, + "delta_ms": 276.112107996596 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "client_ttft_ms", + "baseline_ms": 285.89282300163177, + "candidate_ms": 366.5821760005201, + "delta_ms": 80.68935299888835 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "prefill_ms", + "baseline_ms": 174.331507, + "candidate_ms": 257.923051, + "delta_ms": 83.591544 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_ttft_ms", + "baseline_ms": 285.103017, + "candidate_ms": 365.947405, + "delta_ms": 80.84438799999998 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 168.316946, + "candidate_ms": 220.693468, + "delta_ms": 52.376521999999994 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 116.657105, + "candidate_ms": 200.187152, + "delta_ms": 83.530047 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.prefill_ms", + "baseline_ms": 174.331507, + "candidate_ms": 257.923051, + "delta_ms": 83.591544 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.ttft_ms", + "baseline_ms": 285.103017, + "candidate_ms": 365.947405, + "delta_ms": 80.84438799999998 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 168.316946, + "candidate_ms": 220.693468, + "delta_ms": 52.376521999999994 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "wall_ms", + "baseline_ms": 4484.888070001034, + "candidate_ms": 4968.5915670015675, + "delta_ms": 483.7034970005334 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "client_ttft_ms", + "baseline_ms": 345.64763299931656, + "candidate_ms": 426.4964809990488, + "delta_ms": 80.84884799973224 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "queue_ms", + "baseline_ms": 102.797241, + "candidate_ms": 186.24142, + "delta_ms": 83.444179 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_ttft_ms", + "baseline_ms": 345.009503, + "candidate_ms": 425.993826, + "delta_ms": 80.98432300000002 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_ms": 168.317606, + "candidate_ms": 329.899216, + "delta_ms": 161.58161 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 133.140421, + "candidate_ms": 330.026642, + "delta_ms": 196.88622099999998 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 158.653206, + "candidate_ms": 294.962573, + "delta_ms": 136.309367 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.queue_ms", + "baseline_ms": 102.797241, + "candidate_ms": 186.24142, + "delta_ms": 83.444179 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.ttft_ms", + "baseline_ms": 345.009503, + "candidate_ms": 425.993826, + "delta_ms": 80.98432300000002 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 168.317606, + "candidate_ms": 329.899216, + "delta_ms": 161.58161 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "wall_ms", + "baseline_ms": 3219.166735001636, + "candidate_ms": 3711.333426999772, + "delta_ms": 492.16669199813623 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "client_event_inter_token_ms", + "baseline_ms": 18.481723375024167, + "candidate_ms": 22.837694562505412, + "delta_ms": 4.355971187481245 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "decode_ms", + "baseline_ms": 2067.846852, + "candidate_ms": 2555.5324490000007, + "delta_ms": 487.6855970000006 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "server_inter_token_ms", + "baseline_ms": 18.482724062500004, + "candidate_ms": 22.836956187499997, + "delta_ms": 4.354232124999992 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 103.391112, + "candidate_ms": 142.128121, + "delta_ms": 38.737008999999986 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.decode_ms", + "baseline_ms": 2067.846852, + "candidate_ms": 2555.5324490000007, + "delta_ms": 487.6855970000006 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.mean_inter_token_ms", + "baseline_ms": 18.482724062500004, + "candidate_ms": 22.836956187499997, + "delta_ms": 4.354232124999992 + }, + { + "pair": 4, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 103.391112, + "candidate_ms": 142.128121, + "delta_ms": 38.737008999999986 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 163.003916, + "candidate_ms": 201.458343, + "delta_ms": 38.45442700000001 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_ms": 294.011431, + "candidate_ms": 331.950254, + "delta_ms": 37.93882299999996 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 294.092488, + "candidate_ms": 332.285814, + "delta_ms": 38.19332600000001 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_ms": 259.59720200000004, + "candidate_ms": 294.335272, + "delta_ms": 34.73806999999994 + }, + { + "pair": 4, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 294.011431, + "candidate_ms": 331.950254, + "delta_ms": 37.93882299999996 + }, + { + "pair": 5, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "decode_ms", + "baseline_ms": 2039.9540270000005, + "candidate_ms": 2162.120537, + "delta_ms": 122.16650999999933 + }, + { + "pair": 5, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 95.187908, + "candidate_ms": 140.554179, + "delta_ms": 45.36627100000001 + }, + { + "pair": 5, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.decode_ms", + "baseline_ms": 2039.9540270000005, + "candidate_ms": 2162.120537, + "delta_ms": 122.16650999999933 + }, + { + "pair": 5, + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 95.187908, + "candidate_ms": 140.554179, + "delta_ms": 45.36627100000001 + }, + { + "pair": 7, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 64.546055, + "candidate_ms": 110.418872, + "delta_ms": 45.872817 + }, + { + "pair": 7, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_ms": 51.690211, + "candidate_ms": 110.430642, + "delta_ms": 58.74043100000001 + }, + { + "pair": 7, + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 64.546055, + "candidate_ms": 110.418872, + "delta_ms": 45.872817 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_ms": 162.935618, + "candidate_ms": 176.535411, + "delta_ms": 13.599793000000005 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_ms": 162.935618, + "candidate_ms": 176.535411, + "delta_ms": 13.599793000000005 + } + ], + "adaptive_work_differences": [ + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 81, + "candidate": 100 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 55, + "candidate": 62 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 64, + "candidate": 61 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 81, + "candidate": 100 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 58, + "candidate": 63 + }, + { + "pair": 1, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 63, + "candidate": 60 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 82, + "candidate": 90 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 38, + "candidate": 60 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 32, + "candidate": 63 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 77, + "candidate": 90 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 43, + "candidate": 61 + }, + { + "pair": 2, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 28, + "candidate": 62 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 134, + "candidate": 88 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 63, + "candidate": 48 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 47, + "candidate": 48 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 130, + "candidate": 85 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 72, + "candidate": 52 + }, + { + "pair": 3, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 44, + "candidate": 45 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 156, + "candidate": 128 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 64, + "candidate": 66 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 50, + "candidate": 55 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 156, + "candidate": 128 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 74, + "candidate": 69 + }, + { + "pair": 5, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 49, + "candidate": 54 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_tokens", + "baseline": 118, + "candidate": 130 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "draft_accepted_tokens", + "baseline": 55, + "candidate": 61 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.draft_rounds", + "baseline": 54, + "candidate": 55 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_tokens", + "baseline": 114, + "candidate": 130 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "draft_accepted_tokens", + "baseline": 59, + "candidate": 67 + }, + { + "pair": 8, + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.draft_rounds", + "baseline": 51, + "candidate": 54 + } + ], + "per_request_ranges": [ + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "client_ttft_ms", + "baseline_range_ms": [ + 1123.3197820001806, + 1273.3891159987252 + ], + "candidate_range_ms": [ + 1117.1467369968013, + 1272.602338998695 + ], + "flagged_pairs": [ + 1 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "prefill_ms", + "baseline_range_ms": [ + 1117.907895, + 1267.911109 + ], + "candidate_range_ms": [ + 1111.848176, + 1267.0680940000002 + ], + "flagged_pairs": [ + 1 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "server_ttft_ms", + "baseline_range_ms": [ + 1122.604084, + 1272.618049 + ], + "candidate_range_ms": [ + 1116.41166, + 1271.945609 + ], + "flagged_pairs": [ + 1 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_range_ms": [ + 64.113179, + 143.51434 + ], + "candidate_range_ms": [ + 64.323463, + 132.678215 + ], + "flagged_pairs": [ + 7 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_range_ms": [ + 50.916844, + 143.980836 + ], + "candidate_range_ms": [ + 50.258234, + 132.768992 + ], + "flagged_pairs": [ + 7 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "raw.prefill_ms", + "baseline_range_ms": [ + 1117.907895, + 1267.911109 + ], + "candidate_range_ms": [ + 1111.848176, + 1267.0680940000002 + ], + "flagged_pairs": [ + 1 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "raw.ttft_ms", + "baseline_range_ms": [ + 1122.604084, + 1272.618049 + ], + "candidate_range_ms": [ + 1116.41166, + 1271.945609 + ], + "flagged_pairs": [ + 1 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_range_ms": [ + 64.113179, + 143.51434 + ], + "candidate_range_ms": [ + 64.323463, + 132.678215 + ], + "flagged_pairs": [ + 7 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "wall_ms", + "baseline_range_ms": [ + 3147.3483169975225, + 3690.7848740011104 + ], + "candidate_range_ms": [ + 3151.6618069981632, + 3711.333426999772 + ], + "flagged_pairs": [ + 3, + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "client_event_inter_token_ms", + "baseline_range_ms": [ + 17.864912839286262, + 22.694723303564906 + ], + "candidate_range_ms": [ + 17.798399026787592, + 22.837694562505412 + ], + "flagged_pairs": [ + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "decode_ms", + "baseline_range_ms": [ + 1998.9385740000007, + 2539.7467509999997 + ], + "candidate_range_ms": [ + 1991.11851, + 2555.5324490000007 + ], + "flagged_pairs": [ + 3, + 4, + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "server_inter_token_ms", + "baseline_range_ms": [ + 17.866908401785714, + 22.696028714285717 + ], + "candidate_range_ms": [ + 17.796993535714297, + 22.836956187499997 + ], + "flagged_pairs": [ + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_range_ms": [ + 63.513207, + 140.744233 + ], + "candidate_range_ms": [ + 64.165778, + 142.128121 + ], + "flagged_pairs": [ + 3, + 4, + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.decode_ms", + "baseline_range_ms": [ + 1998.9385740000007, + 2539.7467509999997 + ], + "candidate_range_ms": [ + 1991.11851, + 2555.5324490000007 + ], + "flagged_pairs": [ + 3, + 4, + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.mean_inter_token_ms", + "baseline_range_ms": [ + 17.866908401785714, + 22.696028714285717 + ], + "candidate_range_ms": [ + 17.796993535714297, + 22.836956187499997 + ], + "flagged_pairs": [ + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "pp2048-tg128", + "repetition": 2, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_range_ms": [ + 63.513207, + 140.744233 + ], + "candidate_range_ms": [ + 64.165778, + 142.128121 + ], + "flagged_pairs": [ + 3, + 4, + 5 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "wall_ms", + "baseline_range_ms": [ + 3654.81268199801, + 16554.41861300278 + ], + "candidate_range_ms": [ + 3596.6587940019963, + 6849.418331999914 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "client_ttft_ms", + "baseline_range_ms": [ + 285.89282300163177, + 367.47454999931506 + ], + "candidate_range_ms": [ + 282.5004660007835, + 368.48645899954136 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "prefill_ms", + "baseline_range_ms": [ + 171.782123, + 257.830705 + ], + "candidate_range_ms": [ + 172.975177, + 258.52511300000003 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_ttft_ms", + "baseline_range_ms": [ + 285.103017, + 366.7799 + ], + "candidate_range_ms": [ + 281.729819, + 367.542498 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "server_max_inter_token_ms", + "baseline_range_ms": [ + 122.902567, + 714.392705 + ], + "candidate_range_ms": [ + 118.757542, + 221.348587 + ], + "flagged_pairs": [ + 3, + 8 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "first_followup_content_gap_ms", + "baseline_range_ms": [ + 52.445739, + 201.702206 + ], + "candidate_range_ms": [ + 118.758012, + 201.458343 + ], + "flagged_pairs": [ + 2, + 3, + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.cache_snapshot_ms", + "baseline_range_ms": [ + 114.596645, + 221.490184 + ], + "candidate_range_ms": [ + 175.76620400000002, + 216.243461 + ], + "flagged_pairs": [ + 2 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.prefill_ms", + "baseline_range_ms": [ + 171.782123, + 257.830705 + ], + "candidate_range_ms": [ + 172.975177, + 258.52511300000003 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.ttft_ms", + "baseline_range_ms": [ + 285.103017, + 366.7799 + ], + "candidate_range_ms": [ + 281.729819, + 367.542498 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 0, + "metric": "raw.max_inter_token_ms", + "baseline_range_ms": [ + 122.902567, + 714.392705 + ], + "candidate_range_ms": [ + 118.757542, + 221.348587 + ], + "flagged_pairs": [ + 3, + 8 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "wall_ms", + "baseline_range_ms": [ + 3644.550639000954, + 15724.54369800107 + ], + "candidate_range_ms": [ + 3586.008872000093, + 6839.325673998246 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "client_ttft_ms", + "baseline_range_ms": [ + 345.64763299931656, + 427.83511100060423 + ], + "candidate_range_ms": [ + 342.3825410027348, + 429.2265089970897 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "queue_ms", + "baseline_range_ms": [ + 100.630695, + 186.021056 + ], + "candidate_range_ms": [ + 101.45565, + 187.309388 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_ttft_ms", + "baseline_range_ms": [ + 345.009503, + 427.251068 + ], + "candidate_range_ms": [ + 341.875996, + 428.800002 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "server_max_inter_token_ms", + "baseline_range_ms": [ + 137.229698, + 714.393595 + ], + "candidate_range_ms": [ + 135.290086, + 333.161437 + ], + "flagged_pairs": [ + 3, + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "first_followup_content_gap_ms", + "baseline_range_ms": [ + 97.100211, + 329.676183 + ], + "candidate_range_ms": [ + 134.803241, + 333.325832 + ], + "flagged_pairs": [ + 2, + 3, + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.cache_snapshot_ms", + "baseline_range_ms": [ + 123.261537, + 294.41154900000004 + ], + "candidate_range_ms": [ + 159.76601399999998, + 296.53342399999997 + ], + "flagged_pairs": [ + 2, + 3, + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.queue_ms", + "baseline_range_ms": [ + 100.630695, + 186.021056 + ], + "candidate_range_ms": [ + 101.45565, + 187.309388 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.ttft_ms", + "baseline_range_ms": [ + 345.009503, + 427.251068 + ], + "candidate_range_ms": [ + 341.875996, + 428.800002 + ], + "flagged_pairs": [ + 3 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + }, + { + "case": "short-c2", + "repetition": 1, + "index": 1, + "metric": "raw.max_inter_token_ms", + "baseline_range_ms": [ + 137.229698, + 714.393595 + ], + "candidate_range_ms": [ + 135.290086, + 333.161437 + ], + "flagged_pairs": [ + 3, + 4 + ], + "candidates_over_entire_baseline_range": 0, + "classification": "Variable/overlapping or sparse; unresolved" + } + ], + "safety": { + "pair01-baseline/rank0": {}, + "pair01-baseline/rank1": {}, + "pair01-candidate/rank0": {}, + "pair01-candidate/rank1": {}, + "pair02-candidate/rank0": {}, + "pair02-candidate/rank1": {}, + "pair02-baseline/rank0": {}, + "pair02-baseline/rank1": {}, + "pair03-candidate/rank0": {}, + "pair03-candidate/rank1": {}, + "pair03-baseline/rank0": {}, + "pair03-baseline/rank1": {}, + "pair04-candidate/rank0": {}, + "pair04-candidate/rank1": {}, + "pair04-baseline/rank0": {}, + "pair04-baseline/rank1": {}, + "pair05-candidate/rank0": {}, + "pair05-candidate/rank1": {}, + "pair05-baseline/rank0": {}, + "pair05-baseline/rank1": {}, + "pair06-baseline/rank0": {}, + "pair06-baseline/rank1": {}, + "pair06-candidate/rank0": {}, + "pair06-candidate/rank1": {}, + "pair07-baseline/rank0": {}, + "pair07-baseline/rank1": {}, + "pair07-candidate/rank0": {}, + "pair07-candidate/rank1": {}, + "pair08-baseline/rank0": {}, + "pair08-baseline/rank1": {}, + "pair08-candidate/rank0": {}, + "pair08-candidate/rank1": {} + }, + "scope": "All predeclared fresh-process pairs; no exclusions/added starts. Aggregate default-mode effect is not pure dispatch cost, equivalence, phase-gate clearance, independent kernel trials or default adoption. Prior studies separate. No profiler/adminsampler/fulltablewarming." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-flags.csv b/docs/patches/ar-snapshot-turn/standalone-mtp-flags.csv new file mode 100644 index 0000000000..5f340774f9 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-flags.csv @@ -0,0 +1,56 @@ +pair,case,repetition,index,metric,baseline_ms,candidate_ms,delta_ms +1,pp2048-tg128,1,0,client_ttft_ms,1179.5443580012943,1272.602338998695,93.05798099740059 +1,pp2048-tg128,1,0,prefill_ms,1174.12574,1267.0680940000002,92.94235400000025 +1,pp2048-tg128,1,0,server_ttft_ms,1178.856258,1271.945609,93.08935100000008 +1,pp2048-tg128,1,0,raw.prefill_ms,1174.12574,1267.0680940000002,92.94235400000025 +1,pp2048-tg128,1,0,raw.ttft_ms,1178.856258,1271.945609,93.08935100000008 +2,short-c2,1,0,first_followup_content_gap_ms,52.445739,120.578427,68.132688 +2,short-c2,1,0,raw.cache_snapshot_ms,114.596645,177.345496,62.748851 +2,short-c2,1,1,first_followup_content_gap_ms,97.100211,136.786461,39.68625 +2,short-c2,1,1,raw.cache_snapshot_ms,123.261537,161.634197,38.372659999999996 +3,pp2048-tg128,2,0,wall_ms,3214.352348997636,3542.390759997943,328.03841100030695 +3,pp2048-tg128,2,0,decode_ms,2060.673977,2386.382365,325.708388 +3,pp2048-tg128,2,0,server_max_inter_token_ms,108.240077,140.437193,32.19711600000001 +3,pp2048-tg128,2,0,raw.decode_ms,2060.673977,2386.382365,325.708388 +3,pp2048-tg128,2,0,raw.max_inter_token_ms,108.240077,140.437193,32.19711600000001 +3,short-c2,1,0,wall_ms,4702.511499002867,4978.623606999463,276.112107996596 +3,short-c2,1,0,client_ttft_ms,285.89282300163177,366.5821760005201,80.68935299888835 +3,short-c2,1,0,prefill_ms,174.331507,257.923051,83.591544 +3,short-c2,1,0,server_ttft_ms,285.103017,365.947405,80.84438799999998 +3,short-c2,1,0,server_max_inter_token_ms,168.316946,220.693468,52.376521999999994 +3,short-c2,1,0,first_followup_content_gap_ms,116.657105,200.187152,83.530047 +3,short-c2,1,0,raw.prefill_ms,174.331507,257.923051,83.591544 +3,short-c2,1,0,raw.ttft_ms,285.103017,365.947405,80.84438799999998 +3,short-c2,1,0,raw.max_inter_token_ms,168.316946,220.693468,52.376521999999994 +3,short-c2,1,1,wall_ms,4484.888070001034,4968.5915670015675,483.7034970005334 +3,short-c2,1,1,client_ttft_ms,345.64763299931656,426.4964809990488,80.84884799973224 +3,short-c2,1,1,queue_ms,102.797241,186.24142,83.444179 +3,short-c2,1,1,server_ttft_ms,345.009503,425.993826,80.98432300000002 +3,short-c2,1,1,server_max_inter_token_ms,168.317606,329.899216,161.58161 +3,short-c2,1,1,first_followup_content_gap_ms,133.140421,330.026642,196.88622099999998 +3,short-c2,1,1,raw.cache_snapshot_ms,158.653206,294.962573,136.309367 +3,short-c2,1,1,raw.queue_ms,102.797241,186.24142,83.444179 +3,short-c2,1,1,raw.ttft_ms,345.009503,425.993826,80.98432300000002 +3,short-c2,1,1,raw.max_inter_token_ms,168.317606,329.899216,161.58161 +4,pp2048-tg128,2,0,wall_ms,3219.166735001636,3711.333426999772,492.16669199813623 +4,pp2048-tg128,2,0,client_event_inter_token_ms,18.481723375024167,22.837694562505412,4.355971187481245 +4,pp2048-tg128,2,0,decode_ms,2067.846852,2555.5324490000007,487.6855970000006 +4,pp2048-tg128,2,0,server_inter_token_ms,18.482724062500004,22.836956187499997,4.354232124999992 +4,pp2048-tg128,2,0,server_max_inter_token_ms,103.391112,142.128121,38.737008999999986 +4,pp2048-tg128,2,0,raw.decode_ms,2067.846852,2555.5324490000007,487.6855970000006 +4,pp2048-tg128,2,0,raw.mean_inter_token_ms,18.482724062500004,22.836956187499997,4.354232124999992 +4,pp2048-tg128,2,0,raw.max_inter_token_ms,103.391112,142.128121,38.737008999999986 +4,short-c2,1,0,first_followup_content_gap_ms,163.003916,201.458343,38.45442700000001 +4,short-c2,1,1,server_max_inter_token_ms,294.011431,331.950254,37.93882299999996 +4,short-c2,1,1,first_followup_content_gap_ms,294.092488,332.285814,38.19332600000001 +4,short-c2,1,1,raw.cache_snapshot_ms,259.59720200000004,294.335272,34.73806999999994 +4,short-c2,1,1,raw.max_inter_token_ms,294.011431,331.950254,37.93882299999996 +5,pp2048-tg128,2,0,decode_ms,2039.9540270000005,2162.120537,122.16650999999933 +5,pp2048-tg128,2,0,server_max_inter_token_ms,95.187908,140.554179,45.36627100000001 +5,pp2048-tg128,2,0,raw.decode_ms,2039.9540270000005,2162.120537,122.16650999999933 +5,pp2048-tg128,2,0,raw.max_inter_token_ms,95.187908,140.554179,45.36627100000001 +7,pp2048-tg128,1,0,server_max_inter_token_ms,64.546055,110.418872,45.872817 +7,pp2048-tg128,1,0,first_followup_content_gap_ms,51.690211,110.430642,58.74043100000001 +7,pp2048-tg128,1,0,raw.max_inter_token_ms,64.546055,110.418872,45.872817 +8,short-c2,1,0,server_max_inter_token_ms,162.935618,176.535411,13.599793000000005 +8,short-c2,1,0,raw.max_inter_token_ms,162.935618,176.535411,13.599793000000005 diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-ranges.csv b/docs/patches/ar-snapshot-turn/standalone-mtp-ranges.csv new file mode 100644 index 0000000000..95ab08c3b5 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-ranges.csv @@ -0,0 +1,37 @@ +case,repetition,index,metric,baseline_range_ms,candidate_range_ms,flagged_pairs,candidates_over_entire_baseline_range,classification +pp2048-tg128,1,0,client_ttft_ms,"[1123.3197820001806, 1273.3891159987252]","[1117.1467369968013, 1272.602338998695]",[1],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,prefill_ms,"[1117.907895, 1267.911109]","[1111.848176, 1267.0680940000002]",[1],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,server_ttft_ms,"[1122.604084, 1272.618049]","[1116.41166, 1271.945609]",[1],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,server_max_inter_token_ms,"[64.113179, 143.51434]","[64.323463, 132.678215]",[7],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,first_followup_content_gap_ms,"[50.916844, 143.980836]","[50.258234, 132.768992]",[7],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,raw.prefill_ms,"[1117.907895, 1267.911109]","[1111.848176, 1267.0680940000002]",[1],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,raw.ttft_ms,"[1122.604084, 1272.618049]","[1116.41166, 1271.945609]",[1],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,1,0,raw.max_inter_token_ms,"[64.113179, 143.51434]","[64.323463, 132.678215]",[7],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,wall_ms,"[3147.3483169975225, 3690.7848740011104]","[3151.6618069981632, 3711.333426999772]","[3, 4]",0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,client_event_inter_token_ms,"[17.864912839286262, 22.694723303564906]","[17.798399026787592, 22.837694562505412]",[4],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,decode_ms,"[1998.9385740000007, 2539.7467509999997]","[1991.11851, 2555.5324490000007]","[3, 4, 5]",0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,server_inter_token_ms,"[17.866908401785714, 22.696028714285717]","[17.796993535714297, 22.836956187499997]",[4],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,server_max_inter_token_ms,"[63.513207, 140.744233]","[64.165778, 142.128121]","[3, 4, 5]",0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,raw.decode_ms,"[1998.9385740000007, 2539.7467509999997]","[1991.11851, 2555.5324490000007]","[3, 4, 5]",0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,raw.mean_inter_token_ms,"[17.866908401785714, 22.696028714285717]","[17.796993535714297, 22.836956187499997]",[4],0,Variable/overlapping or sparse; unresolved +pp2048-tg128,2,0,raw.max_inter_token_ms,"[63.513207, 140.744233]","[64.165778, 142.128121]","[3, 4, 5]",0,Variable/overlapping or sparse; unresolved +short-c2,1,0,wall_ms,"[3654.81268199801, 16554.41861300278]","[3596.6587940019963, 6849.418331999914]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,client_ttft_ms,"[285.89282300163177, 367.47454999931506]","[282.5004660007835, 368.48645899954136]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,prefill_ms,"[171.782123, 257.830705]","[172.975177, 258.52511300000003]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,server_ttft_ms,"[285.103017, 366.7799]","[281.729819, 367.542498]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,server_max_inter_token_ms,"[122.902567, 714.392705]","[118.757542, 221.348587]","[3, 8]",0,Variable/overlapping or sparse; unresolved +short-c2,1,0,first_followup_content_gap_ms,"[52.445739, 201.702206]","[118.758012, 201.458343]","[2, 3, 4]",0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.cache_snapshot_ms,"[114.596645, 221.490184]","[175.76620400000002, 216.243461]",[2],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.prefill_ms,"[171.782123, 257.830705]","[172.975177, 258.52511300000003]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.ttft_ms,"[285.103017, 366.7799]","[281.729819, 367.542498]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,0,raw.max_inter_token_ms,"[122.902567, 714.392705]","[118.757542, 221.348587]","[3, 8]",0,Variable/overlapping or sparse; unresolved +short-c2,1,1,wall_ms,"[3644.550639000954, 15724.54369800107]","[3586.008872000093, 6839.325673998246]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,client_ttft_ms,"[345.64763299931656, 427.83511100060423]","[342.3825410027348, 429.2265089970897]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,queue_ms,"[100.630695, 186.021056]","[101.45565, 187.309388]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,server_ttft_ms,"[345.009503, 427.251068]","[341.875996, 428.800002]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,server_max_inter_token_ms,"[137.229698, 714.393595]","[135.290086, 333.161437]","[3, 4]",0,Variable/overlapping or sparse; unresolved +short-c2,1,1,first_followup_content_gap_ms,"[97.100211, 329.676183]","[134.803241, 333.325832]","[2, 3, 4]",0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.cache_snapshot_ms,"[123.261537, 294.41154900000004]","[159.76601399999998, 296.53342399999997]","[2, 3, 4]",0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.queue_ms,"[100.630695, 186.021056]","[101.45565, 187.309388]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.ttft_ms,"[345.009503, 427.251068]","[341.875996, 428.800002]",[3],0,Variable/overlapping or sparse; unresolved +short-c2,1,1,raw.max_inter_token_ms,"[137.229698, 714.393595]","[135.290086, 333.161437]","[3, 4]",0,Variable/overlapping or sparse; unresolved diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-rates.csv b/docs/patches/ar-snapshot-turn/standalone-mtp-rates.csv new file mode 100644 index 0000000000..b119be3c34 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-rates.csv @@ -0,0 +1,9 @@ +pair,order,baseline_C2_wave_seconds,baseline_C2_wave_tps,baseline_C1_first_tps,baseline_C1_repeat_tps,baseline_C2_0_wall_ms,baseline_C2_0_first_gap_ms,baseline_C2_0_max_gap_ms,baseline_C2_0_snapshot_ms,baseline_C2_0_width,baseline_C2_0_drafts,baseline_C2_0_accepted,baseline_C2_0_rounds,baseline_C2_1_wall_ms,baseline_C2_1_first_gap_ms,baseline_C2_1_max_gap_ms,baseline_C2_1_snapshot_ms,baseline_C2_1_width,baseline_C2_1_drafts,baseline_C2_1_accepted,baseline_C2_1_rounds,candidate_C2_wave_seconds,candidate_C2_wave_tps,candidate_C1_first_tps,candidate_C1_repeat_tps,candidate_C2_0_wall_ms,candidate_C2_0_first_gap_ms,candidate_C2_0_max_gap_ms,candidate_C2_0_snapshot_ms,candidate_C2_0_width,candidate_C2_0_drafts,candidate_C2_0_accepted,candidate_C2_0_rounds,candidate_C2_1_wall_ms,candidate_C2_1_first_gap_ms,candidate_C2_1_max_gap_ms,candidate_C2_1_snapshot_ms,candidate_C2_1_width,candidate_C2_1_drafts,candidate_C2_1_accepted,candidate_C2_1_rounds +1,BC,3.6549768170007155,70.04148393205797,23.59967021144183,56.4917395801175,3654.81268199801,122.950246,122.902567,182.784144,2,81,55,64,3644.550639000954,137.472561,137.229698,165.896978,2,81,58,63,3.6009145669995632,71.0930501784468,23.591496793299907,56.75202125462638,3600.743701997999,118.758012,118.757542,175.76620400000002,2,100,62,61,3590.590046002035,135.682344,135.290086,160.640487,2,100,63,60 +2,CB,4.922251075000531,52.00872448384246,56.07865490500618,56.5300012065303,4922.251075000531,52.445739,160.838241,114.596645,2,82,38,32,4696.530388999236,97.100211,160.844321,123.261537,2,77,43,28,3.5966587940019963,71.1771715534765,56.23754712833355,56.42764486238818,3596.6587940019963,120.578427,120.609826,177.345496,2,90,60,63,3586.008872000093,136.786461,136.766952,161.634197,2,90,61,62 +3,CB,4.702511499002867,54.43899500390013,56.333560832679815,54.836427916903816,4702.511499002867,116.657105,168.316946,179.185511,2,134,63,47,4484.888070001034,133.140421,168.317606,158.653206,2,130,72,44,4.9789083280011255,51.4168936512185,56.127134089982334,47.35200932479234,4978.623606999463,200.187152,220.693468,176.57382,2,88,48,48,4968.5915670015675,330.026642,329.899216,294.962573,2,85,52,45 +4,CB,6.700406797001051,38.206635470935844,56.022081199484276,54.64621322933445,6700.406797001051,163.003916,219.763765,177.893809,2,128,66,55,6689.660429001378,294.092488,294.011431,259.59720200000004,2,128,69,54,6.732542014000501,38.024270694136206,56.44300484146367,44.21779110815743,6732.542014000501,201.458343,221.348587,176.54369,2,128,66,55,6721.600312001101,332.285814,331.950254,294.335272,2,128,69,54 +5,CB,16.55441861300278,15.46414923922022,56.25915932097545,55.393405196577,16554.41861300278,201.702206,714.392705,177.426713,2,156,64,50,15724.54369800107,329.531116,714.393595,294.345711,2,156,74,49,6.737547753997205,37.9960201169813,56.166405252642456,52.26350615807504,6737.079917998926,200.278169,219.753015,178.56900000000002,2,128,66,55,6727.157915996941,333.325832,333.161437,296.53342399999997,2,128,69,54 +6,BC,7.538474215998576,33.959126563927526,56.270503312547675,44.49262508378341,7538.26682199724,200.259799,406.537949,177.22777,2,128,66,55,7527.889453998796,329.676183,406.539449,294.41154900000004,2,128,69,54,6.731485296000756,38.030239797462265,56.09505479191702,44.23055655450614,6731.485296000756,200.92724,219.860963,176.77308399999998,2,128,66,55,6651.509811999858,330.041651,330.040691,293.95494199999996,2,128,69,54 +7,BC,6.727469685996766,38.05293995346634,56.164423578710505,55.235255676698195,6727.469685996766,195.017237,218.284339,176.911049,2,128,66,55,6716.960770998412,325.342112,325.316763,291.204274,2,128,69,54,6.849673253997025,37.37404552116628,54.46987402381068,55.27600328355113,6849.418331999914,200.91889,219.400437,176.17011100000002,2,128,66,55,6839.325673998246,332.216276,331.941475,295.759609,2,128,69,54 +8,BC,5.10869687900049,50.11062626406718,53.926272057155856,55.59070191592396,5108.69687900049,161.408634,162.935618,221.490184,2,118,55,54,5033.562289998372,177.054235,176.848361,201.86127299999998,2,114,59,51,4.679039753002144,54.71208057929973,56.37037806312557,55.504109740407394,4679.039753002144,119.16246,176.535411,216.243461,2,130,61,55,4668.3526530032395,134.803241,176.538791,159.76601399999998,2,130,67,54 diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-validation.json b/docs/patches/ar-snapshot-turn/standalone-mtp-validation.json new file mode 100644 index 0000000000..00efa53d2c --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-validation.json @@ -0,0 +1,13 @@ +{ + "80_canonical_identities_exact": true, + "frozen_harness_hashes_unchanged": true, + "rank_binary_and_serving_settings_match": true, + "32_transport_windows_zero_checked_errors": true, + "all_recorded_server_PIDs_exited": true, + "both_approved_drivers_restored_idle_four_rails": true, + "boot_flags_and_topology_unchanged": true, + "checked_kernel_fault_patterns_absent": true, + "strict_phase_flags": 55, + "adaptive_work_comparisons": 30, + "scope": "Eight balanced-order adaptive-MTP pairs; all per-request flags/work differences retained independently of primary endpoint. No significance, cache/error-path qualification or default adoption inferred." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp-work.csv b/docs/patches/ar-snapshot-turn/standalone-mtp-work.csv new file mode 100644 index 0000000000..ae78853b32 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp-work.csv @@ -0,0 +1,31 @@ +pair,case,repetition,index,metric,baseline,candidate +1,short-c2,1,0,draft_tokens,81,100 +1,short-c2,1,0,draft_accepted_tokens,55,62 +1,short-c2,1,0,raw.draft_rounds,64,61 +1,short-c2,1,1,draft_tokens,81,100 +1,short-c2,1,1,draft_accepted_tokens,58,63 +1,short-c2,1,1,raw.draft_rounds,63,60 +2,short-c2,1,0,draft_tokens,82,90 +2,short-c2,1,0,draft_accepted_tokens,38,60 +2,short-c2,1,0,raw.draft_rounds,32,63 +2,short-c2,1,1,draft_tokens,77,90 +2,short-c2,1,1,draft_accepted_tokens,43,61 +2,short-c2,1,1,raw.draft_rounds,28,62 +3,short-c2,1,0,draft_tokens,134,88 +3,short-c2,1,0,draft_accepted_tokens,63,48 +3,short-c2,1,0,raw.draft_rounds,47,48 +3,short-c2,1,1,draft_tokens,130,85 +3,short-c2,1,1,draft_accepted_tokens,72,52 +3,short-c2,1,1,raw.draft_rounds,44,45 +5,short-c2,1,0,draft_tokens,156,128 +5,short-c2,1,0,draft_accepted_tokens,64,66 +5,short-c2,1,0,raw.draft_rounds,50,55 +5,short-c2,1,1,draft_tokens,156,128 +5,short-c2,1,1,draft_accepted_tokens,74,69 +5,short-c2,1,1,raw.draft_rounds,49,54 +8,short-c2,1,0,draft_tokens,118,130 +8,short-c2,1,0,draft_accepted_tokens,55,61 +8,short-c2,1,0,raw.draft_rounds,54,55 +8,short-c2,1,1,draft_tokens,114,130 +8,short-c2,1,1,draft_accepted_tokens,59,67 +8,short-c2,1,1,raw.draft_rounds,51,54 diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp.png b/docs/patches/ar-snapshot-turn/standalone-mtp.png new file mode 100644 index 0000000000..20c3dd4d6b Binary files /dev/null and b/docs/patches/ar-snapshot-turn/standalone-mtp.png differ diff --git a/docs/patches/ar-snapshot-turn/standalone-mtp.svg b/docs/patches/ar-snapshot-turn/standalone-mtp.svg new file mode 100644 index 0000000000..fc24d856f6 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-mtp.svg @@ -0,0 +1,2421 @@ + + + + + + + + 2026-10-31T04:20:23.546417 + image/svg+xml + + + Matplotlib v3.11.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/patches/ar-snapshot-turn/standalone-source.json b/docs/patches/ar-snapshot-turn/standalone-source.json new file mode 100644 index 0000000000..bddd1dad47 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-source.json @@ -0,0 +1,19 @@ +{ + "parent_source_commit": "b6d4cbaacb609424a52ca70dd60e97fc4d8ca57e", + "candidate_code_commit": "92bf7cb6", + "published_head": "05675f6cfa1d6f8ec1ca927402d3a31c70fcf2bc", + "normalized_compile_commands_equal": true, + "compile_command_count": 290, + "only_task_CPP_files_change": [ + "src/cli/serve/tp_executor.cpp", + "src/cli/serve/tp_snapshot_gate.hpp", + "tests/cli/tp_snapshot_gate_test.cpp" + ], + "model_source_unchanged": true, + "task_source_sha256": { + "src/cli/serve/tp_executor.cpp": "74a70f198d1f4df6c2de7434e9f0b0e00f4fd9ec5f85e135284039cb9fe87f15", + "src/cli/serve/tp_snapshot_gate.hpp": "9469d252dcca939cbd42c0df1f27521c858a6db9df8bf382dafd0d927eafaeac", + "tests/cli/tp_snapshot_gate_test.cpp": "190599738e152086b4c7fcfc480435ff6fb35ccd8abb0c981c7daef95fe1833e" + }, + "scope": "Standalone published base; source/binary/control/build guards only, not a model qualification or performance result." +} diff --git a/docs/patches/ar-snapshot-turn/standalone-work.csv b/docs/patches/ar-snapshot-turn/standalone-work.csv new file mode 100644 index 0000000000..f2b26ea6e2 --- /dev/null +++ b/docs/patches/ar-snapshot-turn/standalone-work.csv @@ -0,0 +1,7 @@ +mode,case,repetition,index,metric,baseline,candidate +mtp,short-c2,1,0,draft_tokens,105,108 +mtp,short-c2,1,0,draft_accepted_tokens,62,53 +mtp,short-c2,1,0,raw.draft_rounds,60,42 +mtp,short-c2,1,1,draft_tokens,104,108 +mtp,short-c2,1,1,draft_accepted_tokens,65,55 +mtp,short-c2,1,1,raw.draft_rounds,58,41 diff --git a/src/cli/serve/tp_executor.cpp b/src/cli/serve/tp_executor.cpp index 54777352db..182f60a574 100644 --- a/src/cli/serve/tp_executor.cpp +++ b/src/cli/serve/tp_executor.cpp @@ -906,6 +906,7 @@ TextDecodeSelection TpMirroredRunner::SelectNext( void TpMirroredRunner::Advance(TextRunnerState& state, TextRunnerToken token) const { + const TpSnapshotGate::Turn turn(snapshot_gate_); const std::lock_guard call_lock(call_mutex_); auto& mirrored = Mirrored(state); const auto sent = Send(mirrored.id(), {.op = TpInstructionOp::kAdvance, @@ -927,8 +928,7 @@ void TpMirroredRunner::Advance(TextRunnerState& state, TextDecodeStep TpMirroredRunner::DecodeStep( TextRunnerState& state, std::size_t max_tokens, sampling::SamplerState& sampler) const { - if (multi_token_decode_ && max_tokens >= 2) - snapshot_gate_.Wait(); + const TpSnapshotGate::Turn turn(snapshot_gate_); const std::lock_guard call_lock(call_mutex_); // A multi-token cycle is one instruction. It carries the sampler's draw // state, so rank 1, whose sampler otherwise matches, draws what rank 0 draws @@ -977,6 +977,7 @@ TextDecodeStep TpMirroredRunner::DecodeStep( std::vector TpMirroredRunner::DecodeBatch( std::span decodes) const { + const TpSnapshotGate::Turn turn(snapshot_gate_); if (decodes.size() < 2 || !multi_token_decode_ || std::ranges::any_of(decodes, [this](const TextRunnerDecode& decode) { return !CyclesMirrored(decode.state.get(), decode.sampler.get()); @@ -985,7 +986,6 @@ std::vector TpMirroredRunner::DecodeBatch( // an unmirrored constraint one token at a time. return TextModelRunner::DecodeBatch(decodes); } - snapshot_gate_.Wait(); const std::lock_guard call_lock(call_mutex_); // One instruction carries every member's budget and draw state, like the // decode each replaces, and the batch's draft count: rank 0 chooses it from @@ -1056,6 +1056,7 @@ std::vector TpMirroredRunner::DecodeBatch( void TpMirroredRunner::AdvanceBatch( std::span advances) const { + const TpSnapshotGate::Turn turn(snapshot_gate_); if (advances.size() < 2) { TextModelRunner::AdvanceBatch(advances); return; diff --git a/src/cli/serve/tp_snapshot_gate.hpp b/src/cli/serve/tp_snapshot_gate.hpp index 9034aaa18f..96cb93a721 100644 --- a/src/cli/serve/tp_snapshot_gate.hpp +++ b/src/cli/serve/tp_snapshot_gate.hpp @@ -8,10 +8,38 @@ namespace gufo::server { // Decode waits outside the existing recursive call mutex, allowing an already -// waiting snapshot to acquire it before another multi-token decode cycle. +// waiting snapshot to acquire it before another decode or advance call. // This does not preempt an active call or impose ordering on prefill. class TpSnapshotGate { public: + // A fallback DecodeStep may hold the call mutex while calling Advance. + // Only the outer turn waits: waiting again from that nested Advance would + // prevent the pending capture from ever acquiring the same mutex. + class Turn { + public: + explicit Turn(const TpSnapshotGate& gate) noexcept + : gate_(&gate), previous_(current_) { + bool nested = false; + for (auto* turn = current_; turn; turn = turn->previous_) { + if (turn->gate_ == gate_) { + nested = true; + break; + } + } + if (!nested) + gate.Wait(); + current_ = this; + } + Turn(const Turn&) = delete; + Turn& operator=(const Turn&) = delete; + ~Turn() { current_ = previous_; } + + private: + const TpSnapshotGate* gate_; + Turn* previous_; + inline static thread_local Turn* current_{nullptr}; + }; + class Pending { public: explicit Pending(TpSnapshotGate& gate) noexcept : gate_(&gate) { diff --git a/tests/cli/tp_snapshot_gate_test.cpp b/tests/cli/tp_snapshot_gate_test.cpp index 681b85c0bb..93d005be36 100644 --- a/tests/cli/tp_snapshot_gate_test.cpp +++ b/tests/cli/tp_snapshot_gate_test.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -45,6 +46,7 @@ int main() { std::recursive_mutex calls; std::latch registered(1); std::vector order; + TpSnapshotGate::Turn active_turn(gate); std::unique_lock active(calls); auto capture = std::async(std::launch::async, [&] { TpSnapshotGate::Pending pending(gate); @@ -55,11 +57,12 @@ int main() { }); registered.wait(); { + TpSnapshotGate::Turn nested_turn(gate); std::lock_guard nested(calls); order.push_back(1); } auto next = std::async(std::launch::async, [&] { - gate.Wait(); + TpSnapshotGate::Turn next_turn(gate); std::lock_guard lock(calls); order.push_back(3); }); @@ -70,6 +73,43 @@ int main() { next.get(); assert((order == std::vector{1, 2, 3})); } + // An outer turn on another runner must not hide an earlier recursive owner. + // Pending captures cannot finish while these existing owners hold their + // call mutexes, so neither nested turn may wait for them. + { + TpSnapshotGate first, second; + TpSnapshotGate::Turn outer(first); + TpSnapshotGate::Pending pending_first(first); + TpSnapshotGate::Turn other(second); + TpSnapshotGate::Pending pending_second(second); + TpSnapshotGate::Turn nested_first(first); + TpSnapshotGate::Turn nested_second(second); + } + // Exceptions must restore the per-thread chain. A later independent turn + // on that same thread still waits for a pending capture. + { + TpSnapshotGate gate; + try { + TpSnapshotGate::Turn turn(gate); + throw std::runtime_error("unwind turn"); + } catch (const std::runtime_error&) { + } + TpSnapshotGate::Pending pending(gate); + std::atomic released{false}; + std::latch entered(1); + auto waiter = std::async(std::launch::async, [&] { + entered.count_down(); + std::this_thread::sleep_for(20ms); + released.store(true); + pending.Acquired(); + }); + entered.wait(); + { + TpSnapshotGate::Turn next(gate); + } + assert(released.load()); + waiter.get(); + } // Concurrent reservations and decodes finish without losing registrations. TpSnapshotGate gate; std::recursive_mutex calls; @@ -84,7 +124,7 @@ int main() { pending.Acquired(); ++snapshots; } else { - gate.Wait(); + TpSnapshotGate::Turn turn(gate); std::lock_guard lock(calls); ++decodes; } @@ -96,5 +136,6 @@ int main() { assert(snapshots == 6000 && decodes == 6000); gate.Wait(); std::cout << "PASS: multiple reservations, abandonment, idempotence, " - "recursive lock handoff, concurrent completion\n"; + "recursive AR/decode turns, cross-runner nesting, exception " + "unwind, lock handoff, concurrent completion\n"; }