| Files | Last commit | Last update |
|---|---|---|
feat(IR): Add normalized PilCode Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5470 merge normalize-ir-compare into master feat(IR): Add normalized PilCode Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Add normalized PilCode See merge request: cann/pypto!5470 | 3 months ago | |
feat(Pass): Assume_divisible for dual_dst Co-authored-by: gggxinmeng<guoxinmeng@huawei.com> # message auto-generated for no-merge-commit merge: !6080 merge dualdst_dynvalidshape_920 into 9.2.0 feat(Pass): Assume_divisible for dual_dst Created-by: gggxinmeng Commit-by: gggxinmeng Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2858 # OoO阶段无法对动态validshape进行比较,导致dualdst使能失败 动态切分轴的逐 tile validShape 通常由编译器推导为: text min(max(rawShape - offset, 0), tileShape) 例如两个相邻半块可能分别得到: text min(max(vm, 0), TILE_M) min(max(vm - TILE_M, 0), TILE_M) InferDynShape::RecordStaticValidShapeOnL0CCopyUB 会在后续 InferShape 把 shape 归一化为动态表达式之前,将全 concrete 的 valid shape保存到 staticValidShape。但只要任意一维仍含动态成分,快照就整体跳过,DualDst 只能回退到动态表达式比较。 上述两个相邻半块的表达式 dump 不同,而且都没有 concrete 值,DynShapeEq 无法证明它们相等,因此 pair 识别失败。即使业务实际保证 vm 总是 TILE_M 的整数倍、两个半块运行时一定都是完整 tile,编译器仍然缺少这一事实。 根因不是 DualDst 搬运或 codegen 不支持,而是前端没有 Interface 表达“运行时标量可被 tile 整除”,编译期也就无法把逐 tile valid shape证明为静态满块。 # 方案目标 1. 允许用户显式声明某个运行时表达式一定能被指定 tile 整除; 2. 编译器依据该声明证明相关 validShape 恒等于完整 tile,并把它静态化; 3. 在 InferShape 归一化之前让 staticValidShape 快照命中,使现有 DualDst 识别和融合逻辑直接受益; 4. 融合后仅静态化切分轴,保留非切分轴原有 valid shape; 5. 在调试模式下生成运行时取模断言,帮助发现错误的用户声明; 6. 没有假设或证明条件不足时保留原动态表达式,不强行融合。 本方案解决的是“编译器缺少业务整除信息”的问题,而不是自动识别主块和尾块。它是一份由用户提供、编译器信任的语义契约。 # 总体设计 完整链路如下: text Python 用户代码 │ assume_divisible(expr, 128) ▼ Function 保存整除假设 │ expression -> {divisors} ▼ InferDynShape 证明 validShape 恒为 tile │ min/max/add/sub/mul + offset/cap 对齐证明 ▼ 动态 validShape -> 静态 tileShape │ 同步 Tensor 与需要保持一致的 Op attribute ▼ RecordStaticValidShapeOnL0CCopyUB │ 写入 staticValidShape ▼ 现有 DualDst 匹配与融合 │ 保留非切分轴的动态 validShape ▼ 现有 leaf / codegen / dev_encode / runtime 流程 调试模式 runtime_debug_mode=4: Function 中的显式假设 -> 生成 expr % divisor == 0 运行时断言 See merge request: cann/pypto!6080 | 2 months ago | |
feat(pypto): Add pypto.experimental.auto_mix_partition 0/1 config (9.2.0) Co-authored-by: bytecode<dubingjia1@huawei.com> # message auto-generated for no-merge-commit merge: !6654 merge automixdocs-9.2.0 into 9.2.0 feat(pypto): Add pypto.experimental.auto_mix_partition 0/1 config (9.2.0) Created-by: bytecode Commit-by: bytecode Merged-by: cann-robot Description: feat(pypto): Add pypto.experimental.auto_mix_partition 0/1 config Cherry-pick of #6648 onto 9.2.0. The level-based auto_mix_partition config (off/default/high strings and the N>100 custom op-limit) is removed from pypto.set_pass_options. The auto CV Mix merging switch of the ReduceCopyMerge pass is now configured solely via pypto.experimental.auto_mix_partition(0/1), defaulting to disabled (0). The C++ ReduceCopyMerge level mapping (MapAutoMixPartitionToLimits) is kept unchanged. Changes: - Add pypto.experimental.auto_mix_partition(value) accepting only 0/1, other values raise ValueError - Remove the auto_mix_partition parameter from pypto.set_pass_options and its read-back key from pypto.get_pass_options - Converge the tile_fwk_config default to 0 and tighten the schema range to 0~1 - Update the interface UT (test_config_options.py) and the set_pass_options API doc - Remove the sg_set_atomic_scope description from the set_pass_options doc - Update the precision-pass skill to use the experimental entry Related Issues: #3431 See merge request: cann/pypto!6654 | 2 months ago | |
perf(pypto_pro): Reduce JIT host overhead Co-authored-by: fafafafafa<yangzhenfa1@huawei.com> # message auto-generated for no-merge-commit merge: !7707 merge 9.2.0 into 9.2.0 perf(pypto_pro): Reduce JIT host overhead Created-by: fafafafafa Commit-by: fafafafafa Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/4001 修改点: - 缓存命中时仅提取STATIC/ellipsis维度,避免完整签名绑定。 - 同次launch复用Tensor shape,去除重复绑定及sanitizer多余缓存复制。 - enable_exception_dump配置,默认关闭,支持按需开启异常现场采集。 See merge request: cann/pypto!7707 | 1 day ago | |
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 months ago | |
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 months ago | |
fix(front): fix issue #3272 and #3274 add assemble parameter validation Co-authored-by: HuYiSheng01<hys123456aaa@163.com> # message auto-generated for no-merge-commit merge: !6170 merge 9.2.0-fix-3272-3274 into 9.2.0 fix(front): fix issue #3272 and #3274 add assemble parameter validation Created-by: HuYiSheng01 Commit-by: HuYiSheng01 Merged-by: cann-robot Description: 主仓合入后,同步合入到商仓: 额外修复了一个之前提交的文档的问题#3245 本 PR 包含 issue #3272 与 #3274 的两项配套修复: pypto.assemble 前端实现(operation.py)对参数数量与类型零校验,用户按 @overload 签名调用时,任何偏差都会泄露 Python 内部解包/迭代错误(无函数名、无签名提示、无源码位置)。 - #3272:参数顺序/类型传错(如 offsets 位置传 Tensor)时,深层调用链报 FeError: Tensor is not iterable 等内部错误,与用户实际意图完全脱节; - #3274:模块级 assemble 声明了 @overload 签名但运行时零校验,且缺少 @source_location 装饰器(对比 Tensor.assemble 方法),错误无法定位到用户调用点。 - assemble() 入口显式校验参数数量(单源 3 参 / 多源 2 参),其余情况抛出语义化错误; - 校验 src/dst 为 pypto.Tensor、offsets 为 list/tuple、srcs 为序列,错误信息包含函数名、参数位置、期望类型与实际类型; - 2 参形式且首参为 Tensor 时,附加提示"可能想使用单源形式但缺少 offsets 参数"。 Related Issue: #3272, #3274 #3245 See merge request: cann/pypto!6170 | 2 months ago | |
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 months ago | |
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 months ago | |
fix(ir): Delte new_ir flag Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !6455 merge 9.2.0 into 9.2.0 fix(ir): Delte new_ir flag Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: 默认new-ir , 删除配置项 See merge request: cann/pypto!6455 | 2 months ago | |
fix(operation): Add missing arch and format constraint checks for matmul/scaled_mm Co-authored-by: shi-dingkun<shidingkun1@huawei.com> # message auto-generated for no-merge-commit merge: !5865 merge fix/matmul-arch-and-format-constraint-check into master fix(operation): Add missing arch and format constraint checks for matmul/scaled_mm Created-by: shi-dingkun Commit-by: shi-dingkun Merged-by: cann-robot Description: 为 matmul/scaled_mm 补齐接口文档中缺失的业务约束检查以及文档针对多核切K功能的描述修正,并修正 FP4 UT。 ## 约束检查 | 约束 | 检查位置 | |---|---| | 输入→输出 dtype 组合表(基础/量化/反量化场景) | __validate_out_dtype | | A2/A3 不支持 DT_HF8 输入 | __validate_inputs | | DT_HF8 不支持 NZ 格式 | __validate_inputs | | A2/A3 不支持 trans_mode | __validate_trans_mode | | scale_a/scale_b 仅支持 ND 格式 | __validate_scaled_inputs | | matmul 拒绝 FP4 输入(仅 scaled_mm 支持) | __validate_matmul_fp4_input | ## FP4 UT 修正 test_fp4_packed_shape.py 重写为正规写法:独立 X/Y 矩阵,scaled_mm + scale tensors + DT_FP16 输出。 ## 测试 test_matmul_op.py 20/20 通过,test_fp4_packed_shape.py 1/1 通过。 Related Issues: #3213 See merge request: cann/pypto!5865 | 2 months ago | |
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 months ago | |
fix(ir): Bump ooo scope iter in new frontend loop unroll Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !5813 merge front_2.0 into master fix(ir): Bump ooo scope iter in new frontend loop unroll Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: 修复新前端循环展开(loop unroll)中 OOO scope 迭代器计数不正确的问题:将原先集中在 Controller 类(位于 pypto/_controller.py)的编译状态(循环索引生成、函数内标志、ooo scope 迭代器)抽取到新的 CompileState 类(pypto/_compile_state.py),并在新前端循环展开路径(pypto/pil/ops.py 的 _dyn_for/_loop_unroll)中补充 ooo scope 迭代器的重置与递增逻辑,使 sg_set_ooo_scope 能为每个迭代编码出唯一 id,与旧前端 _LoopFunction.Iterator 的行为对齐。 See merge request: cann/pypto!5813 | 2 months ago | |
fix(operation): Add viewshape check for GatherMask last axis Co-authored-by: Apricityh<wangxu359@huawei.com> # message auto-generated for no-merge-commit merge: !5626 merge fix/gathermask-view-split-check into master fix(operation): Add viewshape check for GatherMask last axis Created-by: Apricityh Commit-by: Apricityh Merged-by: cann-robot Description: 为 GatherMask 动态场景的最后一个轴添加viewshape不可切分约束检查 See merge request: cann/pypto!5626 | 3 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
feat(IR): Add normalized PilCode Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5470 merge normalize-ir-compare into master feat(IR): Add normalized PilCode Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Add normalized PilCode See merge request: cann/pypto!5470 | 3 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
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 months ago | |
test(ir): Add text check for test_merge_pass Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5209 merge ir into master test(ir): Add text check for test_merge_pass Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: 1. support name propgration 2. fix some determine issue 3. add text check for test_merge_pass 4. fix gcov for python ut 5. remove python/pypto/ir folder Related Issue: #2559 See merge request: cann/pypto!5209 | 3 months ago | |
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 months ago | |
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 months ago | |
feat(function): Add parallel tag in op assemble Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5057 merge 0724_parallel into master feat(function): Add parallel tag in op assemble Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 前端提供带parallel的assemble接口 See merge request: cann/pypto!5057 | 3 months ago | |
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 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 1 day ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago |