[Refactor] compatible for transformers-5.0.0(7a833d1c)
Co-authored-by: zhangxubin<1656631289@qq.com>
# message auto-generated for no-merge-commit merge:
!2079 merge master into master
[Refactor] compatible for transformers-5.0.0(7a833d1c)
Created-by: MoCuishle-M
Commit-by: MoCuishle-M;zhangxubin
Merged-by: ascend-robot
Description: ## Motivation
compatible for transformers-5.0.0(7a833d1c).
## Modification
该PR大部分改动来自https://gitcode.com/Ascend/MindSpeed-MM/pull/2040 ,只修改了lora patch的实现。
1.兼容qwen2/2.5/3vl transformers 5.0.0 rope 配置
2.规避pretrain_transformer forward参数检验
3.过滤相关参数兼容 transformers 5.0.0
4.修复ci打屏日志utf-8编解码问题
5.lora适配peft 0.18.1
## 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!2079
[Test] local st test, monitoring for loss precision
Co-authored-by: yangx_sy<sunyang49@huawei.com>
# message auto-generated for no-merge-commit merge:
!1531 merge test_local_ci into master
[Test] local st test, monitoring for loss precision
Created-by: yangx_sy
Commit-by: yangx_sy
Merged-by: ascend-robot
Description: ## Motivation
Please describe the motivation of this PR and the goal you want to achieve through this PR.
## Modification
Please briefly describe what modification is made in this PR.
## 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**:
- [ ] The new code needs to comply with the Clean Code specification.
- [ ] The PR content is self-checked, and the expression can be clear and the writing standardized
**After PR**:
- [ ] CLA has been signed and all committers have signed the CLA in this PR.
- [ ] The ci-pipeline is passed, Code Check is passed.

See merge request: Ascend/MindSpeed-MM!1531