| Files | Last commit | Last update |
|---|---|---|
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): Select merged valid_shape by branch condition Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5840 merge fix/phi-shape into master fix(ir): Select merged valid_shape by branch condition Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5840 | 2 months ago | |
feat(interpreter): Interpreter python script remove ml_dtypes Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !5854 merge master into master feat(interpreter): Interpreter python script remove ml_dtypes Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 移除精度工具的python脚本对于第三方库ml_dtypes的依赖,bf16等数据类型的解析用二进制解码方式实现 See merge request: cann/pypto!5854 | 2 months ago | |
fix(ir): Prefer Static Shape For Overlap Analysis Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !5937 merge fix/remove-redundant-token-overlap into master fix(ir): Prefer Static Shape For Overlap Analysis Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 复 overlap 分析错误串行化非重叠 assemble 描述: 问题背景: 当 Tensor 同时存在静态 shape 和 dynamic valid shape 时,overlap 分析统一使 用 dynamic valid shape,导致静态 shape 已能证明不重叠的 assemble 被错误地串 行化。 变更内容: - 静态维度优先使用 shape - 仅对 shape 为 -1 的维度使用 dynamic valid shape - 新增四次连续非重叠 assemble 的 UT - 增加回退旧逻辑时的失败验证 See merge request: cann/pypto!5937 | 2 months ago | |
fix(codegen): Uniquify the LiteNPU kernel entry name by function hash Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !5598 merge v3_01_litenpu into master fix(codegen): Uniquify the LiteNPU kernel entry name by function hash Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: fix(codegen): Uniquify the LiteNPU kernel entry name by function hash Split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability. This is the only part of that PR that changes framework code, and it is independent of the rest of the series. Two kernels built in separate processes can receive the same generated entry symbol, because the function-id counter that feeds the magic name restarts per process. When their artifacts are combined into one offline model the second kernel silently overwrites the first. Appending the function hash to the entry name makes the symbol depend on the kernel body rather than on process-local state. Changes: - Append the function hash to the LiteNPU kernel entry name so distinct kernel bodies cannot share an entry symbol - Add a Kirin9030 test that builds the same-named kernel in two fresh subprocesses and asserts identical bodies keep one name while different bodies get different names ### Revision notes - **Since the previous revision:** the duplicated LiteNPU entry-name formula is now a single member, Function::GetMagicNameWithHash(), called from both codegen sites and the launcher. The interim framework/src/interface/utils/kernel_entry_name.{h,cpp} pair introduced by an earlier revision is deleted — Function already lives under interface/, so a member has the same layering and link properties as a free function there and needs no new file. The test's build driver is now a real module, kernel_entry_uniqueness_driver.py, copied per build with the operation passed as an argument, rather than a templated source string. - **Review feedback:** answers all three comments on this PR — reuse rather than a second formula, a copied driver rather than a generated one, and the helper as a member of Function. - **Against custom_pypto_20260717_rebased, the monolithic branch this series was split from:** adds test_kirin9030_kernel_entry_uniqueness.py (4 tests), absent there. ### Why this is needed at all Before this change the emitted LiteNPU entry symbol was TENSOR_default_loop_1_Unroll1_PATH0_hiddenfunc0_5_main — **byte-identical across unrelated kernels**. On device that mis-dispatched: a two-kernel pipeline failed precision at cosine 0.924405, because one kernel's binary shadowed the other inside the combined offline model. An upstream change complicates the picture and is worth naming, because it invites the wrong conclusion. 51ff0e528 *"feat(ir): Switch new_ir config to true"* (2026-08-12) flipped new_ir from False to True, moving kernels from the AST parser onto the PIL pipeline. The two pipelines name functions differently, so magic names **acquired** a per-kernel component they did not have before. That was a feature switch, not a naming fix. It does not make this change unnecessary. On the current pipeline, across the shipped demo set, 16 distinct magic names include **3 that are each shared by two or three different kernels**: | magic name | kernels sharing it | |---|---| | add_kernel_PATH0_hiddenfunc_5 | add, add_softmax_pipeline, mixed_ascendc_pypto | | softmax_kernel_PATH0_hiddenfunc_5 | softmax, add_softmax_pipeline | | pypto_add_kernel_PATH0_hiddenfunc_5 | mixed_ascendc_pypto, mixed_torch_pypto | The function id is _5 in every one — Program::Reset() rewinds the counter per process, so the id never disambiguates. Each operator of a multi-operator offline model is exported and built by its own process and the artifacts are combined afterwards, which is exactly the regime where those names meet. test_distinct_entry_names_differ_only_in_the_content_hash asserts the collision directly: two same-named kernels with different bodies share a magic name and are separated by the content hash alone. new_ir=False also remains a supported argument, and restores the fully generic name where the hash does all of the work. Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158) See merge request: cann/pypto!5598 | 2 months ago | |
feat(operation): Support int64/uint64 for vector operations Co-authored-by: junnyleo<lijun580@huawei.com> # message auto-generated for no-merge-commit merge: !5572 merge feat/dtype into master feat(operation): Support int64/uint64 for vector operations Created-by: junnyleo Commit-by: junnyleo Merged-by: cann-robot Description: 本 PR 旨在为向量(vector)算子补充 int64/uint64 数据类型支持。改动主要为: 1. 通过 GetSupportedDataTypesByArch 在 A5 架构(DAV_3510)的算子支持类型集合中加入 DT_INT64/DT_UINT64; 2. 新增 CheckInt64Broadcast 校验以禁止 int64/uint64 输入的 broadcast;同时修正标量 Element 的构造/转换路径(int64 不经 float、uint64 不经 int64 中转),避免大数值精度丢失或符号翻转; 3. 在 tile-op 内核层为 int64 补齐 FloorDiv、compare、logicalnot、unary 等实现; 4. 配套更新了 Python 侧与测试用例及md文档。 Related Issue: #3141 See merge request: cann/pypto!5572 | 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 | |
feat(pypro_pro): Add jit soc validation Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5801 merge fix into master feat(pypro_pro): Add jit soc validation Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypro_pro): Add jit soc validation See merge request: cann/pypto!5801 | 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(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 months ago |