[Main2Main] Upgrade vLLM to 0305#7099
Conversation
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on upgrading the vLLM dependency to version 0.3.5 and adapting the Ascend-specific components to maintain compatibility. Key changes involve refining memory management for NPU devices by introducing a dedicated Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request upgrades the vLLM dependency and adapts the codebase to the changes. The main adaptations involve providing NPU-specific workarounds for memory profiling and disabling compilation during profiling runs to prevent errors on Ascend. The changes appear correct and robust.
I have provided suggestions for the pull request title and summary to align with the repository's style guide. Please see below.
Suggested PR Title:
[Main2Main][Core][Misc] Upgrade vLLM to commit 5b3ba94Suggested PR Summary:
### What this PR does / why we need it?
This PR upgrades the vLLM dependency to commit `5b3ba94ab4bd9da739bcc27cdd05505467fa499e` to keep up with the latest upstream changes.
This upgrade introduces changes that require adaptation for the Ascend backend. Specifically:
- Upstream vLLM now uses `torch.accelerator.empty_cache()`, which is not supported on `torch-npu`. This PR introduces a patch to redirect this call to `torch.npu.empty_cache()` and also provides an NPU-specific memory profiling utility to avoid issues during memory profiling.
- Changes in upstream profiling logic could lead to `FakeTensorMode` mismatches on Ascend. This PR disables compilation and graph modes during profiling runs to prevent this.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
CI passed with existing tests.|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
Signed-off-by: menogrey <1299267905@qq.com>
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
out-of-dated, close |
What this PR does / why we need it?
break:
torch.cuda.empty_cachewithtorch.accelerator.empty_cachevllm#30681Does this PR introduce any user-facing change?
How was this patch tested?