Files
kernbench2/docs/sweeps/decode_batch_sweep.csv
ywkang 13f5cbc317 gqa decode: fix cube_base output-store; measure batch scaling on one SIP
Concurrency fix (completes the cube_base change): the decode kernel's
output store o_base still used the global cube_id while every load used
the user-local cube_local. For a single user (cube_base=0) they coincide,
so it was masked; a second batched user (cube_base>0) overshot its o shard
into an unmapped VA, mis-decoded to a phantom sip0.cube0.pe8 and raised a
RoutingError. Switch o_base to cube_local (one line); single-user results
are byte-identical (decode smoke/correctness pass).

Batch harness (un-skipped): create all users' tensors first, then submit
all launches deferred and drain together, so deploys don't drive an
already-submitted launch and serialize the batch. Concurrent users on
disjoint CUBE groups now overlap to within 3-5% of the single-user
latency. Swept B in {1,2,capacity} at 8K (high-B dense runs are the
expensive ones; throughput is near-linear in B).

Measured result: aggregate throughput at a full SIP rises from 0.86
(1-kv-per-cube, 2 users) to 1.41 requests/us (8-kv-per-cube, 16 users) —
the dense mapping wins throughput, the spread mapping wins latency.
S5.2 batch paragraph updated projected -> measured; add batch_scaling
figure and plot_batch_scaling.py.

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

907 B

1modekv_per_cubeCS_kvBcapacityagg_latency_usmean_user_latency_usthroughput_users_per_us
2A1188192122.24716450000053762.24716450000053760.44500524994932983
3A1188192222.31318450000125432.24716450000123570.864608940617973
4A2248192143.35551275000054753.35551275000054750.2980170467240325
5A2248192243.39352275000105143.3555127500010420.5893580645656141
6A2248192443.46954275000107033.35551275000115861.1528896711241752
7A4428192185.5861355000005575.5861355000005570.17901463364071643
8A4428192285.6022955000008235.5861355000006730.35699652044411195
9A4428192885.7832854999860285.5861354999849571.3832967436968704
10B81819211610.81609100000094710.8160910000009470.09245484343649775
11B81819221610.84841100000153510.8160910000012360.18435879687815265
12B818192161611.3849209998669110.8160909999744031.4053676788962384