已关闭
[Course-Feedback|课程反馈]: <MC2融合算子开发系列教程> MoE章节多处脚手架、答案及章节链接指向不存在路径 #367
Young创建于  7月31日关闭于  8月18日
Young
Young
7月31日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

一、课程名称 (必填)

MC2融合算子开发系列教程

涉及文件:

  • tutorials/MC2_fused_operator_development/02_MoE_basic_operator_tutorial/02.07_win_memory_layout.ipynb
  • tutorials/MC2_fused_operator_development/02_MoE_basic_operator_tutorial/02.08_moe_dispatch_operator_development.ipynb
  • tutorials/MC2_fused_operator_development/02_MoE_basic_operator_tutorial/02.09_moe_combine_operator_development.ipynb
  • tutorials/MC2_fused_operator_development/02_MoE_basic_operator_tutorial/02.10_moe_dispatch_and_combine_practice.ipynb

二、反馈类型 (必填)

课程内容错误

三、反馈详情 (必填)

MoE基础算子开发章节中存在多处与仓库实际目录结构不一致的相对路径,点击链接或执行答案查看命令时会出现文件不存在错误。

当前课程目录中的实际脚手架位置为:

02_MoE_basic_operator_tutorial/scaffold_02_10/

实际答案目录为:

02_MoE_basic_operator_tutorial/answer/anwser_02_10/

但多个 Notebook 使用了不同的错误路径。

1. 02.07 将脚手架错误写在 answer 目录下

02.07_win_memory_layout.ipynb 当前引用:

[moe_distribute_comm.h](./answer/scaffold_02_10/include/moe_distribute_comm.h)

[moe_distribute_dispatch_non_quant.h](./answer/scaffold_02_10/include/moe_distribute_dispatch_non_quant.h)

[moe_distribute_combine.h](./answer/scaffold_02_10/include/moe_distribute_combine.h)

但是仓库中不存在:

answer/scaffold_02_10/

脚手架实际位于当前章节根目录:

scaffold_02_10/

建议修改为:

[moe_distribute_comm.h](./scaffold_02_10/include/moe_distribute_comm.h)

[moe_distribute_dispatch_non_quant.h](./scaffold_02_10/include/moe_distribute_dispatch_non_quant.h)

[moe_distribute_combine.h](./scaffold_02_10/include/moe_distribute_combine.h)

2. 02.08 错误使用 scaffold_01_10

02.08_moe_dispatch_operator_development.ipynb 当前将项目路径写为:

answer/scaffold_01_10/

并引用:

[0_non_quant_naive.asc](./answer/scaffold_01_10/src/0_non_quant_naive.asc)

但仓库中既不存在:

answer/scaffold_01_10/

也不存在:

scaffold_01_10/

本章实际脚手架名称为:

scaffold_02_10/

建议将相关路径统一修改为:

scaffold_02_10/

文件链接相应修改为:

[0_non_quant_naive.asc](./scaffold_02_10/src/0_non_quant_naive.asc)

3. 02.09 将脚手架错误写在 answer 目录下

02.09_moe_combine_operator_development.ipynb 当前将工程路径写为:

answer/scaffold_02_10/

但实际目录为:

scaffold_02_10/

建议删除路径中的 answer/,并同步检查本节所有源码链接。

4. 02.10 的前置章节链接文件名错误

02.10_moe_dispatch_and_combine_practice.ipynb 当前引用:

[02.07 Win 区布局](01.07_win_memory_layout.ipynb)

实际文件名为:

02.07_win_memory_layout.ipynb

当前链接中的章节前缀误写成了:

01.07

建议修改为:

[02.07 Win 区布局](02.07_win_memory_layout.ipynb)

5. 02.10 引用的答案目录与实际目录名称不一致

02.10 中执行了以下命令:

!cat answer/answer_02_10/01_buffer_size_calc.txt
!cat answer/answer_02_10/02_send_flow.txt
!cat answer/answer_02_10/03_receive_flow.txt

但仓库中的实际目录名称为:

answer/anwser_02_10/

其中 anwser 为 answer 的拼写错误,因此上述三个命令都会查找不存在的目录。

建议将实际目录重命名为:

answer/answer_02_10/

6. 02.10 注释中的脚手架名称错误

02.10 的工程初始化单元格注释当前写道:

# 工程初始化:把自包含脚手架 scaffold_01_10/ 复制到 practice_workspace/

但紧接着的实际代码为:

SCAFFOLD = Path("./scaffold_02_10")

因此,注释中的:

scaffold_01_10

应修改为:

scaffold_02_10

四、环境信息 (可选)

💡 备注(选填)

likedislike
YoungYoung
7月31日 修改了issue 的描述
ink_polymer
ink_polymer成员
7月31日 评论:

尊敬的开发者您好,您的建议已收到,待内部评估后反馈,感谢您的支持

likedislike
不喜欢雨天ༀ
不喜欢雨天ༀ
8月12日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
8月12日 将 2403_87936996 设为负责人
不喜欢雨天ༀ不喜欢雨天ༀ
8月12日 关联了pull request:fix(mc2): 修复 MoE 教程脚手架与章节路径
jiangxiuhan
jiangxiuhan
8月17日 评论:

issue已在关联PR修复

likedislike
chenmingyu
chenmingyu成员
8月18日 评论:

尊敬的开发者,您好!
您提出的issue已在关联的PR中解决,感谢您的贡献,如果有其他问题,欢迎在issue中讨论。

likedislike
chenmingyuchenmingyu成员
8月18日 issue状态由 进行中 改变为 已完成
chenmingyuchenmingyu成员
8月18日 关闭了 issue