Skip to content

[TRITON]: Lean Attention spatial2 - #853

Merged
valechen merged 1 commit into
mainfrom
la_spatial2
Aug 20, 2025
Merged

valechen merged 1 commit into
mainfrom
la_spatial2

Conversation

@valechen

Copy link
Copy Markdown
Contributor

Motivation

Improve lean attention performance by applying spatial XCD remapping and stream_k work allocation per XCD

Technical Details

  1. stream_k work allocation per XCD
  2. Re-write scalar operation to more vector friendly version

Test Plan

Pass test_la.py

Test Result

Pass test_la.py

Submission Checklist

@valechen
valechen requested a review from rahulbatra85 August 19, 2025 23:29
@dhonnappa-amd

Copy link
Copy Markdown
Collaborator

Jenkins CI skipped: Check lint is missing. Exiting the entire job...

@rahulbatra85 rahulbatra85 changed the title La spatial2 [TRITON]: Lean Attention spatial2 Aug 20, 2025
@rahulbatra85

Copy link
Copy Markdown
Contributor

Approved, but can you please add MI35X config json file in another PR. Soon there will a MI35X CI and unit test for this op will start failing. Thanks!

@valechen
valechen merged commit a7b372e into main Aug 20, 2025
@valechen
valechen deleted the la_spatial2 branch August 20, 2025 21:22
valarLip pushed a commit that referenced this pull request Mar 18, 2026
Apply spatial stream-K style work allocation to leanAttention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants