Closed
[FlexAttention] 统一并简化 tiling config 生成 #4285
stonexxxAdd on  Aug 22Closed at  Sep 20
stonexxx
stonexxxCollaborators
Aug 22 Create

背景

FlexAttention 的前向、反向及辅助模板存在多套 tiling 候选生成逻辑,需要统一配置生成边界并保证候选在生成后即满足模板约束。

修改范围

  • 统一前向、反向及辅助模板的 tiling 候选生成入口。
  • 在生成阶段完成 sparse block 有效性约束。
  • 候选按照 block 面积从大到小排序。
  • 保留 NPU 模板额外 compile options 的设置边界。

验收条件

  • 受影响 Python 文件可通过 compileall。
  • FlexAttention tiling 约束与候选排序 smoke test 通过。
  • 不引入设计文档或测试文件提交。

本 issue 对应 rebase_sync_master 拆分序列的第 2/6 个。

关联 PR

likedislike
stonexxxstonexxxCollaborators
Aug 22 associated Kanban: FrameworkPTAdapter 版本issue看板
TorchNPU-BotTorchNPU-BotCollaborators
Aug 22 Added label: triage-review
TorchNPU-Bot
TorchNPU-BotCollaborators
Aug 22 Comments:

issue待分派,添加triage-review标签

likedislike
chenrayray
chenrayrayCollaborators
Sep 20 Comments:

因为master 同步序列中的 tiling config 统一与简化已有对应交付,对应 PR !45137 已合入,所以先关闭此 issue。如仍有问题或需要继续跟进,请补充具体情况并重新打开。

likedislike
chenrayraychenrayrayCollaborators
Sep 20 changed custom state from TODO to DONE
chenrayraychenrayrayCollaborators
Sep 20 Close issue
ascend-robotascend-robotCollaborators
Sep 20 Added label: resolved
chenrayraychenrayrayCollaborators
Sep 24 Associated milestone: v26.2.0