| Files | Last commit | Last update |
|---|---|---|
fix(machine): fix log level mismatch, magic number and grammar errors Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5720 merge pyptolog_fix2 into master fix(machine): fix log level mismatch, magic number and grammar errors Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 日志规范性整改 See merge request: cann/pypto!5720 | 3 months ago | |
feat(dfx): Simplify compiler monitor timeout reporting Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !7343 merge new_monitor into master feat(dfx): Simplify compiler monitor timeout reporting Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 删除compile_timeout_stage 和 compile_monitor_print_interval 两个超时检测的配置项 以及相关内容 See merge request: cann/pypto!7343 | 26 days ago | |
refactor(pass): Simplify auto mix partition to on/off switch and enable by default Co-authored-by: bytecode<dubingjia1@huawei.com> # message auto-generated for no-merge-commit merge: !7411 merge auto-mix-partition-switch into master refactor(pass): Simplify auto mix partition to on/off switch and enable by default Created-by: bytecode Commit-by: bytecode Merged-by: cann-robot Description: #3796 ## 问题 ReduceCopyMerge::MapAutoMixPartitionToLimits 仍按多档位(2=default、3~100 回退、>100 自定义总 op 数)解释 auto_mix_partition,与 Python API/schema 已收敛的 0/1 开关语义不一致,且 tile_fwk_config.json 默认 0 导致自动 CV Mix 合图默认关闭。 ## 修复 - MapAutoMixPartitionToLimits:删除档位映射,恢复 autoMixPartition != 0 开关语义,上限固定 kMaxSubgraphAICOpNum=2000/kMaxSubgraphAIVOpNum=2240 - MergeInput::maxSubgraphTotalOpNum:删除自定义档总 op 数字段,CheckLatencyConstraint/WarnIfEnforceOpNumExceeds 移除总 op 数检查与单侧 >0 哨兵 - tile_fwk_config.json/tile_fwk_config_schema.json:auto_mix_partition 默认值 0→1,未配置时默认开启自动 CV Mix 合图 - auto_mix_partition() docstring 与 precision-pass SKILL.md 同步默认开启表述 - 删除档位专属 UT(映射/总 op 限/default 档/回退/自定义/零哨兵),保留 0/1 端到端用例并更名 RunOnFunction_AutoMixEnabledMerges ## 涉及文件 - reduce_copy.cpp/reduce_copy.h:删除档位映射与总 op 数检查 - test_reduce_copy.cpp:删除 6 个档位用例,保留 0/1 用例 - tile_fwk_config.json/tile_fwk_config_schema.json:默认值开 1 - pass_config.py/SKILL.md:默认值文档同步 See merge request: cann/pypto!7411 | 23 days ago | |
fix(interface): Reduce UT time and resolve code style. Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !3697 merge review into master fix(interface): Reduce UT time and resolve code style. Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: 1. 减少ut耗时 2. 整改代码规范 See merge request: cann/pypto!3697 | 5 months ago | |
fix(pass): Keep INDEX_ADD token deps on the tile op Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !7487 merge fix_index_add_expand_token into master fix(pass): Keep INDEX_ADD token deps on the tile op Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: expand funciton时,将 index_add 的token 直接连接到实际 tile op上。而不是SLICE/CONTRACT上。 因为index_add的输出tensor是gm类型,后续CONTRACT会被删掉,导致依赖丢失。 See merge request: cann/pypto!7487 | 21 days ago | |
feat(dist): Support register memory_region Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7421 merge win into master feat(dist): Support register memory_region Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #3562 See merge request: cann/pypto!7421 | 23 days ago | |
fix(interpreter): Fix tail-axis QuantMX pass verification Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !7497 merge codex/fix-quant-mx-verify into master fix(interpreter): Fix tail-axis QuantMX pass verification Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: ## 问题与修改 尾轴非性能模式的 QuantMX 打开 Pass 精度工具后,golden 计算存在三处问题。 - TensorGraph 的 max 输出为 [2048],calculator 直接拷贝 [1024,2],引发 Torch 广播异常并报 FB4001。将尾轴 max reshape 为推导形状后拷贝,高维输入保留前导维度。 - calculator 的 64 列整除断言会拒绝合法 tile 及不足 32 列的尾组。删除该断言,沿用 ceil 分组和已有边界处理。 - view 为 [4,64]、实际 shape 为 [4,31] 或 [4,32],按 [4,32] 切 tile 时会产生零有效宽度块。calculator 在尾轴非性能模式跳过该空块。 扩展 FP32 calculator 单测,覆盖 31/32/64 列、一维 max,以及空尾块的正负轴写法和输出保持情况。 ## 验证 - 基于 cann/pypto master 570ec80dc,192 核构建 wheel 成功,pre-commit 通过。 - TorchAdaptorTest.QuantMXFp32 和 TorchAdaptorTest.QuantMXEmptyTail 通过。 - Ascend950DT 1 号卡,打开 enable_pass_verify,固定 view 为 [4,64],实际 shape 为 [4,31]/[4,32],覆盖 FP16/FP32 和 tile [4,32]/[4,64]。八种组合的有效量化值和 scale 均正确,112/112 项 Pass 校验通过。测试输出实际量化列和每行一个有效 scale。 - 第 76 条使用新构建 wheel 打开精度开关复测,Pass 校验 70/70,Double Compare 100%,Pipe Mix 和整体结果 PASS。 - 设备执行使用本地已有 A5 单组 max 写入修复的 PTO ISA。 See merge request: cann/pypto!7497 | 19 days ago | |
fix(pypto_pro): Align fillpad validation and lowering with PTO ISA Validate fillpad buffer compatibility and restrict Mat tiles to NORMAL mode with NZ layout and null/zero padding. Reuse structural_equal on underlying Tile types while ignoring mutex wrappers, and preserve the existing Vec padding and source-alias behavior. Skip the null-pad source alias for Mat and derive NORMAL's synchronization pipe from the destination buffer (Mat: MTE2, Vec: V). Update the L1 padding documentation and add IR, codegen and synchronization regression coverage, including the Mat codegen golden. | 16 days ago | |
feat(machine): Support for 9201 Co-authored-by: qq_52905393<liuzhen180@huawei.com> # message auto-generated for no-merge-commit merge: !6940 merge dev-adapt-next into master feat(machine): Support for 9201 Created-by: qq_52905393 Commit-by: qq_52905393 Merged-by: cann-robot Description: 适配 9201 特性 See merge request: cann/pypto!6940 | 20 days ago | |
fix(pass): Keep full-shape alias views of gathered assemblies unexpanded Co-authored-by: Pppbl<panbangli@huawei.com> # message auto-generated for no-merge-commit merge: !7328 merge fix/gather-alias-view-workspace into master fix(pass): share equivalent split buffers for Gather consumers Created-by: Pppbl Commit-by: Pppbl Merged-by: cann-robot Description: # 问题介绍: 大 Tensor 按读分支拆分后,可能产生由相同 Gather 小块写入的等价中等 Tensor,导致同一批数据重复 COPY_OUT 到 DDR。NBufferMerge 合并 Gather 子图时,如果未区分完整读者集合,还可能混合不同读分支,影响调度并行度。 # 解决方案: - 保留 SplitLargeFanoutTensor 的正常拆分,在图清理和有效形状推导后,核对新拆分块的实际写入来源、偏移、有效形状、属性及别名和依赖约束。对可安全共享的等价块保留一份缓冲区,回接读者并删除重复写入,保持各读者的偏移和属性;无法确认安全的块保留原路径。 - 在 NBufferMerge 中对满足约束且最小外部读者相同的 Gather 分组,按完整读者集合进一步细分,避免合并不同读分支,同时保留独立读者路径按公共输入合并的行为。 - 补充等价块共享、不同写入位置不合并及 Gather 读者分组的单元测试,拆分辅助函数并完善中文注释。 # 验证: - SplitLargeFanoutTensorTest 和 NBufferMergeTest 相关单测共 82 项通过。 - A3 上验证 machine_perf_A3.json 的 Case 68–71,以 master 12397b1af 为基线,分别测量基线 slice-on、修复后 slice-on 和基线 slice-off。三种配置使用相同输入,关闭编译调试,串行运行。capture 统计 50 次回放;eager 执行 10 次并取最后一次泳道数据。每种配置测量一轮。 - 修复后 slice-on 和基线 slice-off 的输入哈希均与对应基线 slice-on 一致,输出逐元素完全一致;12 组测试全部通过。且 slice-on 场景性能反超基线 master slice-off 场景性能 See merge request: cann/pypto!7328 | 16 days ago | |
feat(pypto-pro): Introduce PGOVFRunOnProgram pass Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7474 merge master into master feat(pypto-pro): Introduce PGOVFRunOnProgram pass Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Introduce PGOVFRunOnProgram pass See merge request: cann/pypto!7474 | 21 days ago | |
fix(interpreter): Fix bug of verify output have empty dir Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !6095 merge master into master fix(interpreter): Fix bug of verify output have empty dir Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. 修复开启精度工具后,产物output目录会有一个空目录 See merge request: cann/pypto!6095 | 2 months ago | |
fix(pypto_pro): Align fillpad validation and lowering with PTO ISA Validate fillpad buffer compatibility and restrict Mat tiles to NORMAL mode with NZ layout and null/zero padding. Reuse structural_equal on underlying Tile types while ignoring mutex wrappers, and preserve the existing Vec padding and source-alias behavior. Skip the null-pad source alias for Mat and derive NORMAL's synchronization pipe from the destination buffer (Mat: MTE2, Vec: V). Update the L1 padding documentation and add IR, codegen and synchronization regression coverage, including the Mat codegen golden. | 16 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(ir): Remove eval stmt Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7482 merge rm_eval into master feat(ir): Remove eval stmt Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(ir): Remove eval stmt See merge request: cann/pypto!7482 | 20 days ago | |
fix(operation): Remainder Only Use INTRINSIC In A2/A3 Co-authored-by: Creeeeper<liuyizhe6@huawei.com> # message auto-generated for no-merge-commit merge: !7537 merge rm2 into master fix(operation): Remainder Only Use INTRINSIC In A2/A3 Created-by: Creeeeper Commit-by: Creeeeper Merged-by: cann-robot Description: ## 描述 对齐文档和其他支持高精度的算子,Remainder在A2/A3上只走isa的低精度模式 ## 关联Issue [#3828](https://gitcode.com/cann/pypto/issues/3828) ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!7537 | 16 days ago | |
feat(machine): Support for 9201 Co-authored-by: qq_52905393<liuzhen180@huawei.com> # message auto-generated for no-merge-commit merge: !6940 merge dev-adapt-next into master feat(machine): Support for 9201 Created-by: qq_52905393 Commit-by: qq_52905393 Merged-by: cann-robot Description: 适配 9201 特性 See merge request: cann/pypto!6940 | 20 days ago | |
feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Co-authored-by: Zehai<wangzehai3@huawei.com> Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: yuxin5<yuxin5@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !6752 merge dev into master feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Created-by: yuxin5 Commit-by: Zehai;yuxin5;zhouxuan78;xutianlong1;royccc;hongyiliu111 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Add pypto.conv_backward_filter interface to compute the gradient of convolution with respect to the weight tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_filter frontend interface with parameter validation - Implement ConvBackwardFilter 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!6752 | 1 month ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 26 days ago | ||
| 23 days ago | ||
| 5 months ago | ||
| 21 days ago | ||
| 23 days ago | ||
| 19 days ago | ||
| 16 days ago | ||
| 20 days ago | ||
| 16 days ago | ||
| 21 days ago | ||
| 2 months ago | ||
| 16 days ago | ||
| 4 months ago | ||
| 20 days ago | ||
| 16 days ago | ||
| 20 days ago | ||
| 1 month ago |