-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[BUG FIX][NON-CUDA]quick fix to avoid call cudagraph_unsafe in attention #25298
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly fixes a crash on non-CUDA platforms by conditionally including torch._C.Tag.cudagraph_unsafe
. The approach is valid, but I've suggested a more robust implementation using a try-except
block. This change would make the code more resilient by directly checking for the attribute's existence in the PyTorch library, rather than relying on vLLM's platform detection. I also recommend adding a regression test for non-CUDA environments to prevent this issue from recurring.
Signed-off-by: Chendi Xue <Chendi.Xue@intel.com>
@ProExpertProg , please help to review, thanks |
Signed-off-by: Chendi Xue <Chendi.Xue@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the cpu ci recovered, thanks for the fix :)
…ion (vllm-project#25298) Signed-off-by: Chendi Xue <Chendi.Xue@intel.com>
…ion (vllm-project#25298) Signed-off-by: Chendi Xue <Chendi.Xue@intel.com> Signed-off-by: charlifu <charlifu@amd.com>
…ion (#25298) Signed-off-by: Chendi Xue <Chendi.Xue@intel.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
Purpose
Fix failing for non cuda device when calling torch._C.Tag.cudagraph_unsafe
from #24281
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.