-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port 20250128 main perf kernel #70
Merged
Merged
Conversation
This file contains 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
pytest tritonsrc/test_backward -k '1.2 and 4-4]' passed Only tested POT heads, NPOT optimization will be added later
persistant dynamic tests passed
Has NaN problems for head dim [68,72) when running on MI200 + bf16
…AMIC According to ROCm/triton#716 this can restore the perf to ~400T
Notable changes for users 1. attn_fwd is untuned for now (no point of using the old database due to outdated arguments) 2. Only one combination of perf/copts is built for untuned kernels. Previously it depends on the there is only one combination of PERF_CHOICES perf in KernelDescription. Now we can list all possible options there and leaving the first choice default. 3. Replace num_stages=2 with =1 in tuning_database for all remaining kernels. num_stages=2 triggers compiler bugs: "error: operation scheduled before its operands"
… of types. Also explicitly disable persistent, and fix a Debug build bug in attn_fwd.
All Unit tests passed when compiled with default options provided in |
jeffdaily
approved these changes
Feb 4, 2025
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.
Major Changes
main_perf
kernelattn_fwd
table from tuning database, since the old entries are not valid anymore.num_stages=1
sincenum_stages=2
constantly trigger compiler bugsAOTRITON_SKIP_LUT_CHECK
to skip LUT sanity check on certain kernelsAOTRITON_SKIP_LUT_CHECK=flash.attn_fwd ninja install
Minor Changes
TensorView<0>::get_null_tensor
AttentionExtraArgs
from namedtuple to dataclass for easier-to-read default values.test_gqa
tests). GPU reference triggers segfault.Know Problems
flash.attn_fwd
kernel is cleared and no plan to re-build it ATM due to immediate additional changes to the forward kernel.