Skip to content

[New features] Support FlashMask with 512/512 and 576/512 head dimensions - #1724

Merged
baoqiwen merged 3 commits into
PaddlePaddle:developfrom
baoqiwen:bqw_bigd
Aug 13, 2026
Merged

[New features] Support FlashMask with 512/512 and 576/512 head dimensions#1724
baoqiwen merged 3 commits into
PaddlePaddle:developfrom
baoqiwen:bqw_bigd

Conversation

@baoqiwen

@baoqiwen baoqiwen commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

PR Category

Operator Mechanism

PR Types

New features

Description

开启 paddlefleet flashmask d512/dv512 d576/dv512 的支持

是否引起精度变化

@risemeup1111 risemeup1111 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

序号 位置 优先级 状态
1 FA4 大维度缺少前后向回归 P1

固定的 flash-attention 后端已支持 512/512 和 576/512,原先的 FA2 回退问题已修复;当前仍缺少这两个组合的 SM100 FlashMask 前向、反向回归测试。

Powered by Nyanpasu with gpt-5.5 xhigh, please check the suggestions carefully.

Comment thread packages/paddlefleet_ops/src/paddlefleet_ops/flash_mask_facade.py
@baoqiwen baoqiwen changed the title FlashMask support headdim576 headdim_v512 [New features] Support FlashMask with 512/512 and 576/512 head dimensions Aug 13, 2026
@liuhao2638

Copy link
Copy Markdown
Contributor

@risemeup1111 review这段代码

@risemeup1111 risemeup1111 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后端同步已解决 FA4 dispatch 问题,但新增的 512/512、576/512 组合仍没有 SM100 FlashMask 前向、反向回归测试,原 P1 判定为部分修复。

Powered by Nyanpasu with gpt-5.5 xhigh, please check the suggestions carefully.

@liuhao2638

Copy link
Copy Markdown
Contributor

@risemeup1111 再次review

@risemeup1111

Copy link
Copy Markdown
Contributor

已完成复核。当前 HEAD 与上一轮相同:FA4 后端已支持 512/512、576/512,但仍没有这两个组合的 SM100 FlashMask 前向、反向回归测试,因此 P1 仍保留,当前评审结论仍为需要修改。请补充代表性用例后再复核。

@baoqiwen

Copy link
Copy Markdown
Collaborator Author

本地测试已通过

@baoqiwen
baoqiwen merged commit f0b36ed into PaddlePaddle:develop Aug 13, 2026
29 of 33 checks passed
@risemeup1111

Copy link
Copy Markdown
Contributor

✅ Cherry-pick successful! Created PR: #1736

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.

5 participants