Repository navigation
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.
目的
将剩余 KDA 分块与通信研究变体整理为可独立运行的参考代码。仅提交到个人 fork,不作为主仓合入申请。
以当前 fork master
96143af9为固定基线,单个提交,只增加experiments/kda_schedules/下 5 个文件。旧目录、旧分支及已有参考 PR 保持不变。
整理内容
KDAStateAllGatherP2P,统一验证入口,不复制旧版本。不复制 FLA kernel,不修改生产 kernel、默认接口、依赖清单或正式 UT/ST。
同一入口验证输出、七类梯度、checkpoint、多次 forward 后逆序 backward,也可显式执行 benchmark。
本轮验证
环境:Ascend 910B3,CANN 9.1.0-beta.3,PyTorch/torch-npu 2.10.0,triton-ascend 3.2.2+gitc22984ba。
外部 FLA 为干净快照
6dff3e1995195d6f192b1b01f5ddf66be7cc0a35。未设置 UB capacity override。数值 reference 是完整 global sequence 的 FLA local KDA;global T = CP × local T。
全部结果 finite,固定门槛为 0.02;检查 output、dq/dk/dv/dgate/dbeta/dA_log/ddt_bias。
compileall、Ruff E9/F/B/E501、git diff --check、文档 catalog 检查通过;CPU 入口确认不导入 FLA/Triton。另完成小 shape 的计时/peak allocated 入口冒烟,不将该数据作为加速结论。
限制与历史结论
相关参考
复现命令、各模式差异与历史结果边界见 README。