-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[V1][Perf] Avoid mem duplication when aggregating MM tensors #16440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
Signed-off-by: Nick Hill <[email protected]>
Signed-off-by: Nick Hill <[email protected]>
Ok I think I get it now. When |
I think we may need to abstract this a bit further since #15130 will introduce |
Thanks @DarkLight1337. it should be simple to generalize this for other dims, however that will result it non-contiguous slices and so could be detrimental depending on how we end up serializing things in #16432. I think if we can defer doing the "reduce" until later (i.e. only after they have been transferred) it would also solve that though. |
This may take a bit of work. I would like to at least finish #15686 before attempting this as it helps simplifies the code (considering that multi-modal processor is used in both V0 and V1). |
This pull request has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this pull request should remain open. Thank you! |
This pull request has merge conflicts that must be resolved before it can be |
When stacking or concatenating, replace the original tensors with slices into the larger one.
cc @ywang96 @DarkLight1337