-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[v1][torch.compile] support managing cudagraph buffer #10203
Conversation
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 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 do one of these:
🚀 |
@@ -94,13 +94,14 @@ def test_simple_piecewise_compile(): | |||
with set_compile_context([1, 2]): | |||
model(input_buffer) |
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.
To double check: Here, input_buffer
is not directly cached and reused by the backend, right?
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.
right. let me rename the variable. it is not a persistent buffer anymore. it can be a newly created tensor.
Co-authored-by: Woosuk Kwon <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
…0203) Signed-off-by: youkaichao <[email protected]> Co-authored-by: Woosuk Kwon <[email protected]>
…0203) Signed-off-by: youkaichao <[email protected]> Co-authored-by: Woosuk Kwon <[email protected]> Signed-off-by: OmerD <[email protected]>
…0203) Signed-off-by: youkaichao <[email protected]> Co-authored-by: Woosuk Kwon <[email protected]> Signed-off-by: Sumit Dubey <[email protected]>
…0203) Signed-off-by: youkaichao <[email protected]> Co-authored-by: Woosuk Kwon <[email protected]>
…0203) Signed-off-by: youkaichao <[email protected]> Co-authored-by: Woosuk Kwon <[email protected]> Signed-off-by: Maxime Fournioux <[email protected]>
advantage: caller does not need to explicitly manage the input buffer
disadvantage: the cost of one more input tensor, and one more copy kernel.
given the code simplification from user side, i think it should be worthwhile.