Skip to main content

Post-hoc analysis: where the v0.2 shortlist misses come from

Post-hoc. This analysis was done after the v0.2 holdout labels were opened and scored (validation/v02-holdout-scores.json). It cannot change the v0.2 decisions. It only orders what v0.3 should fix first, and every fix still needs its own microbenchmark, freeze and holdout.

Data and method​

  • Scores: validation/v02-holdout-scores.json (core e70824b, the v0.2-final build).
  • Predictions: the formal prediction archive whose SHA-256 the scores record (74caeeeb...), with its KernelIR.
  • Bottleneck attribution is the archived bound_fraction of each prediction.
  • Counterfactuals rerun the v0.2-final core (rebuilt from the tag, build_info formal at e70824b) on the archived KernelIR and the v0.2-final profiles, with one IR or profile field changed, nominal profile only (no draws). Unchanged, it reproduces the archived nominal predictions exactly.
  • Top-5 regret and the per-case contributions below are from the scores file: a cohort's mean regret is the mean over its cases, so a case contributes its regret divided by the number of cases.

Confirmed means shown in the scores or the archive, or by a counterfactual inside the model. Hypothesis means a hardware cause that needs a microbenchmark or performance counters before it can enter a model.

1. RTX 4070 attention: 1.30% warm, 1.43% cold​

CaseRegret warm / coldContribution warm / cold (points)Fastest configIts predicted rankIts error
b1-q32-kv4-s3072-d128-full4.75% / 5.07%0.59 / 0.63m128n32-w4-s27 / 7+18.1% / +19.9%
b3-q16-kv16-s2560-d128-full3.56% / 3.74%0.44 / 0.47m128n32-w4-s27 / 7+19.2% / +19.2%
b1-q24-kv24-s4096-d128-causal1.70% / 2.38%0.21 / 0.30m128n32-w4-s26 / 6+6.9% / +7.6%
b2-q24-kv6-s1283-d64-full0.42% / 0.28%0.05 / 0.03m64n32-w4-s39 / 11+23.4% / +25.9%

The other four cases have zero regret. The shortlist picks in the three d128 cases are within +0.6% to +7% of their measurements, so the regret comes from the fastest config being predicted slow, not from the picks being predicted fast.

Confirmed​

  1. Three d128 cases carry the cohort: 1.25 of 1.30 points warm and 1.40 of 1.43 cold. In all three the fastest config is m128n32-w4-s2 (2 CTAs per SM, num_stages = 2), MMA bound in the model (96% to 99%), and predicted slow.
  2. num_stages = 2 configs are predicted 10 to 14 points slower relative to their num_stages = 3 siblings than they measure. In b1-q32-kv4-s3072-d128-full, m128n32-w8-s2 measures 1.6% slower than m128n32-w8-s3 and is predicted 14% slower; m128n32-w4-s2, the fastest config, is predicted 5.1% slower than m128n32-w4-s3 and measures 5.8% faster. The KernelIR has prefetch distance 0 for these configs, and the compiled loop agrees: offline PTX for m128n32-w4-s2 waits for both of the iteration's K and V copies at the loop top (cp.async.wait_group 0) and issues the next iteration's copies at the loop end, so the copies of one iteration and its compute do not overlap in instruction order. Setting the prefetch distance to 1 in the IR, all else unchanged, removes the excess where one CTA runs per SM: m128n32-w8-s2 -12.6% (error +17.6% to +2.8%), m128n64-w8-s2 -10.5% (+7.9% to -3.5%). The model charges the single-buffer round trip in full; on hardware the gap between num_stages = 2 and num_stages = 3 is much smaller than predicted.
  3. The softmax and the dependent chain do not cause these misses. Setting the SFU, shuffle and ALU counts to zero changes the predictions by at most 0.4%. Removing all non-MMA compute (shared memory, ALU, SFU, shuffle) shortens every config by about 7.8%, so it shifts the scale but not the ranking.
  4. For m128n32-w4-s2 itself, the round trip is only part of it (prefetch distance 1: -2.7%, error still +14.9%). The rest is in its partial last wave: 768 CTAs over 92 slots (2 per SM on 46 SMs) is 8.35 waves. Cutting the grid to 736 CTAs (8 waves, access map truncated to match) lowers the prediction from 2952 us to 2628 us (-11.0%), so the 32 extra CTAs cost 324 us, a full wave of 2 CTAs per SM (328 us). With one CTA per SM (m128n32-w4-s3, 16.7 waves) the same cut lowers it from 2807.5 us to 2643.7 us (-5.84%), also a full wave (165 us), as it must be when each SM holds one CTA. With 2 CTAs per SM the 32 tail CTAs could each have an SM to itself; whether they would then run faster is open (H2).

Hypotheses​

Correction (H1 tested). Acquisition status: the sync-loop-overlap and sync-loop-share RTX 4070 data fail condition 2 of the acquisition rules of 2026-11-27 (lists with max over min above 1.5: 21.9% and 42.5%, limit 15%), so the conclusions drawn from them here are provisional; they are not repeated, as they do not enter the model. The mechanism proposed as H1 below did not hold on its own microbenchmark (sync-loop-overlap, RTX 4070, sync-loop-overlap-rtx4070-posthoc.json; single-buffer gemm_s2 and attention-shaped loops, 4 and 16 KiB stages, 4 and 8 warps, 1 and 2 CTAs per SM, L2 and DRAM). Making the next loads wait for the last MMA results changes the loop time by 0% to 5% at most points, so the MMA drain hides little. On those loops the hardware does pay the round trip (for example L2, 16 KiB, one CTA per SM, 128 MMAs per warp per block: 366 ns over the compute alone, against 484 ns for the loads alone), and the model predicts them within a MAPE of 3% to 6% for gemm_s2; for the attention shape it is 6% to 16% fast with one CTA per SM, from the softmax's dependent chain, not from the round trip. On the RTX 4070 holdout the real num_stages = 2 attention kernels looked as if they did not pay it (m128n32-w8-s2 only 1.6% slower than m128n32-w8-s3). A CPU counterfactual on the archived KernelIR shows the model already treats their warm K and V reads as L2 hits, and that the round-trip port floor carries about two thirds of the excess for one CTA per SM (removing it: m128n32-w8-s2 +17.6% to +6.8%, and +25.0% to +14.4%, +20.0% to +9.8% in the other two cases), the idle L2 latency most of the rest.

GB10 ablation of the real kernel. A copy of the fused attention kernel with one compile-time switch (attention_ablation.py, attention-ablation-gb10-posthoc.json; development shape b2-q16-kv16-s2048-d128-full, warm, three processes) shows that on GB10 the real num_stages = 2 kernel does pay the round trip. The paid part is the unchanged time minus a noload variant that reads K and V once before the loop (its QK product kept inside the loop; the in-loop MMA count matches the unchanged kernel). Over 11 waves, with one CTA per SM, m128n32-w8-s2 pays 331 us (470 ns per iteration, 16 KiB) and m128n64-w8-s2 155 us (441 ns per iteration, 32 KiB). With num_stages = 3 this falls to 144 ns per iteration and to about zero (-74 ns), so the round trip is hidden by num_stages = 3, not by num_stages = 2. The model predicts these totals within +1.7% to +7.1% only because two errors cancel: it charges 1.4 to 2.2 times the measured paid round trip, and it puts the time without the loop's loads 8% to 14% below the noload measurement. The two paid points fit neither L + bytes/port (336 and 536 ns) nor max(L, bytes/port) (200 and 401 ns) with the profile's idle L2 latency and 1 SM L2 port (81.8 GB/s). On this shape the num_stages = 2 specific excess of the GB10 holdout does not appear for 8 warps (m128n64-w8: +6.5% at s2, +5.8% at s3).

Two limits of the noload baseline: it builds the per-tile offset and keeps K and V resident, which costs registers (m128n32-w8-s3: 186 against 132) and some time, so unchanged minus noload reads low by some tens of ns per iteration (hence -74 ns for m128n64-w8-s3); and for m128n32-w4-s3 the unchanged kernel runs 1 CTA per SM against 2 for noload, so the two cannot be subtracted. The 4-warp configs spill in every variant and are not used.

GB10 single-buffer microbenchmarks. Two follow-up sweeps of the gemm_s2 shaped single-buffer loop (8 warps unless stated, one CTA per SM, three processes, designs registered before measuring and reviewed by 6; the model runs are the ignored tests in crates/vgpu-core/tests/posthoc_sync_loop.rs). Fields are fixed from profiles/gb10.json: L2l = l2_latency_ns (135.4 ns), Ld = dram_latency_ns (400.0 ns), P1 = l2_bw_by_active_sms at 1 SM (81.8 GB/s), own = stage bytes / P1. Each hypothesis gets one additive constant from a single calibration point; the rest are held out.

  • sync-loop-bytes (sync-loop-bytes-gb10-posthoc.json; warm L2, 4 to 64 KiB, 4 and 8 warps, grid 1 and 48). Exposed time L2l + own against max(L2l, own): no winner under the registered rule. With grid 1 the forms differ only at 4 and 8 KiB, where the sum is closer on 7 of 8 points (held out: sum 6.0%, max 7.6%). With grid 48 both are high by about 22% because the registered port, l2_bw_by_active_sms(48) / 48, assumes a saturated L2 that 16 and 32 KiB stages do not reach. The model itself is within 10% at grid 1.
  • sync-loop-miss (sync-loop-miss-gb10-posthoc.json, kernel b87ff5d): the first fraction f of each stage comes from a cold region on a 256 MiB ring, the rest from warm L2; with grid 48, groups of 16 CTAs read the same cold addresses, so all but one request of a group can merge. An earlier run (kernel 34341fc, sync-loop-miss-gb10-invalid.json) restarted the cold region at offset 0 on every launch, so its cold stages were mostly L2 hits; it is invalid and its conclusions are withdrawn. Bandwidth-saturated points were fixed before measuring and are not judged. With grid 1 the byte-weighted sum (1 - f)(L2l + own) + f(Ld + own) beats (1 - f)(L2l + own) + f max(Ld, own) on all 9 judged points (median error 12.9% against 31.1%); with groups of 16 both miss by more than 25% (34.9% and 41.2%). The transfer is not hidden under the miss latency.
  • Outside the registered test, the main finding: a partial miss costs about as much as a full one. One cp.async.wait_group 0 waits for the slowest copy, so with grid 1 the exposed time is 494, 509 and 553 ns for f = 1/16, 1/4 and 1 at 8 KiB, and 507, 550 and 670 ns at 16 KiB, against 210 and 317 ns with no miss. The model weights latency by bytes, so it puts the 8 KiB, f = 1/16 point at 252 ns. A max form, max(L2l + own, Ld), has the right shape but is low by 15% to 25% with either Ld = 400 ns or the cp.async MLP point (436 ns, registered after the grid 1 data had been seen, so a weak test); the partial-miss data sit near 500 ns. The model's DRAM bandwidth term holds at the saturated points (about -5%).

What this means for the real kernel is open. In the model, 90% of the dev shape's K and V bytes are merged into fills and wait DRAM latency plus their own transfer (598 and 798 ns per iteration at 16 and 32 KiB with this harness, against 470 and 441 ns measured). With the model's byte weighting no single split of resident and merged bytes fits both block sizes (m128n32-w8-s2 needs about 75% merged, m128n64-w8-s2 about 25%). If most K and V reads are in fact resident and a few miss, a stage would pay about one DRAM round trip whatever its size, which is what the two measured points look like; this is a hypothesis, to be tested on a microbenchmark and on the RTX 4070 before any structural change.

Merged wait against arrival time (sync-loop-delta, GB10). Acquisition status: this run fails condition 2 of the acquisition rules of 2026-11-27 (lists with max over min above 1.5: 19.7%, limit 15%; conditions 1 and 3 pass at 2.3% and 0%), so what follows is provisional; it is not repeated, as the result does not enter the model. In the model a request is merged whenever another resident CTA shares the chunk (sharing_count in l2/mod.rs counts overlapping trips, not time), and a merged request waits the full DRAM latency. To test that, groups of 16 CTAs read the same cold 16 or 32 KiB stage, the followers a fixed delay after the lead (sync-loop-delta-gb10-posthoc.json, kernel f96e7ed, design reviewed by 6). A flag between SMs takes about 400 ns on GB10 (1030 to 1066 cycles one way, the same with acquire, relaxed or volatile polling), as long as the DRAM round trip, so the start of each step is scheduled on %globaltimer (32 ns steps) and the real offset is measured; a step barrier outside the timed window keeps it from drifting.

The registered test could not be decided: it excluded every point with a late step (a follower that learned the start time after its issue time), every cold point has a few (at most 0.5% of follower steps), and the three points without any are ones where the step and remaining-time forms agree. As a description only, the follower's stage latency minus that of a warm L2 baseline of the same size falls almost one to one with the offset and reaches zero near 300 to 400 ns: 282, 197, 97, 19 and 2 ns at offsets 0, 96, 192, 288 and 384 ns for 16 KiB, and 345, 234, 137, 57 and 45 ns for 32 KiB. A merged request waits only for the rest of the fill, and a request after it is an ordinary L2 hit. With L2l and Ld from the profile, max(0, Ld - L2l - d) misses the 16 KiB excess by a median of 22 ns, against 83 ns for a step at Ld and 194 ns for the current form. The 32 KiB warm baseline is itself 19% above L2l + own plus the constant fitted on the 16 KiB baseline (811 against 683 ns), the 48-CTA L2 sharing seen above. The registered test on the RTX 4070 is in h1-delta-rtx4070-registration.md.

Issue times in the real kernel (GB10, development shape). A timestamp variant of the ablation copy (ABLATE = 4, attention-stamps-gb10-posthoc.json, evaluator microbench/attention_stamps_eval.py, design reviewed by 6) reads %globaltimer after the PV product of every iteration; in the compiled num_stages = 2 loop that sits between the last MMA and the next tile's copies, so it is the issue time of the next tile. Its resources equal the unchanged kernel's, but it is 11.5% slower for m128n32-w8-s2 and 6.4% for m128n64-w8-s2, so the stamps may overstate the spread. Within each group of 16 CTAs that share a head, the followers issue a median of about 200 ns after the first (m128n32-w8-s2: p10 32 to 64 ns, p90 352 ns), the same in the first wave, which starts together, as in the later ones; the first issuer changes from tile to tile (no CTA leads more than 27% and 41% of the tiles). The group does not pull itself into step, as a deterministic loop with the measured merged wait would. With the measured offsets and max(0, Ld - L2l - d) per follower (Ld - L2l for the first), the predicted paid round trip per iteration, L2l + own plus the mean extra wait, is 447 ns against 493 ns measured in the same run for m128n32-w8-s2, inside the registered 15%. The free-running sweep below makes this match probably a coincidence: the remaining-time wait holds with a fixed lead and a step barrier, not in a free-running group. For m128n64-w8-s2 it is 643 against 465 ns, outside; L2l + own alone is 536 ns, as stated before measuring, so this miss is the open item below and not the merged wait.

Natural offsets in a free-running group (sync-loop-free, GB10). To see whether the offsets could be a profile field, groups of 4 or 16 CTAs read the same cold stage in a free-running loop with no schedule and no step barrier, over 24 configs (stage, warps, MMA per step, group size), with and without stamps; registered in h1-free-gb10-registration.md before measuring (sync-loop-free-gb10-posthoc.json; a first run, sync-loop-free-gb10-invalid.json, computed the finish spread with unsigned differences and is invalid). The followers do spread out (with 16 per group a median of 128 to 160 ns at 16 KiB, 288 to 1280 ns at 32 KiB; with 4 per group they stay within the 32 ns timer step), but the group-mean stage latency excess over warm L2 is still about Ld - L2l: 231 to 316 ns with 16 per group and 266 to 364 ns with 4, against 264.6 ns. No registered shape and rule for the offsets, with max(0, Ld - L2l - d) per follower, comes within 40 ns (median errors 140 to 170 ns on the 23 held-out configs), while the current form, every member waiting Ld - L2l, misses by a median of 33 ns. So the remaining-time wait measured with a fixed lead and a step barrier does not carry over to a free-running group, the match for m128n32-w8-s2 above may be a coincidence, and the merged wait is left as it is: a known limitation, not a profile field.

The round-trip base with many CTAs: two separate items. Three measurements had put the base, L2l + own with own at the 1 SM L2 rate, off with many CTAs: sync-loop-bytes at 48 CTAs, the 32 KiB warm baseline of sync-loop-delta, and m128n64-w8-s2 above. They are two different things.

  • Large stages with many CTAs (sync-loop-burst, registered in h1-burst-gb10-registration.md, sync-loop-burst-gb10-posthoc.json). The model lets the L2 share bound only the average rate of a phase, so a burst of simultaneous stages could have been missed. It was not that: CTAs started together fall out of step within a few tens of steps (phase coherence from 1.00 at step 0 to 0.02 to 0.27 at step 16 and at most 0.22 after for 36 CTAs or more; with 12 CTAs 0.74 and 0.50 at step 16 for 16 and 32 KiB, 0.33 and 0.12 at step 64), and starts spread evenly over a step give the same exposed time (n 48, 64 KiB: 1294 against 1301 ns). The slowdown with n is real and steady: at 64 KiB the exposed time is 845, 1060, 1130, 1224 and 1294 ns for 12, 36, 40, 44 and 48 CTAs, where the model gives 937 ns throughout. Neither the current form nor the burst form max(L2l + own, n SB / BW(n)) won the registered test (median errors 14.6% and 10.2% on the 9 judged lock points, 14.6% and 10.8% on 13 stag points). A follow-up registered in h1-l2-share-gb10-registration.md (l2-share-gb10-posthoc.json) measured the L2 read rate against active SMs through cp.async as well as ld.global.cg in one session, and on GB10 the two are about the same (78 GB/s at 1 SM for both, 2195 against 2111 GB/s at 48), unlike the A100 in issue #8. On 17 new combinations of CTA count and stage size, no form won: the current model misses by a median of 9.5%, the burst form by 15.9% and a steady share at BW(n) / n by 31.6%. The exposed time also rises in steps with the stage size rather than linearly (one CTA: 466, 495 and 725 ns at 24, 40 and 56 KiB), which none of the forms has; this is recorded only. So large stages with many CTAs share the L2 in a way none of these forms captures; the sync-loop-delta warm baseline, held in step by its step barrier, is the one place a burst may still apply. How the model would tell a phase is in step is moot for now.
  • The ablation's noload baseline. Its compiled loop is a subset of the unchanged one (the same 128 HMMA, 72 LDSM, 96 FMUL, 34 MUFU and 8 SHFL in SASS; it lacks the 8 LDGSTS, about 30 integer instructions and one barrier, and adds one I2FP for the offset), yet it runs 26 us slower than the num_stages = 3 kernel for m128n64-w8. The difference is ptxas's scheduling of the two programs, so no source-level variant removes it. The paid round trip is therefore given as a range: unchanged minus noload as a lower bound, and unchanged minus the same config's num_stages = 3 kernel as an upper bound where that kernel is not slower than noload (the loads are then fully hidden). For m128n64-w8-s2 that is 465 to 517 ns per iteration; L2l + own (536 ns) is 3.5% above the upper end, compatible with the base's uncertainty but not shown equal. For m128n32-w8-s2 the num_stages = 3 kernel is slower than noload (931 against 830 us), so 493 ns stays a lower bound only.

H7: the KernelIR undercounts the shared memory that ldmatrix reads. A compute-only sweep of the attention loop on GB10 (h7-compute-registration.md, compute-base-gb10-posthoc.json; acquisition rules passed) found that each warp's ldmatrix reads the whole K and V tile, 294912 B per CTA per iteration for m128n64-w8, while the KernelIR's smem_load counts the tiles once, 65536 B: the frontends take it from the TTGIR local_load tile sizes and add the PTX ld.shared bytes, and their PTX pattern does not match ldmatrix, so the MMA operand reads are never counted per warp. The GEMM frontend has the same gap. With the SASS bytes, a dependent-chain form (t_mma + max(t_smem, t_alu + t_sfu + t_shfl) + sync) predicts the attention loop within a median of 4.5% (the current combining rule 8.6%, a plain sum 31.5%); the GEMM variant has a floor of about 350 ns per step in its small tiles and does not answer the GEMM question.

Recompiling every v0.2 holdout config offline (v02-ldmatrix-bytes.json, scripts/posthoc_ldmatrix_bytes.py), the PTX ldmatrix bytes are a median of 3.0 times the IR's for attention (1.85 to 6) and 2.2 times for GEMM (1.6 to 3), on both GPUs, with no unrolled loop. Putting them into the archived KernelIR and rerunning the v0.2-final core (v02-counterfactual.txt; the archived predictions reproduce exactly) moves every cohort's signed median error up: GB10 attention warm from -7.7% to +3.9% (num_stages = 4 from -15.5% to -0.9%, num_stages = 2 from -2.5% to +8.7%), RTX 4070 attention warm from +2.3% to +9.8%, RTX 4070 GEMM warm from -5.4% to -2.5%, GB10 GEMM warm from -20.4% to -18.5%. Ranking does not improve on balance (GB10 attention mean top-5 regret 0.82% to 2.30%, RTX 4070 attention 1.30% to 0.64%, mean tau down 0.01 to 0.04 for attention). The undercount had been offsetting the over-predicted num_stages = 2 round trip: correcting the bytes alone shifts attention to over-prediction. This is a post-hoc report; how a fix is registered is not decided here.

Status of the H1 line (post-hoc, GB10 unless stated).

HypothesisEvidenceStatusInto the model
MMA drain hides the next copiessync-loop-overlap (RTX 4070)Refuted (provisional: the data fail the acquisition rules)No
num_stages = 2 attention hides the round tripGB10 ablationRefuted: it pays it, num_stages = 3 hides itNo
Copy transfer hidden under a miss (max form)sync-loop-bytes, sync-loop-missRefuted: the sum holds at grid 1No
Partial miss weighted by bytes (the current model)sync-loop-missRefuted: a partial miss costs about one full round tripThe replacement, a stage waiting for its slowest copy, is a candidate that needs a registered test
Merged request waits the rest of the fillsync-loop-deltaHolds with a fixed lead and a step barrier (provisional: the data fail the acquisition rules)No
Natural offsets as a profile fieldsync-loop-free, attention stampsRefuted: a free-running group still waits the full fillNo (known limitation)
Burst of simultaneous stages against the L2sync-loop-burstRefuted: CTAs fall out of step within a few tens of stepsNo
Steady L2 sharing of large stages with many CTAssync-loop-burst, l2-paths and the check gridTested, no form found (current model 9.5%, burst 15.9%, share 31.6%)No
noload baseline biasSASS comparisonExplained (ptxas scheduling); reported as a rangeNot a model item
Compute base under-predicted (H7)Compute-only sweep, PTX recount of v0.2The KernelIR undercounts ldmatrix bytes by 2 to 6 times; a dependent-chain form fits the attention loop (4.5%)A frontend fix is a candidate, not yet registered

What remains open for the num_stages = 2 over-prediction is the compute base (H7); the sharing of large stages was tested without finding a form.

  • H1. With prefetch distance 0, the next iteration's copies overlap the MMAs still executing. Not supported, see the correction above. The warps reach the loop end and issue the next K and V copies while the PV MMAs they issued are still in the tensor pipe, so the copy latency overlaps the MMA drain. sync_stage_loop_ablation points this way: adding an explicit MMA-to-load dependency (ld_st_sync_cross_dep) makes the loop slower. Test: a single-buffer loop with long MMA chains, with and without that dependency, at 1 and 2 CTAs per SM, on both GPUs.
  • H2. The last partial wave is charged too much when 2 CTAs fit per SM. The model charges it a full 2-CTA wave. Whether it places the 32 tail CTAs two per SM on 16 SMs or one per SM on 32 SMs was not traced; on hardware the placement decides whether they run at the shared or the solo MMA rate. Test: a model trace of SM assignment for this grid, and a dispatch microbenchmark that launches a full 2-CTA wave plus a partial wave and records the SM of each CTA.

2. GB10 GEMM: 2.12% warm, 2.00% cold​

CaseRegret warm / coldContribution warm / cold (points)Fastest configIts predicted rank warm / coldIts error warm / cold
v02-gb10-prefill-8965.27% / 1.89%0.59 / 0.21m128n128k64-w8-s1-g16 / 6-24.2% / -23.9%
v02-gb10-resident-wave-exact4.67% / 5.52%0.52 / 0.61m64n128k32-w8-s4-g120 / 19+1.1% / +4.2%
v02-gb10-resident-wave-below4.56% / 5.57%0.51 / 0.62m128n128k64-w4-s1-g1 / m64n128k32-w4-s4-g123 / 21+2.6% / +4.3%
v02-gb10-mask-mnk-11533.57% / 4.03%0.40 / 0.45m128n128k64-w8-s4-g1 / -s1-g115 / 13-26.8% / -26.6%
v02-gb10-decode-40.92% / 0.95%0.10 / 0.11m64n128k32-w8-s4-g18 / 8+0.0% / +0.5%
v02-gb10-decode-400.09% / 0.02%0.01 / 0.00m64n64k32-w4-s1-g16 / 6-0.9% / -0.2%

The other three cases have zero regret.

Confirmed​

  1. prefill-896: three num_stages = 4 configs are predicted 50% to 57% fast and take shortlist places. m128n128k64-w8-s4-g1 and m128n128k64-w4-s4-g1 (3 stage buffers, 96 KB, 1 CTA per SM) are predicted first and second and measure 53% slower than the fastest config; m64n128k32-w8-s4-g1 (3 buffers, 36 KB) is predicted fifth and measures 57% slower. The fastest config is predicted sixth, 0.33% behind the fifth (0.35% cold), so the case's regret hangs on that margin: scaling GB10's DRAM MLP curves by 0.998 is enough to move it into the shortlist. The s1 and s2 configs of the same tiles are predicted fast too, but less: 24% to 29% for m128n128k64, 38% to 40% for m64n128k32-w8.
  2. resident-wave-exact and -below (M = 48, DRAM bound): the ranking is decided inside the profile's uncertainty. The measured top 8 are within 3.6% of each other, while the model's errors on them range from -0.0% to +5.4%. The model splits the configs into two groups: num_stages = 2 tiles with 3 to 9 CTAs per SM, which it calls DRAM-bandwidth bound and predicts 3% to 4% fast, and pipelined s4 and s1 configs, mostly with 2 CTAs per SM, which it calls DRAM-latency bound and predicts up to 5.4% slow. The hardware puts the second group first. Scaling GB10's DRAM MLP curve (dram_bw_by_bytes_in_flight) by 1.05, within its stated 15% uncertainty, changes resident-wave-exact cold from tau-b 0.31 and regret 5.52% to tau-b 0.74 and regret 0.39%, and 1.10 or 1.20 gives the same (tau-b 0.73 and 0.74, regret 0.39%), so the configs sit just on the latency-bound side of a threshold.
  3. The dip in GB10's cp.async DRAM MLP curve is a single-run outlier, but it is not what costs the regret. The profile has 197.2 GB/s at 256 KB in flight and 221.8 at 384 KB between 229.7 at 224 KB and 258.3 at 512 KB. The five-repeat measurement (gb10-memory-repeat-posthoc.json) gives 236.0 and 243.3 GB/s with at most 1.4% spread, monotone. Replacing all 96 repeated MLP points with their medians leaves both resident-wave regrets unchanged; prefill-896 drops to zero only by the margin in item 5. Scaling the MLP peak to equal the DRAM bandwidth ceiling (factors 0.998 and 1.006) makes resident-wave worse, so the two profile fields are not inconsistent.
  4. mask-mnk-1153: every config loads 2 bytes at a time through registers. With K = 6653, all loads have transfer_width_bytes = 2 and no asynchronous copy, and the prefetch distance is 0 for every num_stages, which is why the s1, s2 and s4 variants measure the same. All configs are predicted 27% to 82% fast (warm -26.8% to -81.6%, cold -26.6% to -81.9%), the smallest tiles most (m16n64k32-w4: -82%), which ranks them first. The loads are coalesced (from the offline TTGIR, each warp load is 32 consecutive f16 of one row), but every row starts only 2-byte aligned, since K and N are odd, so a warp request usually spans three 32 B sectors. v02-gb10-mask-mnk-641 shows the same pattern (-35% to -85%, m16n64k32-w4 most) with zero regret. The memory issue bound (0.859 warp instructions per ns per SM) does not bind on GB10 for these configs, the same as on the RTX 4070's mask-mnk (post-hoc, posthoc-core-phase1-phase2.md).

Hypotheses​

  • H3. Multi-buffer cp.async pipelines run slower on GB10 when the GEMM is compute heavy. On prefill-896, s4 is 13% to 53% slower than s1 of the same tile, while on the DRAM-bound resident-wave cases s4 configs are the fastest. No GB10 microbenchmark covers 2 or more stage buffers with MMA work at 1 or 2 CTAs per SM and 12 to 32 KB stages. Test: dram_closed_loop_mma on GB10 over that range.
  • H4. DRAM-latency-bound configs with 2 CTAs per SM are charged 2% to 5% too much on GB10. Item 6 shows the sensitivity, not the mechanism. Test: GB10 closed loop at 2 CTAs per SM with 2 and 3 buffers and 8 to 16 KB stages, compared with the model's closed loop.
  • H5. 2-byte loads from DRAM are limited by request count, not bytes. Each 2-byte warp request moves 64 B. Test: the controlled-in-flight load microbenchmark at full GPU from DRAM with 2, 4 and 16 B widths, plus counters for DRAM sectors per request once they are available.

3. GB10 GEMM cold: the learned baseline's non-inferiority​

VirtualGPU's mean regret is 2.00%, the NeuSight-style baseline's 1.40%, 0.60 points apart against a 0.5 point margin. The difference is in three cases, the same as above: mask-mnk-1153 (4.03% against 0.79%) and both resident-wave cases (5.57% and 5.52% against 2.38% and 2.40%). The baseline's tau there is 0.46, 0.016 and 0.011, so its smaller regret in the two resident-wave cases is not a better ranking. VirtualGPU's regret is lower or equal in the other six cases, including prefill-1792 (0% against 4.15%).

4. GB10 attention warm: the tau margin​

The median tau gain over the learned baseline is 0.048 against a required 0.05. The case furthest behind is b1-q20-kv20-s897-d64-full warm: tau 0.358 against the baseline's 0.650 (cold: 0.601 against 0.696). It is a small kernel (about 70 us, about 2 waves at 3 CTAs per SM for the 64-row tiles). Warm, the model calls the 3-CTA m64n32-w4 configs L2-latency bound and predicts them 15% slow, though they are the fastest, and calls the 1-CTA 8-warp configs MMA bound and predicts them 7% to 17% fast. b2-q28-kv7-s1409-d64-full and b1-q48-kv8-s1857-d64-causal are the other two cases where the baseline's tau is higher, by 0.11 and 0.07.

The pattern (several CTAs per SM predicted slow on a latency path, one 8-warp CTA predicted fast on MMA) is the same in kind as items 2, 4 and 6. Whether it has the same cause is a hypothesis, H6, to be tested with H1, H2 and H4.

5. Order of work for v0.3​

  1. Single-buffer loops and partial waves (H1, H2). H1 rests on item 2, which covers every num_stages = 2 attention config and bears on num_stages = 2 GEMMs too. H2 rests only on the fastest config of the three d128 cases and is less certain: a partial wave costing a full wave is expected with one CTA per SM. Both have direct microbenchmarks.
  2. Multi-buffer pipelines with MMA on GB10 (H3). It decides prefill-896.
  3. Latency-bound DRAM loops at 2 CTAs per SM on GB10 (H4). It decides both resident-wave cases and most of the non-inferiority gap.
  4. 2-byte loads (H5). mask-mnk on both GPUs.
  5. Profile hygiene. Replace single-run MLP points with repeated medians before v0.3's freeze (item 7). It does not move the v0.2 regrets, but the dip is an error in the profile.