Buckets:
Resume the optimization
The current optimized candidate is inference/kda_rolling16_local128/relative_mma.py, RelativeMmaModel. It keeps the state-major rank16 cache, reads each raw K coordinate once, rotates K in registers, uses Tensor Cores for QK/PV, and skips remote reads covered by local128. Best tested A100 settings are split128/four warps.
At32K under a38-GiB process allocator cap, optimized local128 has a broad 2.84k total tokens/s plateau from batch96 through315. Batch128 had2854 tok/s in the sweep and ~2845 averaged across the sweep and two confirmations; batch315 averages2829, batch316 OOM. GQA peaks3296 atB96, fitsB100, andB101 OOM. The old local128 parent reaches1556 atB64 and1589 atB315; optimization improves these by81% and~78% respectively. At selected short-context points, optimized local128 reaches38.31k at2K/B315 and10.71k at8K/B128. These short contexts were not full ceiling searches.
Persistent BF16 cache/sequence at capacity32776: GQA402751488bytes; roll16 without local125859840bytes; local128127432704bytes. Parameters: GQA98710016; ordinary roll1698710016; shared-projection local128100872704. The full-head attention work remains comparable: every layer consumes64 K/V coordinates per head, including four rank16 shared states in rolling. KV capacity and total logical reads are distinct.
Correctness thresholds: attention relativeL2<0.01; full-model logits relativeL2<0.05; graph replay relativeL2<0.001; untouched cache prefixes must match bitwise. The best local128 candidate passed with max attention error0.22% and full logits2.62%; graph replay error0. Historical checkpoints and optimized shape harness are separate paths.
Rejected directions include alternate directional cache layouts, partner gather in unfavorable layouts, split64/256/512 instead of128, two/eight warps instead of four, and streaming online-softmax variants. Read candidates.jsonl and benchmark.csv before repeating them. Some tuning can change on new hardware.
NCU was installed but hardware counters failed with ERR_NVGPUCTRPERM. Nsight Systems captured one warmed attention call:98.5% attention and1.5% merge in that isolated trace. Unprofiled batch64 attention+merge medians: rolling1.844ms, GQA1.608ms. Actual HBM/L2 bytes and achieved occupancy are unresolved.
Portable-only edits are documented in provenance/PORTABLE_CHANGES.md. Historical original inference source is in provenance/original_inference; the captured KDA records are preserved. Start a new experiment record rather than mixing new-GPU measurements into the A100 CSV.
Xet Storage Details
- Size:
- 2.57 kB
- Xet hash:
- 1c5d2ceea838395298ed1be8264e7863819a481ef821e87b47cd87f4963ff5c5
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.