Pull Request已成功合入, 合并人@ascend-robot
(感谢 rookie_hongchuan 的贡献)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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/msmodelslim | ✅ joejoezhou, libarry (2/2) | ✅ joejoezhou (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


compile


问题/功能描述
本次PR旨在提升模型量化应用在配置管理方面的可追溯性与可扩展性。核心解决了两个问题:一是量化过程中配置文件的来源不透明,导致调试和问题排查困难;二是原有的最佳实践管理器无法灵活集成第三方或插件提供的配置,限制了系统的模块化扩展能力。
修改方案描述
本次修改主要包含两方面:一是增强日志可追溯性,在NaiveQuantizationApplication._quant方法中新增逻辑,记录所用最佳实践配置文件的完整路径,路径信息通过新增的PracticeManagerInfra.get_config_path方法查询获得。二是扩展配置管理功能,新增discover_plugin_practice_dirs函数以支持通过entry point机制动态发现插件配置目录,并在YamlPracticeManager中集成对这些目录的加载与查询,遵循“自定义 > 插件 > 官方”的优先级顺序,从而实现了配置来源的灵活扩展。


【review】最佳实践不一定使用文件进行管理,可以改为get_url,在不同的场景下,url可以有不同的含义


【review】此处为第三方的最佳实践来源配置,建议改名为third_party_config_dirs


compile


/lgtm


/lgtm
/approve


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: joejoezhou.
Reviewers who wrote a comment of /lgtm are: joejoezhou, libarry.


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: joejoezhou.
Reviewers who wrote a comment of /lgtm are: libarry, joejoezhou.


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: joejoezhou.
Reviewers who wrote a comment of /lgtm are: joejoezhou, libarry.


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


改动概述
本 PR 支持通过 entry point 引入自定义 practice 目录,作为 model adapter 插件化能力的基础。
主要改动
1. 新增插件 practice 目录发现
2. 应用与基础设施集成
3. CLI 与配置
4. 文档与示例
5. 模型适配
提交记录
影响范围