Closed
[Documentation|文档反馈]: 文档质量扫描发现 ops-transformer 仓 aclnn 接口 moe 模块文档存在问题(324 处问题) #8022
yuwang-Add on  10 days agoClosed at  2 days ago
yuwang-
yuwang-
10 days ago Create

Document Link(文档链接)

ops-transformer 仓 aclnn 接口 moe 模块文档(48 个算子目录,以附件明细"文件名"列为准)

【修改要求】

  1. 请按附件明细逐条修改对应文档;附件之外同文件/同目录同类问题请一并排查修改。
  2. 中英文文档同步修改。
  3. 修改完成后请在 issue 中反馈修改情况及涉及文件清单。
  4. 附件及表中的"修改建议"为自动化工具生成,仅供参考;请结合实际接口定义/源码复核确认后再修改,切忌直接照搬。

Issues Section(问题文档片段)

【问题概要】共 324 处,主要问题类型:Con-2 代码参数与说明不一致(33 处)、Cod-2 代码逻辑与命名问题(27 处)、参数定义与代码示例一致性(24 处)、代码逻辑错误(22 处)、Con-1 同一对象多名称(16 处)、Def-4 参数解释不完整(14 处)、公式错误(14 处) 等。
问题分布较集中的算子:moe_distribute_combine_v4(15 处)、moe_fused_topk(15 处)、moe_distribute_dispatch_v4(14 处)、moe_distribute_dispatch_setup(13 处)、moe_distribute_combine_v3(11 处)、moe_update_expert(11 处)、moe_token_unpermute_grad(11 处)、moe_distribute_combine_setup(10 处)、moe_distribute_dispatch(10 处)、moe_gating_top_k_softmax_v2(10 处)。

【问题明细】完整明细见附件表:transformer类接口问题列表-需开发确认-moe.xlsx(共 324 条,明细含 文件名/问题描述/原文文本/修改建议/可自动修改/规则名称/分类/处理方式/处理责任人/是否修改/拒绝原因 等列)。

Existing Issues(存在的问题)

likedislike
周云飞
周云飞Collaborators
10 days ago Comments:

感谢反馈。附件中的 324 条为自动扫描结果,具体问题及修改建议需要结合接口定义和源码逐条确认,不能直接照搬。

处理时可同时检查相关文件和目录中的同类问题,并核对中英文文档是否一致;修改情况及涉及文件清单需在处理后反馈。目前尚未确认具体修改范围和完成时间,我们会继续跟踪和分析。

likedislike
周云飞周云飞Collaborators
5 days ago Assign zzzzzzyf_ as responsible person
周云飞周云飞Collaborators
5 days ago Added label: feature
周云飞周云飞Collaborators
5 days ago Added label: requirement
周云飞周云飞Collaborators
4 days ago Removed responsible person zzzzzzyf_
周云飞
周云飞Collaborators
3 days ago Comments:

文档质量扫描问题及责任人已汇总,详见 文档问题开发处理清单.xlsx。可按 Issue 链接或责任人筛选;修改建议请结合实际接口和源码核对。

当前清单已纳入 #8770–#8773;#8774–#8776 的附件明细尚待补充。

likedislike
huang-wei-chenhuang-wei-chenCollaborators
2 days ago Associated pull request
周云飞
周云飞Collaborators
2 days ago Comments:

文档质量扫描问题已合并至 #7867,后续统一在该 Issue 跟踪;具体修复进度以跟踪情况为准。

likedislike
周云飞周云飞Collaborators
2 days ago Close issue
周云飞周云飞Collaborators
2 days ago changed custom state from 待办的 to 已完成
周云飞
周云飞Collaborators
2 days ago Comments:

已针对扫描问题中的 moe_fused_topk 部分完成以下修改:

  • 修正 aclnnMoeFusedTopk 中英文文档及 README 中的分组、TopK 公式和参数名,并补充未选中组以 0 参与最终 TopK 的说明。
  • 明确 scale 的生效条件,以及输出 y、indices 的含义。
  • 同步修改文档和示例代码,将 stream 初始化为 nullptr,并调整失败路径,避免重复清理。

本次改动仅涉及 moe_fused_topk 子集,不能据此确认该问题中的其他文档问题已全部解决。

关联 PR:PR #17266、PR #17277

likedislike
CANN-robotCANN-robotCollaborators
2 days ago Added label: resolved
何宇航何宇航Collaborators
1 day ago Associated pull request
何宇航何宇航Collaborators
1 day ago Associated pull request
何宇航
何宇航Collaborators
1 day ago Comments:

本次接口文档修正关联以下 PR(仅覆盖相关接口文档条目):

涉及文件:

  • moe/moe_gating_top_k_softmax/docs/aclnnMoeGatingTopKSoftmax.md
  • moe/moe_gating_top_k_softmax_v2/docs/aclnnMoeGatingTopKSoftmaxV2.md
  • moe/moe_gating_top_k_softmax_v2/docs/aclnnMoeGatingTopKSoftmaxV2_en.md
  • posembedding/rope_with_sin_cos_cache/docs/aclnnRopeWithSinCosCache.md
  • posembedding/rope_with_sin_cos_cache/docs/aclnnRopeWithSinCosCacheV2.md
  • posembedding/rope_with_sin_cos_cache/docs/aclnnRopeWithSinCosCacheV2_en.md
  • posembedding/rope_with_sin_cos_cache/docs/aclnnRopeWithSinCosCache_en.md

已完成源码对照和文档 diff 格式检查,未编译执行示例或重跑算子测试。

likedislike