已关闭
[Requirement|需求建议]: 新增allgathermmV3算子host侧工程 #4711
王亮培创建于 21 天前关闭于 21 天前
21 天前 添加了label:requirement
21 天前 关联了pull request:add all_gather_matmul_v3 operator
weihao18
21 天前 评论:
21 天前 评论:
/assign @wangliangpei


21 天前 将 wangliangpei 设为负责人
21 天前 关闭了 issue
21 天前 添加了label:resolved
18 天前 关联了pull request:docs: add allgathermm v3 readme & updata alltoallmm v2 readme
17 天前 关联了pull request:AlltoAllMatmulV2 & AllGatherMatmulV3 Torch接口文档描述更正
17 天前 关联了pull request:allgathermmv3: fix check info
16 天前 关联了pull request:AlltoAllMatmulV2 & AllGatherMatmulV3 comm_mode urma场景改成aiv_urma
16 天前 关联了pull request:AlltoAllMatmulV2 & AllGatherMatmulV3 comm_mode urma场景改成aiv_urma
15 天前 关联了pull request:close print without debug level
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
AllGatherMatmulV3 算子需求 Issue
Background(背景信息)
在大模型 训练/推理中,各 rank 持有激活分片 x1[M_per_rank, K],Matmul 前需先 AllGather 收集全量激活再与本地权重计算。常规流程中 AllGather(通信)和 Matmul(计算)是两个独立 kernel 串行执行,通信耗时无法被计算掩盖,拉长端到端时间。
本次提交的 AllGatherMatmulV3 算子解决的问题是:将 AllGather 通信与 MX 量化 Matmul 融合为单个算子,AIV 核负责 URMA 通信收集各 rank 的 x1 及其 MX scale,AIC 核同步做反量化 Matmul,通信等待被矩阵计算掩盖,实现通信计算 overlap。
Benefit / Necessity(价值/作用)
Design(设计方案)
Benefit / Necessity (价值/作用)
Design(设计方案)