文件最后提交记录最后更新时间
[Test] Add UT for mm_plugin.py Co-authored-by: zhangxubin<1656631289@qq.com> # message auto-generated for no-merge-commit merge: !1803 merge master into master [Test] Add UT for mm_plugin.py Created-by: MoCuishle-M Commit-by: zhangxubin Merged-by: ascend-robot Description: ## Motivation Add UT for mm_plugin.py ## Modification Add UT for mm_plugin.py mm_plugin.py是指mindspeed_mm\data\data_utils\func_utils\mm_plugin.py 这个文件 该文件中,主要定义并实现了BasePlugin、模型对应的Plugin、MMPluginMixin和一些辅助函数。 因为Qwen2-VL、Qwen3-VL等模型已经有了ST,本pr中就不实现相关UT测试用例。 基类有一些方法已经override,无法跑到,所以需要实现相关UT测试用例。 该PR实现了GLM4VPlugin、BasePlugin、 MMPluginMixin这三个类和相关辅助函数对应的UT测试用例。 本地测试,端到端耗时8s,去掉冗余的导包,耗时5.6s . ## Self-test (Optional) If modifications to this PR may cause/fix function/accuracy/performance DTSs/issues, a self-inspection record needs to be attached. ## BC-breaking (Optional) If there are compatibility issues, such as dependencies on cann/torch_npu versions, they need to be explained in the PR. ## Checklist **Before PR**: - [x] The new code needs to comply with the Clean Code specification. - [x] The PR content is self-checked, and the expression can be clear and the writing standardized **After PR**: - [x] CLA has been signed and all committers have signed the CLA in this PR. - [x] The ci-pipeline is passed, Code Check is passed. See merge request: Ascend/MindSpeed-MM!18036 个月前