| Files | Last commit | Last update |
|---|---|---|
refactor(ops): Move Kimi K3 Pro operators to ops/pro Co-authored-by: zhaoshenjie<zhaoshenjie@huawei.com> # message auto-generated for no-merge-commit merge: !1143 merge codex/move-kimi-k3-pro-operators into master refactor(ops): Move Kimi K3 Pro operators to ops/pro Created-by: zhaoshenjie Commit-by: zhaoshenjie Merged-by: cann-robot Description: 将 quant_mla_prolog、flash_kda_cp_preprocess 从 ops/pypto_pro/kimi_k3/ 迁至 ops/pro/kimi_k3/,并修正 MLA 文档中的 3 处路径引用。 14 个文件按 rename 迁移;两份 kernel(含 wrapper)、golden、精度检查器逐字节不变。KDA 测试的 4 处 k/g 随机生成改为使用已有局部 CPU generator,保证输入可复现;默认 seed 仍为 53,输入分布、规格和精度门限保持一致。仓内两个算子的旧路径引用已清零。 验证环境:Ascend950PR,CANN 9.2.2 toolkit + CANN 9.3.0 随包官方 PyPTO 0.3.0 wheel,Python 3.10.20。 - KDA 完整测试:**29 passed**。 - MLA 完整测试:**23 passed**。 - 合计 **52 项全部通过**。 - Python 语法检查、git diff --check、BNSD/BSND/TND 三种布局的输入可复现检查通过。 Fixes #333 Fixes #378 See merge request: cann/pypto-gym!1143 | 13 hours ago | |
feat(operator): Add ling_3_1_flash_code Co-authored-by: yyyfff<yefan29@huawei.com> # message auto-generated for no-merge-commit merge: !1146 merge ling_3_1_flash_code into master feat(operator): Add ling_3_1_flash_code Created-by: yyyfff Commit-by: yyyfff 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!1146 | 4 hours ago | |
feat(deepseek_v4): Add new fused LIFA operator for DeepSeek-v4 Co-authored-by: Anastasia Gozheva<d1804a@gmail.com> # message auto-generated for no-merge-commit merge: !744 merge fused_LIFA into master feat(deepseek_v4): Add new fused LIFA operator for DeepSeek-v4 Created-by: yasakova_anastasia Commit-by: Anastasia Gozheva Merged-by: cann-robot Description: <!-- Thanks for sending a pull request! --> ### Was This PR authored or co-authored using generative AI tooling? [x] No [ ] Yes __1. AI Agent : __2. AI Model : __3. Prompt : ### What this PR does / why we need it: Adds QuantLightningIndexerFlashAttention, a PyPTO operator fusing the three sequential stages of the DeepSeek V4 lightning-attention decode path: - prolog: int8 matmul + dequant, inverse RoPE, Hadamard transform, per-token int8 quantization -> q, q_scale, weights; - indexer: weighted dot product against the paged int8 key cache and TopK selection -> topk_res; - SCFA: gather from the compressed KV cache by topk_res, sliding-window concat, softmax with attention sink, PV -> attention_out. ## Performance Model-level decode, per-token latency: | Configuration | ms / token | vs AscendC | | ------------------------ | ---------- | ---------- | | AscendC (baseline) | 27.32 | 1.00x | | AscendC + LIFA | 27.03 | 1.01x | | PyPTO 7 ops | 38.72 | 0.71x | | PyPTO 5 ops + LIFA | 32.64 | 0.84x | Swapping three PyPTO operators for the fused one removes 6.08 ms per token (-15.7%) and closes the gap to the AscendC baseline from 29% to 16%. Dropped into the AscendC stack, the fused operator matches the reference (1.01x). HW: 4x Ascend910C ### Which issue this PR fixes Resolves [#432](https://gitcode.com/cann/pypto-gym/issues/432) ### Special notes for your reviewer: ## Change Type / 改动类型 - [ ] Bug Fix / Bug 修复 - [x] New Feature / 新功能 - [ ] Performance / 性能优化 - [ ] Refactoring / 代码重构 - [ ] Documentation / 文档更新 - [ ] Test / 测试相关 - [ ] Other / 其它 ## Testing / 测试信息 <!-- Brief test description or key results / 简要测试说明或关键结果 --> - [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 / 提交信息符合规范 See merge request: cann/pypto-gym!744 | 6 hours ago |
| Files | Last commit | Last update |
|---|---|---|
| 13 hours ago | ||
| 4 hours ago | ||
| 6 hours ago |