CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 05:21:37 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/PaddlePaddle/Paddle.git
etag: W/"abddc5ad4b3dc032a3b45d44ae69e45b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=k4xlp2FqsZ8WmGz1jjSPw3DwFHoGLMxisQ48RvvCmT%2FHL%2Bl5gsGFoXBx4THUOvJRRvIVANLUajo8%2BNz1Ddlmj2ZoyMLTAZFH%2B1o3xo0EPALrtZ86KYdr6QkhG09w5L2sqy%2BSbPkzDr2wWXdyGw6u71vf8hPWrjm2aGR5DVzSo8pvyHLJ4dPFeclF5kgBRkOFOZSCFC1%2B5gb%2F7wuCe%2BxsLqS4p8Lt7CSAW4WbzQznawmSSc2T3uMEjq6cIEsdxwk6UcvRg5lIUjILadGgLU4SMg%3D%3D--cGF72sgWnLzVMavJ--df%2FCaeO3bBgyp6d1eMdZiw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1028039012.1753766496; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 05:21:36 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 05:21:36 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A4AE:1FE4B6:3582CA:49128C:68885A60
Add Flashmask (#65409) · PaddlePaddle/Paddle@f947b35 · GitHub
Copy file name to clipboardExpand all lines: paddle/phi/kernels/flash_attn_kernel.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/calc_reduced_attn_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/flash_attn_grad_kernel.cu
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit f947b35
Add Flashmask (#65409)
* Add Flashmask
* fix flash_attn_kernel.h
* fix bug
* flashmask support downend
* update
* add unittest
* assertion for ending row index
* fix headdim 32,64 for cuda12.3
* fix flash_attn
* fix bug
* remove downend assertion, enable downend
* update doc, remove return_softmax
* enable flashmask unittest
* update flashattn
* fix bug
* flashmask support window and varlen
* use varlen
* add upend
* fix enforce
* fix enforce, update flashattn
* fix window
* update flashattn
* fix code style
* Refine.
* Refine.
---------
Co-authored-by: umiswing <umiswing@foxmail.com>1 parent a25a2d5 commit f947b35Copy full SHA for f947b35
File tree
Expand file treeCollapse file tree
13 files changed
+935
-300
lines changedFilter options
- paddle
- phi
- kernels
- gpu
- ops/yaml
- scripts
- python/paddle/nn/functional
- test/legacy_test
- third_party
Expand file treeCollapse file tree
13 files changed
+935
-300
lines changedpaddle/phi/kernels/flash_attn_kernel.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/flash_attn_kernel.h+15-17Lines changed: 15 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
80 | 78 |
| |
81 | 79 |
|
paddle/phi/kernels/gpu/calc_reduced_attn_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/calc_reduced_attn_kernel.cu-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 | 45 |
| |
47 | 46 |
| |
48 | 47 |
| |
|
paddle/phi/kernels/gpu/flash_attn_grad_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/flash_attn_grad_kernel.cu+78-35Lines changed: 78 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
303 | 304 |
| |
304 | 305 |
| |
305 | 306 |
| |
306 |
| - | |
307 | 307 |
| |
308 | 308 |
| |
309 |
| - | |
| 309 | + | |
310 | 310 |
| |
311 | 311 |
| |
312 | 312 |
| |
| |||
632 | 632 |
| |
633 | 633 |
| |
634 | 634 |
| |
635 |
| - | |
| 635 | + | |
636 | 636 |
| |
637 | 637 |
| |
638 | 638 |
| |
639 |
| - | |
640 | 639 |
| |
641 | 640 |
| |
642 | 641 |
| |
| |||
712 | 711 |
| |
713 | 712 |
| |
714 | 713 |
| |
715 |
| - | |
716 | 714 |
| |
717 | 715 |
| |
718 |
| - | |
| 716 | + | |
719 | 717 |
| |
720 | 718 |
| |
721 | 719 |
| |
| |||
731 | 729 |
| |
732 | 730 |
| |
733 | 731 |
| |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
734 | 783 |
| |
735 | 784 |
| |
736 | 785 |
| |
| |||
799 | 848 |
| |
800 | 849 |
| |
801 | 850 |
| |
802 |
| - | |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
808 |
| - | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
809 | 857 |
| |
810 | 858 |
| |
811 | 859 |
| |
| |||
934 | 982 |
| |
935 | 983 |
| |
936 | 984 |
| |
937 |
| - | |
938 | 985 |
| |
939 | 986 |
| |
940 | 987 |
| |
| |||
983 | 1030 |
| |
984 | 1031 |
| |
985 | 1032 |
| |
986 |
| - | |
987 | 1033 |
| |
988 | 1034 |
| |
989 | 1035 |
| |
| |||
993 | 1039 |
| |
994 | 1040 |
| |
995 | 1041 |
| |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
1001 |
| - | |
1002 |
| - | |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1012 | 1056 |
| |
1013 | 1057 |
| |
1014 | 1058 |
| |
| |||
1026 | 1070 |
| |
1027 | 1071 |
| |
1028 | 1072 |
| |
1029 |
| - | |
| 1073 | + | |
1030 | 1074 |
| |
1031 | 1075 |
| |
1032 | 1076 |
| |
1033 |
| - | |
1034 | 1077 |
| |
1035 | 1078 |
| |
1036 | 1079 |
| |
| |||
1073 | 1116 |
| |
1074 | 1117 |
| |
1075 | 1118 |
| |
1076 |
| - | |
| 1119 | + | |
1077 | 1120 |
| |
1078 | 1121 |
| |
1079 |
| - | |
| 1122 | + | |
1080 | 1123 |
| |
1081 | 1124 |
| |
1082 | 1125 |
| |
|
You can’t perform that action at this time.
0 commit comments