| Files | Last commit | Last update |
|---|---|---|
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
feat(kirin9050): Support matmul macro instruction with pre-stage quant/dequant Co-authored-by: m0_71310678<lizhexun2@huawei.com> # message auto-generated for no-merge-commit merge: !7126 merge kirin9050-matmul-mergepr into master feat(kirin9050): Support matmul macro instruction with pre-stage quant/dequant Created-by: m0_71310678 Commit-by: m0_71310678 Merged-by: cann-robot Description: feat(kirin9050): Support matmul macro instruction with pre-stage quant/dequant Support Kirin9050 matmul macro instruction bring-up: - macro matmul codegen/tileop (attrs, quant, inplace, infer), decoupled from generic path - route quant_pre through macro matmul; GEMV routing and fp16/int8 K-slice clamps - L1->GM TSTORE direct store, l12ub/ub2l1 support - rework matmul quant UT ids, shapes and tile-split coverage (Q16.16 semantics) Changes: - Add Kirin9050 (NCH) LiteNPU platform support and matmul macro instruction codegen/tileop - Add l12ub/ub2l1 data path and per-channel quant_pre routing through macro matmul - Add Kirin9030/Kirin9050/KirinX90 codegen UT coverage for matmul, attention and other single operations See merge request: cann/pypto!7126 | 1 month ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !7094 merge feat/batchmatmul-remove-reshape into master feat(matmul): Remove reshape from batchmatmul by direct 3D/4D tensor flow Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: ## 变更说明 删除 batchmatmul 链路中的冗余 Reshape:A_MUL_B 直接接受 3D/4D 参数输入,全链路支持带 batch 轴的多维 tile。 ### 变更原因 {1,m,k} 与 {m,k} 内存布局相同,逐 batch 拆解插入的 Reshape 涉及 Pass 层做特判,耦合严重,问题高发,且会放大 TensorGraph/TileGraph 规模、增加 pass 处理量与编译耗时。 旧: View{b,m,k}→{1,m,k} → Reshape→{m,k} ─┐ View{b,k,n}→{1,k,n} → Reshape→{k,n} ─┤→ A_MUL_B(2D){m,n} → Reshape→{1,m,n} → Assemble 新: View{b,m,k}→{1,m,k} ─┐ View{b,k,n}→{1,k,n} ─┴→ A_MUL_B(3D/4D){1,m,n} → Assemble ### 方案 各层统一 batch 轴约定:shape 恒 1、offset 恒 0。修改归为三类: 1. tile/offset 在 batch 轴补 1/0,与输入同 rank(规避 LogicalTensor::View / GetViewValidShape 的 rank 硬校验) 2. GM 搬运侧 batch 轴 offset 按 stride 线性化累加进 gmOffset;L1/L0 内部保持纯 2D 语义,batch 轴 offset 恒 0 See merge request: cann/pypto!7094 | 20 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 20 days ago | ||
| 1 month ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 20 days ago | ||
| 4 months ago | ||
| 20 days ago |