文件最后提交记录最后更新时间
【feature】预检失败由error改为warning,后续适配器报错再提供版本依赖 Co-authored-by: libarry<870390541@qq.com> # message auto-generated for no-merge-commit merge: !485 merge bugfix/precheck into master 【feature】预检失败由error改为warning,后续适配器报错再提供版本依赖 Created-by: libarry Commit-by: libarry Merged-by: ascend-robot Description: ## PR描述 (What this PR does / why we need it?) 1、依赖检查报错改为警告,所有版本依赖改为==或范围约束 2、当依赖检查失败后,适配器方法增加装饰器exception_handler,确保后续使用过程的适配器内任何报错会提示安装推荐的依赖版本号。 3、由于TimeoutError和内置TimeoutError重名,改名为ModelslimTimeoutError 4、修改UnexpectedError,增加两个方法,分别是注入tips和清理tips,支持提前注入外部Tips的能力,应用于warning后报错场景 ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? 用户环境依赖不符时,直接报错改为警告 ## 功能验证 (How was this patch tested?) 模型适配器问题注入tips: ![image.png](https://raw.gitcode.com/user-images/assets/8444818/3874cd20-89b6-4da6-83a1-dfa7a4a63bd6/image.png 'image.png') 模型forward报错触发UnexpectedError注入tips: ![image.png](https://raw.gitcode.com/user-images/assets/8444818/969dacf1-0479-442e-a0af-ba397cabfb46/image.png 'image.png') 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4859 小时前
【test】add qwen2_5_vl UT Co-authored-by: sunny<sunyu_0904@163.com> # message auto-generated for no-merge-commit merge: !481 merge feature/supplement-unit-tests-qwen2_5_vl into master 【test】add qwen2_5_vl UT Created-by: sunny_infra Commit-by: sunny Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4812 天前