| Files | Last commit | Last update |
|---|---|---|
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 | |
perf(pypto-pro): Speed up IndexerPrologueK SIMT postprocess Co-authored-by: jie-zhang<zhangjie474@huawei.com> # message auto-generated for no-merge-commit merge: !893 merge perf/pypto-pro-indexer-prologue-k-simt into master perf(pypto-pro): Speed up IndexerPrologueK SIMT postprocess Created-by: jie-zhang Commit-by: jie-zhang Merged-by: cann-robot Description: ### 当前PR是否有AI参与: [ ] 否 [✅] 是 __1. AI Agent 平台: CANNBot / opencode __2. AI 模型: cannbot-deepseek-v4.1-flash __3. Prompt上下文 : 基于本仓库 operator 的性能分析会话,产出 SIMT 后处理优化 ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> IndexerPrologueK 的 SIMT 后处理阶段(RMSNorm / 尾部 RoPE / block-32 MXFP4 / cache 散写)在 D=128 规格下 占 kernel 总时长的 91%(prefill T=4096:111.40 / 121.65 us),其中 owner 全量扫描约 58.24 us(52%)、 VEC-Scalar 达 0.825,属标量依赖链受限;同时 owner_key % num_blocks 是运行期整数除法,扫描阶段每 token 还要等待一次标量 GM 读。 本 PR 在不改变数值路径、不改变 owner(重复 cache_index last-write-wins)语义的前提下降低扫描与行处理开销: Changes: - 把 launch 核数作为编译期常量传入后处理/融合 kernel,owner 判定模数由运行期除法变为常量取模,并将核数并入编译 key - cache_index 深度 1 预取,隐藏扫描阶段标量 GM 读延迟 - MXFP4 的 |x| / scale 改为乘精确倒数(scale 恒为 2 的幂,逐位等价) - 删除 RoPE 之后多余的 syncthreads() 性能(kernel-only,msprof Task Duration,H=512/D=128/Dr=64,device 0 独占,3 次独立进程取中位): | case | 优化前 | 优化后 | 变化 | |---|---|---|---| | prefill T=4096 mode0 | 121.65 us | 91.19 us | -25.0% | | combined T=4096 mode1 G=8 | 145.09 us | 110.02 us | -24.2% | | wide T=512 mode0(fused) | 24.94 us | 23.26 us | -6.7% | | T=8192 mode0 | — | 174.23 us | 同类 CANNBot-DSL 实现 192.89 us | | T=16384 mode0 | — | 337.97 us | 同类实现 371.12 us | ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes #<issue号> ### 希望检视人员了解: - 优化前后输出逐字节一致(4 个 case,含 k_scale_cache);与 CPU golden 差异字节 0 - pytest ops/pypto_pro/deepseek_v4_1/indexer_prologue_k/tests/test_indexer_prologue_k.py -q:60 passed - 后处理编译 key 新增「启动核数」,同一形状在核数变化时会重新编译(已在 DESIGN.md / README.md 同步) ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [x] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [x] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> Ascend 950PR(32 AIC / 64 AIV),CANN 9.2.0;msprof --task-time=on 采集 kernel 稳态中位; 对比实现为同规格 CANNBot-DSL sample。 - [x] 单元测试通过 / UT passed - [ ] 集成测试通过 / 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 Related Issues: #<issue号> See merge request: cann/pypto-gym!893 | 1 month ago | |
perf(fused_recurrent_kda): Add 'parallel=True' in assemble to improve task-build performance | 1 month ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago |