Merged
refactor(panko): share the PyPTO search and campaign core #922
Tomomasa YamasakiAdd on 28 days ago
refactor(panko): share the PyPTO search and campaign core #922
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for Tomomasa Yamasaki's contribution.)28 days ago Created pull request, commit 7be7b8cd
28 days ago Associated issue: [Feature]: PANKO for PyPTO-Pro — a multi-objective search-based Stage 5 auto-tuner for Pro kernels
28 days ago Associated issue: [Feature]: PANKO for PyPTO-Pro — a multi-objective search-based Stage 5 auto-tuner for Pro kernels
28 days ago Added label: ai-co-authored
28 days ago Added label: cann-cla/yes
CANN-robot
28 days ago Comments:
28 days ago Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/pypto-gym | ✅ wangzheng97, lim-jiunnbin (2/2) | ✅ lim-jiunnbin (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
tomomasayamasaki, thanks for your pull request. All authors of the commits have signed the CLA. 👍


1050 messages are collapsed here。 See more
4 days ago Added label: approved
4 days ago Approval passed
wangzheng97
4 days ago Comments:
4 days ago Comments:
/lgtm


4 days ago Added label: lgtm
4 days ago Merged pull request
Was This PR authored or co-authored using generative AI tooling?
The final scope agreed during review is the shared-core refactoring only.
Claude (Claude Opus 5) assisted the initial implementation. OpenAI Codex (GPT-6 and GPT-6.2 Astra) assisted subsequent fixes, review, and validation.
What this PR does / why we need it:
PANKO tunes a kernel by trying changes, measuring candidates and keeping improvements. This PR refactors the optimizer already shipped for PyPTO (Classic) so another frontend can use the same search and campaign rules. Classic users keep their existing CLI and installation procedure.
All changes are under
cannbot-skills/ops/pypto-op-perf-panko-manual/scripts/. This first PR can be reviewed and tested with Classic alone.Which issue this PR relates to
Related to #326.
Change Type / 改动类型
Testing / 测试信息
All 816 PANKO host tests passed in 95.73 seconds at
32da86c9. This includes the 811 existing Classic tests and five frontend contract tests. The registered-backend test runs the CLI with synthetic latency samples. It checks that a faster candidate is accepted, a slower candidate triggers source rollback, the evaluation budget triggers STOP, and ABBA verification restores the accepted source for delivery.Run the full suite from the repository root with a Python 3.12 virtual environment active and
pytest==8.4.2andoptuna==4.9.0installed.suite=cannbot-skills/ops/pypto-op-perf-panko-manual/scripts/tests python -m pytest -q -s --confcutdir="$suite" "$suite"A fresh project installation also passed Classic CLI initialization and action selection at
9f22b59e.Checklist / 检查清单
Planned optimization features after PR922 merges
The PyPTO-Pro frontend will be delivered in two dependent PRs:
Other planned optimizations:
Follow-up PRs will evaluate these changes against the existing accuracy, latency and memory criteria.