| gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 Co-authored-by: hsqnb<heshouqi@h-partners.com> # message auto-generated for no-merge-commit merge: !1120 merge master into master gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 Created-by: hsqnb Commit-by: hsqnb Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 ### 该PR关联的issue fixes [#427](https://gitcode.com/cann/pypto-gym/issues/427) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [x ] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1120 | 6 days ago |
| 添加conv pypto pro相关高性能用例及指导 | 1 day ago |
| feat(mqsmla): port pto_bnn delivery-form kernel and AICPU metadata planner Co-authored-by: h00520348<huangyuqian2@huawei.com> # message auto-generated for no-merge-commit merge: !1081 merge master into master feat(mqsmla): port pto_bnn delivery-form kernel and AICPU metadata planner Created-by: huangyuqian Commit-by: h00520348 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue https://gitcode.com/cann/pypto-gym/issues/399 ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1081 | 8 days ago |
| feat(build): Support whl format. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1075 merge feat/migrate-build-chain into master feat(build): Support whl format. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 当前构建链为上一代形态:whl 为 JIT 直调(纯 Python 包,kernel 运行时按需编译,无 vendor 树);Torch 绑定为构建期预编译 _native .so,仅随 run 包交付,且受构建环境 torch ABI 锁定;无 AICPU DSL 支持。为对齐 PIP 源生态发布与生产部署两类交付诉求,本次对构建工程做代际升级:whl 升级为 AOT 全量形态,绑定层 JIT 化,宿主侧运行时依赖最小化。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fiex [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1075 | 10 days ago |
| fix(benchmark): reject metrics from failed inference processes Co-authored-by: Ethan_Zou<tianjun.zou@foxmail.com> # message auto-generated for no-merge-commit merge: !786 merge fix/benchmark-child-exit-status-20261007 into master fix(benchmark): reject metrics from failed inference processes Created-by: Ethan_Zou Commit-by: Ethan_Zou Merged-by: cann-robot Description: ## 当前提交与版权修正 当前唯一源提交为 2c1783859cbfc8f61a96878cde976eaab6377967。本轮仅按仓库模板修正现有文件的个人版权声明:modeling/transformers/deepseek-v2-lite-chat/test_benchmark_child_status.py。年份、许可证正文、第三方来源和全部非版权字节保留;Python文件AST相同,没有改动功能或测试场景。适用的改动文件原生检查通过;无原生pre-commit配置的仓库以实际字节/AST和diff验证为准。 当前SHA的CI尚未触发,按顺序逐条验证。下方功能实现与本地回归记录继续有效;其中旧SHA b4d03ac8665209657660d34cff0880c562ae325d 的远端CI结果属于修正前历史,不代表当前SHA通过。 关联已有Issue #234:https://gitcode.com/cann/pypto-gym/issues/234 <details> <summary>功能实现、修正前验证与评审记录</summary> ### 当前 PR 是否有 AI 参与 - [ ] 否 - [x] 是:OpenAI Codex 辅助调查、修复和 Host 回归;真实源码/进程结果已核验。 ### PR 功能描述 / 为什么需要这个合入 性能对比脚本仅凭日志中的指标判断成功,先打印指标再非零退出的推理子进程仍被记为成功,影响 JSON 结果和对比报告。在解析指标前检查 returncode;非零退出返回失败、模式与退出码,不提供成功性能数据。 ### 关联 Issue Fixes #234 ### 改动类型 - [x] Bug 修复 - [x] 文档更新 - [x] 测试相关 ### 测试信息 sh python3 modeling/transformers/deepseek-v2-lite-chat/test_benchmark_child_status.py Host Python 3.12.14,3 个 unittest 方法/18 个真实 Python 子进程;sys.setprofile 每轮核实 actual run_test 18 次。12 个非零退出(1/7/137×baseline/fusion×stdout/stderr 完整指标)在基线均误成功,4 个正常完整指标和2个缺失指标控制通过;修复后18次全通过,0异常/跳过。验证实际传入CLI参数、模式、退出码和独立手填指标。使用临时MODEL_PATH和固定日志子脚本,没有mock subprocess或复制结果分类算法。 新增测试 Ruff check/format 通过,git diff --check 通过。原生 pre-commit 配置/format.sh 不存在;性能脚本整文件 Ruff 在基线与修复版本均有相同4个既有发现(F401 sys、F541×3),不宣称整文件风格全部通过。既有成功解析、缺失指标、超时/启动异常行为和性能阈值不改动。 ### 其他信息 最新 master bc9a4c5358a8c762b1d216d4b04e0988bf649bbd;源 SHA b4d03ac8665209657660d34cff0880c562ae325d,仅一个 Ethan_Zou 提交。核对214条Issue及105个开放PR,#229/PR781 MiniMax no-streaming 与 #123/PR780 Phi3脚本问题不同。 仅Host进程/结果归类验证;固定测试指标不代表真实模型/设备性能,未运行模型、PyPTO、CANN SDK/NPU。保留原始Huawei及CANN许可。CI用 /compile 触发后回查。 ### CI 回查结果 流水线 110459f8fa59443fb32263a76f3f62da COMPLETED,15/15 个任务 COMPLETED,无失败/取消/条件跳过;包含 CodeCheck、SCA、原生检查及 PreSmoke_A3。最终源 SHA b4d03ac8665209657660d34cff0880c562ae325d 与远端相同,提交列表仍仅1个 Ethan_Zou 提交。不据此声称新增18个Host子进程回归或本次DeepSeek模型性能对比被远端执行。 </details> ## 最新 CI 结果 当前源 SHA 2c1783859cbfc8f61a96878cde976eaab6377967 的[流水线](https://gitcode.com/cann/pypto-gym/actions/runs/7b6b9077651c4d4b9b4afd5d7765b74c)已完成,15个任务 COMPLETED。 See merge request: cann/pypto-gym!786 | 12 days ago |
| 添加conv pypto pro相关高性能用例及指导 | 1 day ago |
| feat(ops): Support torch.ops in dsvv4.1 ops. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1079 merge feat/migrate-build-chain into master feat(ops): Support torch.ops in dsvv4.1 ops. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 支持 whl 构建后,算子适配; ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fixes [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [x] 单元测试通过 / UT passed - [x] 集成测试通过 / ST passed - [x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [x] 代码符合规范 / Code follows style guide - [x] 测试添加并通过 / Tests added and passed - [x] 文档已更新 / Docs updated if needed - [x] 无硬编码敏感信息 / No secrets hardcoded - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1079 | 7 days ago |
| feat(build): Support whl format. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1075 merge feat/migrate-build-chain into master feat(build): Support whl format. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 当前构建链为上一代形态:whl 为 JIT 直调(纯 Python 包,kernel 运行时按需编译,无 vendor 树);Torch 绑定为构建期预编译 _native .so,仅随 run 包交付,且受构建环境 torch ABI 锁定;无 AICPU DSL 支持。为对齐 PIP 源生态发布与生产部署两类交付诉求,本次对构建工程做代际升级:whl 升级为 AOT 全量形态,绑定层 JIT 化,宿主侧运行时依赖最小化。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fiex [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1075 | 10 days ago |
| Revert "feat(kimi_linear_48b_a3b): Fuse KDA prefill path" Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !887 merge 1027 into master Revert "feat(kimi_linear_48b_a3b): Fuse KDA prefill path" Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!887 | 1 month ago |
| 添加conv pypto pro相关高性能用例及指导 | 1 day ago |
| [Feat] PyPTO Pro AI Agent skills更新 (增加CV融合skills) Co-authored-by: lim-jiunnbin<lim.jiunn.bin@huawei.com> # message auto-generated for no-merge-commit merge: !444 merge cann-bench-a5-all into master [Feat] PyPTO Pro AI Agent skills更新 (增加CV融合skills) Created-by: lim-jiunnbin Commit-by: lim-jiunnbin Merged-by: cann-robot Description: skills: PyPTO-Pro A5 开发与调优技能(references / templates / verify_codegen) ## 修改范围 pypto-pro-op-develop 与 pypto-pro-op-perf-tune 两个 skill 的 references 与 templates,加一个不依赖设备的 codegen 驱动工具。共 19 个文件:新增 13、修改 6。 不含知识库(由 cann-bench-a5-kb 承载)、不含算子产物、不动仓级配置 (.gitignore / OAT.xml / pyproject.toml 保持 master 原样)。 目标平台只有 A5(Ascend950PR)。全部结论以 PyPTO-Pro 官方源码、公开接口、正式样例 或可复现探针为依据;不依赖评测服务、外部 DSL 或本仓之外的 checkout。 ## 修改点 ### 1. develop:Cube 累加器直连 Vector epilogue **改了哪里**:新增 references/cv-matmul-direct-buffering.md 与 templates/cv_matmul_direct_buffering.py.tmpl;新增 templates/fp32-chain-precision-fragments.py.tmpl;修正 references/vf-reduction-perf.md 的实测数值。 **怎么改**:把轮转缓冲写成 make_tile_group + auto_mutex 的形态;门控式宽 tile 写成"带命名空位的谓词结构"而不是某组常量;N 尾巴的判据回到 gap_bytes = (N-256)*2 >= 32B 这条不等式,由它推出可接纳宽度。 **为什么这样改**:Cube→Vector 交接此前没有成文形态,每个算子重新试一遍, 反复踩同一批同步陷阱。而门控谓词若照抄某个算子拟合出的阈值,读者会以为 它对自己的 shape 也验证过——阈值是每算子每目标的,能迁移的是结构。 vf-reduction-perf.md 的旧数值复测后已偏离,页面被引用中,错的比没有更糟。 ### 2. perf-tune:A5 调优面 **改了哪里**:references/a5-roofline-and-levers.md、msprof-op-guide.md、 csv_fields_reference.md、新增 stage-task-flatten.md;8 个模板;两个 SKILL.md 新增模板表。 **怎么改**: - §4.2a–4.2f 由"某算子某天的扫描记录"改写为「规则 → 判据 → 如何自证 → 做法」。 量级保留(描述符膝点 2–4 KB、store 数倍于 load、四个 ratio 相加大于 1), 改为"探针应复现的区间",不再是某一轮的表。 - 删除打分锚点一节及其在其它四处的依赖表述,改用可在本仓复现的量: 字节模型是下界不是预测、因果掩码要显式计价、按访存模式描述 roof。 - 恢复被误删的「A5 原语代价表」;staged-matmul-ab-checklist.md.tmpl 按全仓约定 改名 .md(文档型模板用 .md,代码片段用 .py.tmpl)。 **为什么这样改**:流水账不可复用——读者要的是"我该怎么判",不是"谁在哪天量到什么"; 而单点数值会被单次发射离散度淹没,承载结论的是单调性与量级。打分锚点属于评测服务 的机制,不是 PyPTO-Pro 知识;只删小节会让其余四处的"anchor"失去定义,所以一并改写。 代价表被两个 SKILL 强制引用,删掉等于把工作流指向不存在的章节。 ### 3. 模板的正确性修复(6 处,均与本仓 KB 已记录的约束冲突) **改了哪里**:cube-output-wave-reuse、cube-shared-left-output-pair、 stage-task-flatten、tiling-key-resource-specialization、vf-broadcast-dot-panel。 **怎么改 / 为什么**: - 4 处从 @pl.jit body 调用普通 Python helper → 全部内联。KB pypto-pro-framework-findings.md 已记录 parser 不跟随此类调用,模板此前正是在教 读者违反本仓自己的约束。 - K 链 phase 由循环两端推导。AccPhase.Partial 未闭合会 fault 设备,单块 K 循环 必须在同一次迭代开闭;原 if/elif 阶梯只有循环跑多次才到 Final。 - pl.range 动态归纳变量索引编译期 Tile handle 列表 → pair 展开,每 lane 固定 handle。 - kernel-scope 核身份被两个 section 共用 → 各 section 自行推导。该模板自身注释即写明 get_block_idx() 在 AIC/AIV 上 lower 不同。 - VF 三处嵌套调用拆开——VF 是三地址调用模型,不接受产生值的调用作参数。 ### 4. tools/verify_codegen.py **改了哪里 / 怎么改**:无设备驱动 @pl.jit 到 codegen;产物扫描增加"必须由本次调用 产生"的 mtime 门槛,并报告忽略了几个历史产物;框架内部接口按名解析,缺失时以指名错误 失败;非入口 helper 不再 raise SystemExit。 **为什么这样改**:它要区分的两类失败都表现为 RuntimeError——kernel 错,还是工具链 不认这个 target。而旧扫描取 cwd 下最新的 build/**/kernel.cpp,一个在 codegen 前就 失败的 kernel 会捡到历史产物与其 toolchain 日志,被判成 PASS 并返回 0。已用预置 stale 产物验证:修复前被选中,修复后忽略并返回 FAIL_CODEGEN。 ## 验证 py_compile 全部改动文件;四个 CLI --help;stale 产物前后对照;模板无嵌套 VF 调用、 无普通 helper 调用;全 MR 无对已移除工具、评测服务、外部 DSL 的引用;每个模板与参考页 都能从其 owning skill 到达。 <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [X] 是 _X_1. AI Agent 平台: _X_2. AI 模型: _X_3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: PyPTO Pro 算子设计开发skills, 知识库与模版库 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [X] 新功能 / New Feature - [x] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [X] 单元测试通过 / UT passed - [X ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [X] 代码符合规范 / Code follows style guide - [X] 测试添加并通过 / Tests added and passed - [X ] 文档已更新 / Docs updated if needed - [X] 无硬编码敏感信息 / No secrets hardcoded - [X] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!444 | 3 months ago |
| refactor(skills): 整合 PyPTO-Pro 工作流、API 适配与仓内验证 Co-authored-by: ddddwee1<chengyu996@gmail.com> Co-authored-by: xuzhenghao8<xuzhenghao8@huawei.com> # message auto-generated for no-merge-commit merge: !927 merge codex/refresh-pypto-pro-kernel-20261102 into master refactor(skills): 整合 PyPTO-Pro 工作流、API 适配与仓内验证 Created-by: ddddwe Commit-by: ddddwee1;ddddwe;xuzhenghao8 Merged-by: cann-robot Description: ### 当前 PR 是否有 AI 参与 - [ ] 否 - [x] 是 1. AI Agent 平台:Codex。 2. AI 模型:会话未提供精确模型版本标识。 3. Prompt 上下文:以 pypto-pro-kernel 为 Pro kernel 开发核心,整合需求、知识、实现与验证入口;通过 Engram Gate、AttnEpilogue 核对仓内评测、性能卡片和样例的联动,适配当前 PyPTO 的 API 元数据,并使用受影响的最小回归验证。 ### PR 功能描述 / 为什么需要这个合入 Pro 编排、知识检索和算子评测需要使用一致的契约与验证入口。本 PR 将相关职责收敛到 pypto-pro-kernel,并允许 skill 样例通过仓库原始测试执行:显式选择候选入口后,仍使用原始输入、独立 Golden 和精度判据,输出实际加载的源码身份。 - 内置核心 skill、完整 examples、参考资料与检查工具,提供 query、native、run、suggest、experiment 等 CLI 能力,以及共享语义的可选 MCP 接口。 - 整合 Pro 的 intent、material、plan、design、develop 和独立 KB 路由,清理重复流程及 Stage、DESIGN_BINDINGS、Module YAML、KB_USAGE 等遗留合同。有效知识归入核心 owner,保留学习样例、资源验证器和必要兼容引用;Golden 独立性由 Golden 验证器负责。 - 增加 --op-entry OP=FILE.py:CALLABLE,隔离同名样例模块、保留包内相对导入,并核对源码 SHA。未加载候选、导入失败及 worker 身份不一致均明确失败;支持 forked/xdist 报告汇总。 - 将 Engram Gate、AttnEpilogue 的公开评测接入该入口。统一业务实现与 skill AttnEpilogue 的 Cube 槽距、scale 预留和 mutex ID,保留阶段排空与跨核交接;检查器区分声明重叠、可复核的阶段分离和未解决的同步关系。 - 适配 PyPTO dbf64c4a 的 namespace 属性引用、架构枚举与普通/量化 Store 双表,更新生成的 API 参考,并验证 bde9013b 的元数据兼容性。IR stub 中未解析的范围会显式标记,缺损声明不会被补造。 - 性能卡片仍通过显式 --cards-root 接入。支持 AttnEpilogue/EngramGate 等完整样例名称的常见拼写,连接卡片、契约、kernel、独立 reference 和 test,保留来源 SHA、适用边界与证据限制。 - 根目录 AGENTS.md 作为本地指导纳入 gitignore;运行日志和临时验证产物不进入 PR。 ### 该 PR 关联的 issue 关联 [Issue #336](https://gitcode.com/cann/pypto-gym/issues/336)。 ### 希望检视人员了解 范围包括 Pro skills、编排与安装资源、通用测试入口,以及 Engram Gate/AttnEpilogue 的仓内适配。安装器保留旧活动入口与用户修改资源的保护;旧 lint 的退役不移除完整样例所需的独立 reference。 同步告警不直接等于竞态。Cube 声明不一致已修正;32 核布局中 RoPE 临时区与 C→V 缓冲的串行复用仍保留 Vec 提示,并核对生成代码中的全局 MTE3 发布、Cube 等待及阶段排空链路。 板上数值结果覆盖 28 Cube 核路径。32 核专用布局完成原生编译检查,尚无对应板上数值验收;本 PR 不提供性能收益结论。API 元数据查询与编译、数值、性能证据分别报告。 ## 改动类型 / Change Type - [x] 新功能 / New Feature - [x] 代码重构 / Refactoring - [x] 文档更新 / Documentation - [x] 测试相关 / Test ## 测试信息 / Testing 验证范围为受影响的最小用例。 - API 元数据、Store 绑定、来源身份、mutex 检查、卡片关联与样例检索的定向回归通过;生成 API 参考与所选 dbf64c4a 源码一致,bde9013b 的 3 项兼容检查通过。 - 50 张 Active 性能卡片、63 条关联有效。实际 CLI 查询与 pipe-07 → UB/L1 契约 → handover 样例、mem-06 → 生命周期契约 → AttnEpilogue 链路检查通过。 - 候选入口的 CPU 回归在目标环境中 21 项通过,覆盖隔离导入、错误路径、未使用候选及子进程身份汇总。 - Ascend 950PR、CANN 9.3、PyPTO bde9013b:Engram Gate 经原始评测入口 6 项、样例自测 4 项通过;mutex_ids="auto" 与 pl.gemm 的对照样例通过。 - 同一环境下,AttnEpilogue 的 11 项最小板测通过,覆盖三档 tiling、中间量、尾部守卫、独立输出与 graph replay;原版 Cube mutex 告警负向对照按预期失败。两份实现的另外三档布局共 6 次原生编译通过。 - 上游整合相关安装检查:3 项测试、12 个 subtest 通过;两个 reference 的完整样例角色、快速入门链接及 git diff --check 检查通过。 ## 检查清单 / Checklist - [x] 受影响测试添加并通过 / Affected tests added and passed - [x] 文档已更新 / Docs updated if needed - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!927 | 26 days ago |
| feat(build): Support whl format. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1075 merge feat/migrate-build-chain into master feat(build): Support whl format. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 当前构建链为上一代形态:whl 为 JIT 直调(纯 Python 包,kernel 运行时按需编译,无 vendor 树);Torch 绑定为构建期预编译 _native .so,仅随 run 包交付,且受构建环境 torch ABI 锁定;无 AICPU DSL 支持。为对齐 PIP 源生态发布与生产部署两类交付诉求,本次对构建工程做代际升级:whl 升级为 AOT 全量形态,绑定层 JIT 化,宿主侧运行时依赖最小化。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fiex [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1075 | 10 days ago |
| refactor(ops): Move ops tree from src/pypto_gym to top-level ops Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !840 merge master into master refactor(ops): Move ops tree from src/pypto_gym to top-level ops Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: refactor(ops): Move ops tree from src/pypto_gym to top-level ops Align the repository with the root-level ops/ workspace layout and merge with the existing pypto_pro operator directory. Changes: - Move src/pypto_gym/ops/pypto_tensor and pypto_pro into ops/ via git mv (255 files, history preserved) - Update sys.path bootstrap and imports (pypto_gym.ops -> ops) in tests, modeling code, docs and cannbot-skills references - Include top-level ops package in pyproject packaging Tested: - pytest collection passes for all suites (5 import styles covered) - 63 passed / 13 skipped on Ascend950 (non-experimental cases); remaining failures are CANN 9.3.0 weekly environment issues unrelated to this refactor See merge request: cann/pypto-gym!840 | 1 month ago |
| 开源整改-LICENSE Co-authored-by: s00454010<suntao37@huawei.com> # message auto-generated for no-merge-commit merge: !179 merge dev_bak into master 开源整改-LICENSE Created-by: u010986451 Commit-by: s00454010 Merged-by: cann-robot Description: ## 变更描述 / Description <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 关联 Issue / Related Issues <!-- Closes #000 可自动关闭 / Closes #000 to auto-close --> - Closes # - References # ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!179 | 5 months ago |
| feat(skills): 引入独立 PyPTO-Pro kernel skill 并精简编排入口 Co-authored-by: ddddwee1<chengyu996@gmail.com> Co-authored-by: xuzhenghao8<xuzhenghao8@huawei.com> # message auto-generated for no-merge-commit merge: !816 merge codex/port-pypto-pro-kernel-skill into master feat(skills): 引入独立 PyPTO-Pro kernel skill 并精简编排入口 Created-by: ddddwe Commit-by: ddddwee1;ddddwe;xuzhenghao8 Merged-by: cann-robot Description: 关联需求:[#293](https://gitcode.com/cann/pypto-gym/issues/293)。 引入独立的 pypto-pro-kernel skill,并让 PyPTO-Pro 编排入口围绕该 skill 完成原生 kernel 开发、验证、调试与优化。examples、参考资料和检查工具随 skill 一起分发;不包含仿真器实现。 ## 变更内容 - cannbot-skills/ops/pypto-pro-kernel/ 包含技能入口、参考资料、检查工具和内置 examples,共 629 个受版本控制的资源文件;其中 examples 为 509 个文件,115 个公开样例提供可发现的测试入口。安装后额外随附仓库的 CANN-2.0 LICENSE。 - 示例和工具以 skill 根目录解析默认路径;需要框架源码时通过 PYPTO_SRC 或 --pypto-root 指定与目标环境匹配的外部 PyPTO 源码。Sparse Attention 原始评估器的额外依赖已在索引中说明。 - Pro 编排入口使用该 skill,提供 planner、coder、debugger、verifier、optimizer、tool 六类可选角色;用户明确开启多 agent 模式时按协作说明执行。 - 安装器支持 OpenCode、Claude、TRAE、Cursor、Copilot 和 CodeArts,复制完整 skill、仓库许可证和入口,保留用户配置并保护同名或被修改的文件;不安装运行环境或下载外部技能。 - 移除重复的 Scriptor/ascriptor 资源、运行时和旧编排入口;同步技能索引、许可证检查及相关文档。性能分析中的可选外部 ops-profiling 使用来源链接,需单独安装。 ## 社区仓合规对齐 参考已合入的 [cannbot-skills !1499](https://gitcode.com/cann/cannbot-skills/pull/1499)(f020a3c774c938539735173c81b7d58f8ae053cb)和 [cannbot !204](https://gitcode.com/cann/cannbot/pull/204): - 补齐 skill Python、类型桩和编排脚本的 CANN-2.0 版权声明,采用社区仓的 Ruff 0.14.14 格式规范;OAT 仅对 requirements*.txt 依赖清单增加文件名豁免。 - 删除独立的 LICENSE.CANN,安装时从本仓 cannbot-skills/LICENSE 分发许可证;同步许可证引用和检查,覆盖生成文件、安装幂等性和配置保护。 - 补齐六类子角色的 name 元数据,将入口标记为实验性,并链接社区仓。保留本仓既有目录和安装布局。 - 保留公开 kernel/reference 导出、评估器的 o 关键字参数、PyPTO 原生切片语法和具有 DSL 语义的 VF 调用,补充对应回归;不直接接受自动清理导致的接口或语义变化。 - 类型桩生成器保留版权和源码 SHA 指纹;允许仅格式变化,仍检查签名、源码指纹和版权缺失。 - 检查器为每个被分析函数建立独立的访问器与状态,避免循环闭包共享;性能比较使用绑定参数的回调,覆盖延迟执行时的 AB/BA 顺序;消除可变默认参数和重复导入。Windows junction 回归使用解析后的命令路径、显式参数列表和 shell=False。 - 8 处 host 工厂的配置/资源约束使用显式异常,保留 AssertionError 契约;真实 python -O 子进程验证无效配置会在进入 native 装饰器之前被拒绝。 ## 验证 - skill 工具回归:584 passed。 - 编排、安装及许可证回归:44 passed、2 skipped、653 subtests passed;计划合同回归:14 passed、43 subtests passed。 - 默认静态检查覆盖 508 个样例 Python 文件,0 处违规;4,100 处 VF 调用名称均与指定框架源码核对。11 处显式反例按声明放行,44 处提示保留为需核查项。 - basic API 覆盖:81 项对应 41 个样例;matmul/algorithm 目录索引:74 个样例全部收录。 - skill 与编排目录:63 个 Markdown 文件、1,032 个本地链接、389 个标题引用,0 处问题;5 个外部链接未抓取。 - Python 源文件通过社区仓配置的 Ruff 0.14.14 检查;类型桩通过语法、版权及源码一致性检查。PR 差异空白检查通过。 - 未进行 NPU 上板正确性或性能验证;本地工具结果不代替上板验收。 - 远端流水线:最终提交 fd41dd34afb515e7503cfa028274f0d10bafaf9a 的 [#530](https://gitcode.com/CANN/pypto-gym/actions/runs/37427de96ddf4f4483d27d83cae7454a) 中,权限、PR 关联、格式、precommit、防投毒与 SCA 全部通过;SCA 确认扫描提交一致,0 条问题。CodeCheck 仍因 Minor 项未通过,Critical/Major、版权/许可证头、循环闭包、可变默认参数和命令调用告警均为 0。PreSmoke 因 CodeCheck 前置失败未执行。 从 skill 根目录执行工具回归(先安装 pytest 和 scripts/requirements-checks.txt): bash PYPTO_SRC=/path/to/pypto python -m pytest -c /dev/null --confcutdir=scripts -p no:cacheprovider scripts -q ## Minor 屏蔽申请参考 当前提交的 [CodeCheck 报告](https://www.openlibing.com/apps/entryCheckDashCode/MR_34c57014bfb04172a2cb2a68b765f48f/388246042bbe00acc37385d21a568df9?projectId=300033&codeHostingPlatformFlag=gitcode) 汇总为 Critical 0、Major 0、Minor 641。以下仅统计未屏蔽 Minor 项,共 24 类规则、1,765 条展开明细;平台汇总项与展开明细使用不同计数口径。未屏蔽的 810 处 assert 命中均位于测试文件。 以下为按规则、文件/函数范围申请屏蔽或暂缓整改的参考理由,由维护者在平台审核;许可证、版权、OAT 和 SCA 不纳入本表。命名协议和输出协议应保留;普通维护性建议可独立清理;字典键访问等依赖输入契约的条目需逐处核对。每条问题的文件和行号可在报告中按对应规则筛选。 | 规则 | 平台汇总项 | 命中位置 | 申请范围与理由 | | --- | ---: | ---: | --- | | G.TES.01 禁止在生产版本的业务代码中使用assert | 1 | 810 | 仅申请测试断言;本次未屏蔽的 8 处 host 配置/资源检查已改为显式异常。 | | 重复代码[PYTHON] | 86 | 286 | 独立可运行的教学样例/布局或精度变体保留各自实现;按具体同源片段申请,不扩大到其他代码。 | | 超大函数[PYTHON] | 144 | 176 | 样例保留 DSL 编译边界,检查器按分析语义组织;重构 kernel 规模/复杂度须专门上板验收。 | | 超大深度函数[PYTHON] | 67 | 75 | 样例保留 DSL 编译边界,检查器按分析语义组织;重构 kernel 规模/复杂度须专门上板验收。 | | G.FNM.03 当函数参数个数较多且有相关性时,建议通过class/namedtuple/dataclass等具名形式进行封装 | 63 | 64 | kernel、评估器或工具接口需要保持调用契约,参数封装会影响调用者;按接口申请。 | | G.LOG.02 使用日志记录工具实现日志功能 | 4 | 62 | CLI 结果、设备诊断和测试捕获依赖标准输出;按实际输出协议限定范围。 | | G.NAM.01 使用统一的命名风格 | 50 | 53 | AST 的 visit_*、Pyflakes 的 syntaxError/unexpectedError 是协议回调名称,改名会中断分派。 | | G.CTL.03 避免在条件/循环控制语句中包含过多的条件 | 45 | 47 | 保留 DSL 形状/边界条件的整体语义,拆分须验证解析和生成代码。 | | G.EXP.04 推导式和生成器表达式仅用于简单的逻辑表达 | 43 | 44 | 静态分析的 AST 过滤和 DSL 元数据表达式,按具体表达式申请保留。 | | G.CLS.11 避免在类外或者子类中访问父类受保护的成员 | 33 | 36 | 框架/AST 诊断和测试所需访问;确认没有公开替代接口后按调用点申请。 | | 超大圈复杂度[PYTHON] | 33 | 36 | 样例保留 DSL 编译边界,检查器按分析语义组织;重构 kernel 规模/复杂度须专门上板验收。 | | G.IMP.01 使用绝对路径导入模块 | 17 | 17 | 测试/工具按 Python 包启动,相对导入用于完整 skill 和样例包独立分发。 | | G.TYP.07 使用dict[key]获取 value 时需要注意保证 key 在有效的范围内 | 12 | 12 | 逐条核对前置验证/固定 schema;仅申请已保证键存在的访问,未验证输入继续整改。 | | G.FNM.05 当函数返回值个数较多时,建议通过class/namedtuple/dataclass等具名形式进行封装 | 10 | 10 | kernel/检查工具的返回结构是调用契约,改为具名对象需要配套迁移。 | | G.FMT.05 导入部分(imports)应该置于模块注释和文档字符串之后,模块全局变量和常量声明之前 | 7 | 8 | 可选框架或后端依赖延迟加载,避免无设备检查器启动时导入运行环境。 | | G.CLS.07 类的方法不需要访问实例时,建议定义为staticmethod或classmethod | 4 | 6 | 框架/Reporter 回调需要保持实例方法签名;按具体协议方法申请。 | | G.CLS.06 类的方法建议统一按照一种规则进行排列 | 5 | 5 | 访问器按检查语义组织,保留当前方法顺序。 | | G.ERR.11 避免使用SystemExit和sys.exit(),主进程入口中例外 | 5 | 5 | CLI 及检查流程通过 SystemExit 传递退出状态;保持现有命令行契约。 | | G.FMT.04 用空格突出关键字和重要信息 | 4 | 5 | 复合切片采用 Ruff 格式,平台空格规则与该格式冲突;保留原生切片语法。 | | G.CTL.05 建议使用单个下划线代替循环体中未使用的循环变量 | 3 | 3 | DSL 循环/测试变体保留有语义的名称;可安全简化的普通 Python 用法可后续独立收敛。 | | G.CTL.04 建议使用 for x in iterable 的方式循环处理可迭代对象 | 2 | 2 | 索引遍历方式的维护性建议,可申请暂缓;后续可独立改为 enumerate 并回归。 | | 冗余代码[PYTHON] | 1 | 1 | 数学参考实现中的公式说明;人工核对该命中是否仅为文档字符串后申请。 | | 超大目录[PYTHON] | 1 | 1 | 完整 skill 内置 examples 和检查工具,目录规模来自自包含分发要求。 | | 重复文件[PYTHON] | 1 | 1 | 独立可运行的教学样例/布局或精度变体保留各自实现;按具体同源片段申请,不扩大到其他代码。 | ## AI 参与 - 是;平台:Codex。 - 范围:skill 移植、编排集成、测试和文档检查。 See merge request: cann/pypto-gym!816 | 1 month ago |
| feat(build): Support whl format. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1075 merge feat/migrate-build-chain into master feat(build): Support whl format. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 当前构建链为上一代形态:whl 为 JIT 直调(纯 Python 包,kernel 运行时按需编译,无 vendor 树);Torch 绑定为构建期预编译 _native .so,仅随 run 包交付,且受构建环境 torch ABI 锁定;无 AICPU DSL 支持。为对齐 PIP 源生态发布与生产部署两类交付诉求,本次对构建工程做代际升级:whl 升级为 AOT 全量形态,绑定层 JIT 化,宿主侧运行时依赖最小化。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fiex [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1075 | 10 days ago |
| 开源整改--静态扫描 Co-authored-by: s00454010<suntao37@huawei.com> # message auto-generated for no-merge-commit merge: !197 merge master into master 开源整改--静态扫描 Created-by: u010986451 Commit-by: s00454010 Merged-by: cann-robot Description: 开源整改--静态扫描 See merge request: cann/pypto-gym!197 | 5 months ago |
| gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 Co-authored-by: hsqnb<heshouqi@h-partners.com> # message auto-generated for no-merge-commit merge: !1120 merge master into master gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 Created-by: hsqnb Commit-by: hsqnb Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 ### 该PR关联的issue fixes [#427](https://gitcode.com/cann/pypto-gym/issues/427) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [x ] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1120 | 6 days ago |
| feat(mega_mhc): 增加二进制交付及预编译 Torch 绑定 Co-authored-by: liulufang_gitcode<liulufang1@hisilicon.com> # message auto-generated for no-merge-commit merge: !942 merge master into master feat(mega_mhc): 增加二进制交付及预编译 Torch 绑定 Created-by: liulufang_gitcode Commit-by: liulufang_gitcode Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!942 | 21 days ago |
| feat(build): Support whl format. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1075 merge feat/migrate-build-chain into master feat(build): Support whl format. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 当前构建链为上一代形态:whl 为 JIT 直调(纯 Python 包,kernel 运行时按需编译,无 vendor 树);Torch 绑定为构建期预编译 _native .so,仅随 run 包交付,且受构建环境 torch ABI 锁定;无 AICPU DSL 支持。为对齐 PIP 源生态发布与生产部署两类交付诉求,本次对构建工程做代际升级:whl 升级为 AOT 全量形态,绑定层 JIT 化,宿主侧运行时依赖最小化。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fiex [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1075 | 10 days ago |
| fix(ci): adapt pypto build changes and update CANN environment Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !421 merge master into master fix(ci): adapt pypto build changes and update CANN environment Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## 变更描述 / Description <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 关联 Issue / Related Issues <!-- Closes #000 可自动关闭 / Closes #000 to auto-close --> - Closes # - References # ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!421 | 4 months ago |
| gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 Co-authored-by: hsqnb<heshouqi@h-partners.com> # message auto-generated for no-merge-commit merge: !1120 merge master into master gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 Created-by: hsqnb Commit-by: hsqnb Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: gym编包流程补充pypto包更新覆盖,同时冒烟复用编包流程的run包 ### 该PR关联的issue fixes [#427](https://gitcode.com/cann/pypto-gym/issues/427) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [x ] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1120 | 6 days ago |
| feat(mega_mhc): 增加二进制交付及预编译 Torch 绑定 Co-authored-by: liulufang_gitcode<liulufang1@hisilicon.com> # message auto-generated for no-merge-commit merge: !942 merge master into master feat(mega_mhc): 增加二进制交付及预编译 Torch 绑定 Created-by: liulufang_gitcode Commit-by: liulufang_gitcode Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!942 | 21 days ago |
| feat(build): Support whl format. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1075 merge feat/migrate-build-chain into master feat(build): Support whl format. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 当前构建链为上一代形态:whl 为 JIT 直调(纯 Python 包,kernel 运行时按需编译,无 vendor 树);Torch 绑定为构建期预编译 _native .so,仅随 run 包交付,且受构建环境 torch ABI 锁定;无 AICPU DSL 支持。为对齐 PIP 源生态发布与生产部署两类交付诉求,本次对构建工程做代际升级:whl 升级为 AOT 全量形态,绑定层 JIT 化,宿主侧运行时依赖最小化。 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fiex [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [ x] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ x] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1075 | 10 days ago |
| feat(ops): Support torch.ops in dsvv4.1 ops. Co-authored-by: Alizarin0129<593324583@qq.com> # message auto-generated for no-merge-commit merge: !1079 merge feat/migrate-build-chain into master feat(ops): Support torch.ops in dsvv4.1 ops. Created-by: Alizarin0129 Commit-by: Alizarin0129 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 支持 whl 构建后,算子适配; ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # fixes [#398](https://gitcode.com/cann/pypto-gym/issues/398) ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [x] 单元测试通过 / UT passed - [x] 集成测试通过 / ST passed - [x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [x] 代码符合规范 / Code follows style guide - [x] 测试添加并通过 / Tests added and passed - [x] 文档已更新 / Docs updated if needed - [x] 无硬编码敏感信息 / No secrets hardcoded - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!1079 | 7 days ago |
| feat(build): Support build in whl/run pkg. Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !884 merge master into master feat(build): Support build in whl/run pkg. Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [.] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 为 PyPTO-GYM 仓构建编译 whl 及 run 能力; ### 该PR关联的issue fixes [#291](https://gitcode.com/cann/pypto-gym/issues/291) ### 希望检视人员了解: whl 包构建相关 PEP 规范、CANN custom opp 包相关规范; ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [x] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [x] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [x] 文档已更新 / Docs updated if needed - [x] 无硬编码敏感信息 / No secrets hardcoded - [x] 提交信息符合规范 / Commit message follows convention See merge request: cann/pypto-gym!884 | 1 month ago |