[Examples] add tfla op and tfla-optimized#722
Open
Old-cpu wants to merge 2 commits intobuddy-compiler:mainfrom
Open
[Examples] add tfla op and tfla-optimized#722Old-cpu wants to merge 2 commits intobuddy-compiler:mainfrom
Old-cpu wants to merge 2 commits intobuddy-compiler:mainfrom
Conversation
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.
Summary
Description
This PR adds an optimized implementation of the Tiled Flash Linear Attention (TFLA) kernel based on the NeurIPS 2025 paper "Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels",demonstrating significant performance improvements over the baseline versions. The optimized TFLA kernel achieves approximately 21× speedup compared to the baseline TFLA implementation, and approximately 3× speedup compared to the fused GQA Attention kernel (next-gqa-attention-fusion.mlir).
Hardware Configuration
Background
The TFLA kernel provides a fair comparison with Grouped Query Attention (GQA) under identical configurations:
Expected Performance

make next-tfla-runandmake next-tfla-optimized-runChecklist