| Files | Last commit | Last update |
|---|---|---|
feat(pypto_pro): Remove duplicate checks in SIMT API Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !6850 merge fix into master feat(pypto_pro): Remove duplicate checks in SIMT API Created-by: wuzhongxin Commit-by: wuzhongxin 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!6850 | 1 month ago | |
feat(ir): Sink a for loop after if into both branches Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !6872 merge sink_for_into_if into master feat(ir): Sink a for loop after if into both branches Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: feat(ir): Sink a for loop after if into both branches 本 PR 让 MergeStmtsIntoIf 把 If 后面的 For 下沉到 then/else 两个分支,只执行被选中的那一侧。下沉后 If 不再 yield 循环上界/步长/动态 shape 符号,必须把这些 yield 变量替换进被拷贝的循环。后两个 commit 分别修替换不完整导致的两个 bug:AICPU LOOP 死循环,以及 cube 有效 shape 悬空造成的精度错误。 ## Commit 1 bb35f73d3 feat(ir): Sink a for loop after if into both branches 功能:If 后面的 For 复制进两个分支;If 前面的 For 保持在外。下沉时保留循环结果、零次迭代初值、动态 shape,以及 sunk loop 内嵌套 If 的返回 tensor。 源程序: if cond: width, count = 8, 2 else: width, count = 16, 1 for i in loop(count): ... 下沉后 then/else 各自有一份循环,循环上界和 VIEW 的 toValidShape 换成该分支的常量。 ## Commit 2 dee7afa81 (bug 1:ST 超时 / AICPU 死循环) fix(ir): Substitute ScalarExpr when sinking a for into if 现象:python/tests/st/test_yield_scalar_if_for.py 在 A3 冒烟里 500s 超时。 原因:pypto.loop 的 step 编成 ScalarExpr v0mul(1, step_val)。下沉时 SunkStmtSubstitutor 只替换 Var 叶子,stop 能换成常量,step 仍引用 step_val_0。If 下沉后不再定义该标量,AICPU LOOP 步长变成未赋值的 0,idx += 0 死循环。 修复:VisitExpr_(ScalarExprPtr) 走 SymbolicScalar::SubstituteVars,把分支 yield 值写进 sunk loop 的 step/stop。 ## Commit 3 239b2fb13 (bug 2:动态 valid shape 悬空 / dK 精度失败) fix(ir): Substitute result dynvalidshape when sinking a for into if 现象:gym sparse_flash_attention_grad TND 的 test_level0_tiny,dQ 通过,dK_nope 失败(只写下第一个 sparse index)。下沉前该算子通过。 原因:SubstituteTensorStmt 只在 op 属性变化时重建。VIEW 的 fromOffset/toValidShape 带 yield 变量,能换成分支常量;A_MUL_B/ADD/CAST 的有效 shape 只在结果 tensor 的 dynvalidshape 上,属性为空就 early-return。then 分支里 dK cube(dS^T @ Q)仍引用已不再 yield 的 q_offset_0/kv_offset_0,valid M 编错。即便走进 clone 路径,旧代码 Clone() 也不 UpdateDynValidShape。 修复:结果 GetDynValidShape 能替换到 yield 变量时,Clone(true) 并 UpdateDynValidShape;属性或结果 shape 任一变化都重建 stmt。 新增 UT test_sunk_loop_add_dyn_valid_shape:VIEW 后跟 ADD,then 分支 ADD 必须是 dynvalidshape([8,16]),不能残留 width_0。 Changes: - 将 If 后的 For 下沉到 then/else,If 前的 For 保持在外 - 下沉时用 SymbolicScalar::SubstituteVars 替换 ScalarExpr(修 LOOP step=0 死循环) - 下沉时替换结果 tensor 的 dynvalidshape 并写回 clone(修 cube 有效 shape 悬空) - 补充 merge-pass snapshot:sunk loop、嵌套 If、ADD 推断 dynvalidshape 验证: - python/tests/st/test_yield_scalar_if_for.py 通过 - python/tests/ut/ir/test_merge_pass/ 30 passed - gym test_level0_tiny(原始 kernel,未改 gym)通过 See merge request: cann/pypto!6872 | 1 month ago | |
feat(pypto_pro): Upload for vf api for fp8 and fp4 - add function and check problem Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !5000 merge master_sub into master feat(pypto_pro): Upload for vf api for fp8 and fp4 - add function and check problem Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for vf api for fp8 and fp4 - add docs example and function See merge request: cann/pypto!5000 | 3 months ago | |
feat(pypto-pro): Unify the result types of scalar-related operations Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6356 merge master into master feat(pypto-pro): Unify the result types of scalar-related operations Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: Unify the result types of scalar-related operations: if value can be represent by INT64, use INT64, else UINT64 See merge request: cann/pypto!6356 | 2 months ago | |
fix(ir): Disable check of valid-shape Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !4706 merge for-attr into master fix(ir): Disable check of valid-shape Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: TypeEquasl should not based on valid-shape Related Issue: #1185 See merge request: cann/pypto!4706 | 4 months ago | |
feat(pypto_pro): Sync pypto_pro newest code Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !4967 merge sync into master feat(pypto_pro): Sync pypto_pro newest code Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: fix(pypto_pro): Sync pypto_pro newest code See merge request: cann/pypto!4967 | 4 months ago | |
feat(pypto-pro): Support mxfp8/mxfp4 Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !5439 merge master into master feat(pypto-pro): Support mxfp8/mxfp4 Created-by: fafafafafa Commit-by: fa Merged-by: cann-robot Description: Support mxfp8/mxfp4 See merge request: cann/pypto!5439 | 3 months ago | |
feat(pypto_pro):unified error codes Co-authored-by: huanyongben<huanyongben1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6453 merge master into master feat(pypto_pro):unified error codes Created-by: huanyongben Commit-by: huanyongben Merged-by: cann-robot Description: pypto pro整改错误码以及日志规范 See merge request: cann/pypto!6453 | 2 months ago | |
feat(ir): Merge module pypto_impl and pypto_block Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3888 merge ir into master feat(ir): Merge module pypto_impl and pypto_block Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: merge module pypto_impl and pypto_block See merge request: cann/pypto!3888 | 5 months ago | |
fix(pypto_pro): relax MX matmul physical shape checks Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !6635 merge master into master fix(pypto_pro): relax MX matmul physical shape checks 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!6635 | 2 months ago | |
fix(pypto_pro): relax MX matmul physical shape checks Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !6635 merge master into master fix(pypto_pro): relax MX matmul physical shape checks 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!6635 | 2 months ago | |
feat(pypto-pro): Unify the result types of scalar-related operations Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6356 merge master into master feat(pypto-pro): Unify the result types of scalar-related operations Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: Unify the result types of scalar-related operations: if value can be represent by INT64, use INT64, else UINT64 See merge request: cann/pypto!6356 | 2 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 5 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago |