| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 个月前 | |
feat(machine): Support host ctrlflow cache by jit | 2 个月前 | |
fix(interpreter): Add new op register Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !5675 merge master into master fix(interpreter): Add new op register Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. 新增op注册 See merge request: cann/pypto!5675 | 3 个月前 | |
fix(interface): Optimize redundant tokens with new logical tensors Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5744 merge fix_reshape_inplace_ into master fix(interface): Optimize redundant tokens with new logical tensors Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 问题背景 开启 create_new_logical_tensor=True 后,部分场景会产生不必要的 token 依赖: - inplace reshape 仅建立 storage alias,不产生真实内存读写,但原先会生成 read/write token,影响后续 MergeViewAssemble 和 DCE,可能导致 hidden function 被错误删除。 - 写入区域不相交的多个 assemble 仍被 token 串行化,造成性能劣化。 ## 修改内容 - 将 inplace reshape 设为 token-transparent,不再生成冗余 read/write token。 - 在当前 SCF 块内,删除能够证明访问区域不相交的 token 依赖。 - 第一阶段暂不处理跨 SCF 的 token 分析与转发。 - 补充并更新相关 UT 和 IR 快照。 ## 验证结果 - 相关 token UT 全部通过。 - InterleaveRope 精度无损,性能恢复至约 225.97 μs。 See merge request: cann/pypto!5744 | 3 个月前 | |
feat(matmul): support GEMV (M=1) via TGEMV + ND data path Co-authored-by: zhuhongyu<zhuhongyu22@h-partners.com> # message auto-generated for no-merge-commit merge: !5563 merge pr/gemv into master feat(matmul): support GEMV (M=1) via TGEMV + ND data path Created-by: Zhu1418539395 Commit-by: zhuhongyu Merged-by: cann-robot Description: ## 功能描述<br> 支持 MatMul 的 GEMV(M=1,矩阵向量乘)场景:当 matmul 的 A 为单行(M=1,非 transA)时,算侧使用 pto::TGEMV(底层 mad 指令,M 硬编码 1),搬运侧 A 全程保持 ND 数据路径(不做 NZ 分形转换),并做 M 轴去 pad / K 对齐差异化,减少 L1/L0A buffer 占用。<br><br> ## 改动内容(按层)<br> **信号判定(op 创建处)**<br> - cube_operation_impl.cpp AddAMulBNode:非 transA 且 M==1 时设 OpAttributeKey::isGemv;transA(M=1)退化为普通 transA matmul。<br><br> **Tile graph pass(对齐/搬运)**<br> - generate_move_op.cpp ProcessUB2L1:GEMV A 来自 UB 时跳过 ND2NZ(A 保持 ND)。<br> - pad_local_buffer.cpp PadMatmul:GEMV 的 L1/L0A/UB2L1 输入按 K 对齐(L1/UB 32B、L0A 512B)、M 轴不打 pad;isUB2L1Scene 的 bank 冲突优化(+=1)对 GEMV 跳过。<br> - merge_view_assemble_utils.*:isGemv/copy_in_mode 白名单继承,跨 VIEW 重建存活。<br><br> **Codegen(指令分发)**<br> - codegen_op_npu.h / codegen_op_litenpu.*:新增虚函数 GetMatmulTileOpName()(LiteNPU 覆写读 isGemv)。<br> - codegen_mte.cpp:GEMV 的 UB→L1 生成 TCopyUB2L1ND2ND、L1→L0A 生成 TExtractL1ToL0ND2ND。<br> - codegen_cube.cpp:算侧读 isGemv 生成 TGEMV。<br><br> **TileLib(指令实现)**<br> - cube_pto.h:新增 TGEMV(#ifdef __LITE_NPU)、TCopyUB2L1ND2ND / TExtractL1ToL0ND2ND wrapper。<br> - mmad_impl.h:TMatmulImpl 加 isGemv 模板参数,GEMV 时 validM=1(M 不打 pad)并分派 pto::TGEMV 系列。<br> - copy_ub_to_l1_impl.h / copy_l1_to_l0_impl.h:GEMV 时 tile 声明 BLayout::RowMajor(+ SLayout::NoneBox),命中 pto-isa TExtractVecToMat/TExtractToAVector 的 ND 搬运分支。<br><br> **平台隔离**<br> - 框架 pass/codegen 层:仅源头 1 处运行时平台判断(LiteNPU)+ codegen 虚函数分派,非 LiteNPU 平台行为不变。<br> - tileop wrapper 层:TGEMV/ND2ND wrapper 用 __LITE_NPU 宏(kernel 编译域可见)。<br><br> ## 测试<br> - python/tests/ut/kirin/common_matmul.py:新增 GEMV 用例 41 个(id 015-055,s8s8 015-027 / FP16 028-055),覆盖 2D/3D/4D batch、bias、a/b_trans、深 K/N、非对齐 K/N、sub-fractal K-tile(tileKAL1>tileKL0)。<br> - common_attention.py / test_kirin9030_attention.py:修复 4input 测试 out shape;attention 复合场景(matmul A 来自 UB,M=1)回归验证。<br><br> ## 验证<br> - GEMV 全量用例(015-055)+ attention 4input 回归通过(kirin9030)。****<br> See merge request: cann/pypto!5563 | 3 个月前 | |
feat(Operation): Add pypto.conv_backward_input and its 2D implementation on A2/A3 Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: wangshenhao<wangshenhao1@huawei.com> # message auto-generated for no-merge-commit merge: !5528 merge dev into master feat(Operation): Add pypto.conv_backward_input and its 2D implementation on A2/A3 Created-by: hongyiliu111 Commit-by: wangshenhao;hongyiliu111;xutianlong1 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_input and its 2D implementation on A2/A3 Add pypto.conv_backward_input interface to compute the gradient of convolution with respect to the input tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_input frontend interface with parameter validation - Implement ConvBackwardInput 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!5528 | 3 个月前 | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 个月前 | |
feat(pypto_pro): Support GM NZ Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !5660 merge master into master feat(pypto_pro): Support GM NZ Created-by: fafafafafa Commit-by: fa Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!5660 | 3 个月前 | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 个月前 | |
fix(machine): fix log quality issues in machine module. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5679 merge pyptolog_fix into master fix(machine): fix log quality issues in machine module. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: PyPTO machine 模块日志整改 See merge request: cann/pypto!5679 | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 4 个月前 | ||
| 3 个月前 |