| Files | Last commit | Last update |
|---|---|---|
fix(lint): fix remaining 19 print + 6 Chinese issues from verification Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !625 merge master into master fix(lint): fix remaining 19 print + 6 Chinese issues from verification Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: fix remaining 19 print + 6 Chinese issues from verification See merge request: cann/pypto-gym!625 | 2 months 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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
refactor(modeling): Restructure modeling/ to match TileGym layout Co-authored-by: u010986451<suntao37@huawei.com> # message auto-generated for no-merge-commit merge: !12 merge refactor/modeling-restructure into master refactor(modeling): Restructure modeling/ to match TileGym layout Created-by: u010986451 Commit-by: u010986451 Merged-by: cann-robot Description: Reorganize the modeling/ directory to follow the TileGym pattern with a unified transformers/ entry point containing infer.py, benchmark scripts, sample inputs, Dockerfile, and README. Changes: - Create src/pypto_gym/transformers/ with Qwen3-1.7B model definitions and PyPTO kernel adapters (moved from modeling/qwen3_1_7b/core/ and modeling/qwen3_1_7b/qwen3_pto_kernels/) - Create modeling/transformers/ with unified infer.py (supports --use_pypto, benchmark mode, per-token step timing) - Add bench_qwen3_1_7b.sh for PyTorch baseline vs PyPTO comparison - Add sample_inputs/, Dockerfile, build_docker.sh, README.md - Remove old modeling/qwen3_1_7b/ directory See merge request: cann/pypto-gym!12 | 6 months 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 | |
| 5 months ago | ||
docs: add HF download and explicit runtime patch flow Co-authored-by: leedongkun30-arch<lee.dongkun30@gmail.com> # message auto-generated for no-merge-commit merge: !255 merge feature/hf-download-runtime-patch-244 into master docs: add HF download and explicit runtime patch flow Created-by: leedongkun30-arch Commit-by: leedongkun30-arch Merged-by: cann-robot Description: ## Summary - add a generic HuggingFace snapshot download script for model-card IDs - add a generic runtime patch overlay script for local model snapshots - document the shared flow in the root README and the Gemma4, LLaDA2, MiniMax M2.7 model READMEs ## Scope - rebased directly on master - diff: root README + three model READMEs + the two shared scripts, plus the additions below ## Verification - python3 -m py_compile modeling/transformers/download_hf_model.py modeling/transformers/runtime_patch.py - git diff --check upstream/master..HEAD - download_hf_model.py verified with hf-internal-testing/tiny-random-gpt2 - runtime_patch.py verified for preset and custom overlay flows ## Also in this PR (rebased + squashed onto master) - ** .agents/skills/hf-npu-e2e-workflow** — orchestration workflow that pipelines the shared scripts into an HF → NPU E2E run: download_hf_model.py → runtime_patch.py → run → measure (eager / NPUGraph). It owns the net-new measurement layer — bench_npu.py, npu_capture.py, references/npu-run-and-measure.md (regimes prefill/decode, the 3-arm definition, the **NPUGraph capture gotcha table**: SDPA side-stream → attn_implementation="eager", mask/rotary host syncs → prebuilt mask + cached cos/sin, MoE argsort → static route, grouped_gemm dynamic shape → fix the shape). It invokes pypto-fused-op-integration only when a fused kernel is actually needed, and does **not** duplicate HF onboarding or the PyPTO USE_PTO_<OP> switch / sys.modules injection (those stay in pypto-fused-op-integration). - **pypto-fused-op-integration is NOT edited.** Its stale onboarding (raw snapshot_download, manual fix_imports.py + auto_map) and its env-specific torch==2.7.1 pin are corrected as **override notes inside hf-npu-e2e-workflow's SKILL.md** (step 5): read that skill for the fusion methodology, but use this PR's download_hf_model.py / runtime_patch.py for onboarding and match torch/torch_npu to the box's CANN. The shared skill itself stays untouched. - Rebased onto current master and squashed to a single commit. See merge request: cann/pypto-gym!255 | 5 months ago | |
fix(modeling): add missing logging/os imports (#200) Co-authored-by: lizixuan1020<3064268022@qq.com> # message auto-generated for no-merge-commit merge: !742 merge fix/modeling-import-nameerror-200 into master fix(modeling): add missing logging/os imports (#200) Created-by: lizixuan1020 Commit-by: lizixuan1020 Merged-by: cann-robot Description: ### PR功能描述 / 为什么需要这个合入 按 issue #200 修复两个 modeling 脚本的模块顶层 NameError: **1. modeling/transformers/infer.py** 现状比 issue 描述更隐蔽:import logging 存在但位于 L38,而 --use-pto 分支在模块顶层 L36 就调用了 logging.info(...) → 带 --use-pto 运行即 NameError: name 'logging' is not defined(不带该参数则侥幸通过)。 修复:import logging 移入顶部 import 块(argparse 之后),删除 L38 的迟到重复 import;logging.basicConfig 保留原位(在参数解析后配置,行为不变)。 **2. qwen3_vl_8b_instruct_unredacted_max/ask_Qwen3-VL-8B-Instruct-Unredacted-MAX.py** 缺 import os,而 L23 模块顶层构造 _WORKSPACE_ROOT = os.path.dirname(...) → import 即 NameError。 修复:import 块补 import os(argparse 与 sys 之间,按字母序)。 ### 改动类型 - Bug 修复 / Bug Fix ### 测试信息 - python3 -m py_compile 两文件通过 - **全量 AST 遍历核验**(覆盖模块顶层及其嵌套语句块,含 if args.use_pto: 分支):infer.py 的 7 处、ask_Qwen3-VL 的 13 处模块级 logging/os 使用,全部出现在对应 import 行之后,违规 0 处——原病灶(infer.py L35 分支内 logging.info)已纳入检查并确认安全 - 未做运行时验证(需 NPU/模型权重环境);改动为纯 import 位置/补入,无逻辑变更 fixes #200 See merge request: cann/pypto-gym!742 | 2 months ago | |
docs: add HF download and explicit runtime patch flow Co-authored-by: leedongkun30-arch<lee.dongkun30@gmail.com> # message auto-generated for no-merge-commit merge: !255 merge feature/hf-download-runtime-patch-244 into master docs: add HF download and explicit runtime patch flow Created-by: leedongkun30-arch Commit-by: leedongkun30-arch Merged-by: cann-robot Description: ## Summary - add a generic HuggingFace snapshot download script for model-card IDs - add a generic runtime patch overlay script for local model snapshots - document the shared flow in the root README and the Gemma4, LLaDA2, MiniMax M2.7 model READMEs ## Scope - rebased directly on master - diff: root README + three model READMEs + the two shared scripts, plus the additions below ## Verification - python3 -m py_compile modeling/transformers/download_hf_model.py modeling/transformers/runtime_patch.py - git diff --check upstream/master..HEAD - download_hf_model.py verified with hf-internal-testing/tiny-random-gpt2 - runtime_patch.py verified for preset and custom overlay flows ## Also in this PR (rebased + squashed onto master) - ** .agents/skills/hf-npu-e2e-workflow** — orchestration workflow that pipelines the shared scripts into an HF → NPU E2E run: download_hf_model.py → runtime_patch.py → run → measure (eager / NPUGraph). It owns the net-new measurement layer — bench_npu.py, npu_capture.py, references/npu-run-and-measure.md (regimes prefill/decode, the 3-arm definition, the **NPUGraph capture gotcha table**: SDPA side-stream → attn_implementation="eager", mask/rotary host syncs → prebuilt mask + cached cos/sin, MoE argsort → static route, grouped_gemm dynamic shape → fix the shape). It invokes pypto-fused-op-integration only when a fused kernel is actually needed, and does **not** duplicate HF onboarding or the PyPTO USE_PTO_<OP> switch / sys.modules injection (those stay in pypto-fused-op-integration). - **pypto-fused-op-integration is NOT edited.** Its stale onboarding (raw snapshot_download, manual fix_imports.py + auto_map) and its env-specific torch==2.7.1 pin are corrected as **override notes inside hf-npu-e2e-workflow's SKILL.md** (step 5): read that skill for the fusion methodology, but use this PR's download_hf_model.py / runtime_patch.py for onboarding and match torch/torch_npu to the box's CANN. The shared skill itself stays untouched. - Rebased onto current master and squashed to a single commit. See merge request: cann/pypto-gym!255 | 5 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 6 months ago | ||
| 1 month ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 2 months ago | ||
| 5 months ago |