| [Modify][MindSpore] Optimize data preprocessing performance for Qwen3vl
Co-authored-by: weixin_47897441<wuyouqi1@h-partners.com>
# message auto-generated for no-merge-commit merge:
!1926 merge master-qwen3vl into master
[Modify][MindSpore] Optimize data preprocessing performance for Qwen3vl
Created-by: weixin_47897441
Commit-by: weixin_47897441
Merged-by: ascend-robot
Description: ## Motivation
This PR aims to optimize the performance of qwenvl3 data preprocessing by replacing partial tensor operations with tensor-to-numpy conversions, reducing unnecessary tensor memory copies and improving the overall efficiency of the preprocessing pipeline.
## Modification
Replace tensor-based data operations that cause redundant memory copies with tensor-to-numpy conversion operations.
## Self-test (Optional)
1.After modification, the output of qwenvl3 data preprocessing is consistent with the original version.
2.The preprocessing time is reduced from 10xPTA to 5.2xPTA.

## 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!1926 | 5 个月前 |