Add Paddle linear_attn GDN/KDA operators and benchmark support#133
Open
YJMSTR wants to merge 4 commits intoPaddlePaddle:mainfrom
Open
Add Paddle linear_attn GDN/KDA operators and benchmark support#133YJMSTR wants to merge 4 commits intoPaddlePaddle:mainfrom
YJMSTR wants to merge 4 commits intoPaddlePaddle:mainfrom
Conversation
YJMSTR
commented
Apr 17, 2026
- migrate the GDN and KDA linear attention operator stack into flashmask/linear_attn from flash-linear-attention
- add shared Triton/Paddle utilities, l2norm support, common chunk kernels, and fused recurrent paths required by both operators
- register paddle benchmark ops and runner entrypoints for chunk/recurrent GDN and KDA performance comparison
- add Paddle-side GDN/KDA correctness tests covering forward/backward parity, varlen paths, gate-in-kernel paths, transpose-state handling, and inference-oriented state outputs
- keep the test suite focused on operator correctness rather than internal implementation details
- migrate the GDN and KDA linear attention operator stack into flashmask/linear_attn from flash-linear-attention - add shared Triton/Paddle utilities, l2norm support, common chunk kernels, and fused recurrent paths required by both operators - register paddle benchmark ops and runner entrypoints for chunk/recurrent GDN and KDA performance comparison - add Paddle-side GDN/KDA correctness tests covering forward/backward parity, varlen paths, gate-in-kernel paths, transpose-state handling, and inference-oriented state outputs - keep the test suite focused on operator correctness rather than internal implementation details
Author
|
benchmark on H800 pure paddle env, FLA_BENCHMARK=1, warmup = 100ms, rep = 500ms. paddle + torch env: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.