Files
kernbench2/docs/sweeps/short_context_decode_composite_sweep.csv
ywkang 711a9a257f gqa short-context: exclude KV deploy from wall; correct HBM peak; batch scaffold
Metric fixes (test harnesses, deploy artifact + wrong constant):
- wall = max(t_end) - min(t_start): exclude the one-time KV-cache deploy
  from the measured decode/prefill step (it was 92-99% of wall, mapping-
  invariant, and masked the real per-mapping separation).
- PEAK_PE_HBM_BPS 128 -> 256 B/ns (8 channels/PE x 32 GB/s); the old value
  was half the modeled per-PE HBM BW, so hbm_bw_util read >1.0 once wall
  was corrected. All six short-context sweep CSVs regenerated/repatched.

Result: the four KV mappings now separate along a {64,32,16,8}-active-PE
ladder (decode 8-kv/1-kv = 4.8x at 8K, 7.4x at 64K), not "modest/tied" as
before; decode is bandwidth-bound at 46-76% of the 256 GB/s per-PE ceiling.

Report (S5.2 rewrite):
- Replace the tied-wall / 8x-per-PE-util claims (both deploy artifacts)
  with the corrected separation and a density trade-off (per-CUBE KV
  footprint, Fig 16 top panel switched to a wall-invariant metric).
- Add a projected latency-vs-batched-throughput analysis (marked
  projected, not measured): dense mappings win throughput, 1-kv wins
  latency; converges at long context.
- Regenerate Fig 15/16/17/18; fix plot script hardcoded ROOT path.

Batch experiment (Part 2, cube_base):
- Add backward-compatible cube_base=0 scalar to the decode kernel so a
  batched user placed at DPPolicy.cube_start addresses 0-based shards.
  Default preserves single-user behavior (32 decode tests pass unchanged).
- New batch harness (skipped): concurrent B>=2 launches hit a sim routing
  issue (sip0.cube0.pe8); single-user path verified. Concurrency fix next.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 16:25:04 -07:00

1.8 KiB

1variantmodekv_per_cubeCS_kvwall_usn_pegemm_utilmath_countmath_pipeline_ushbm_bw_utilhbm_read_mbhbm_write_kbipcq_kbkv_cache_per_cube_mb
2compositeA11881922.532214500000584640.334025415301506266560.00.40616616.06258.057.752.0
3compositeA118163844.176996500001463640.4049914813240861313600.00.49138232.06258.057.754.0
4compositeA118327687.466560500002640.453126442880711127680.00.54918264.06258.057.758.0
5compositeA1186553614.045688499950572640.481755807154179755840.00.58356128.06258.057.7516.0
6compositeA22481923.9256127500006404320.43092584717891656560.00.52297616.031258.024.754.0
7compositeA224163847.215176750001498320.468913807280123713600.00.56838532.031258.024.758.0
8compositeA2243276813.794304750002688320.490535197131826627680.00.59423164.031258.024.7516.0
9compositeA2246553626.95256074991636320.502111251180529555840.00.608068128.031258.024.7532.0
10compositeA44281926.726335500000743160.50299245406066816560.00.60984216.0156258.08.258.0
11compositeA4421638413.305463500001585160.508557405766710613600.00.61613832.0156258.08.2516.0
12compositeA4423276826.463719500003965160.511386315127625727680.00.61933864.0156258.08.2532.0
13compositeA4426553652.78023149984703160.512812604874571655840.00.620952128.0156258.08.2564.0
14compositeB81819213.09649100000131880.51667213759478386560.00.62612216.00781258.00.016.0
15compositeB811638426.25474700000305780.515456652473830813600.00.62434432.00781258.00.032.0
16compositeB813276852.5712590000078880.514851051966478227680.00.62345964.00781258.00.064.0
17compositeB8165536105.2042829996976180.51454878507935455840.00.623016128.00781258.00.0128.0