Add: benchmark manual-scope paged attention on host build graph - #1786
Conversation
Port Case1 and Case2 with matching parameters and golden behavior while reusing the tensormap-and-ringbuffer orchestration and incore sources. Complete the QK and PV callable signatures with the block-table input so both runtime wrappers match the graph they execute. Case3 remains excluded because the shared head-dimension-256 kernels fail golden on both runtimes.
|
Warning Review limit reached
Next review available in: 59 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
host_build_graphcounterpart ofpaged_attention_unroll_manual_scopeCase1 and Case2.block_tableinput they actually consume.head_dim=256kernels fail golden on both runtimes.This is one workload-sized part of #1727.
Performance
Measured on one locked a2a3 NPU through
task-submit: eight adjacent TMR/HBG pairs, alternating order, ten rounds per process and case, with each case's first round excluded (72 steady samples per runtime/case).Paired device-wall changes (95% CI): Case1
-5.08%(-7.71%to-2.39%); Case2-6.94%(-8.96%to-4.88%). HBG is consistently faster on device; the measured host increase is in bind and validation, while runner time is unchanged within noise.These measurements used simpler base
7b3a9754and PTO-ISA pin0cefc9a5a1c24c62655cc345d408559595a8af32. Main later merged #1763, which removes redundant HBG arena initialization and explicitly leaves device time unchanged; the device comparison remains representative, while the host/bind values above are conservative pre-#1763 measurements.Performance job:
task_20260811_005307_2205262883(NPU 3, exit 0).Testing
task_20260811_004958_11579646241task_20260811_005131_18023031684(both reproduce the existing golden failure)