-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[torch.compile] auto infer dynamic_arg_dims from type annotation #9589
Conversation
👋 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:
🚀 |
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.
This is nice cleanup! Just had one clarifying question
vllm/compilation/decorators.py
Outdated
`Optional[torch.Tensor]`, the first dimension will be | ||
marked as dynamic. | ||
- if the argument is annotated as `IntermediateTensors`, all the tensors | ||
in the intermediate tensors will be marked as dynamic. |
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.
Does this refer to all dimensions of the intermediate tensors or just the first one? Could you clarify the comment?
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.
fixed in 84655bf
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.
Nice, thanks!
…m-project#9589) Signed-off-by: charlifu <[email protected]>
…m-project#9589) Signed-off-by: Alvant <[email protected]>
…m-project#9589) Signed-off-by: Erkin Sagiroglu <[email protected]>
…m-project#9589) Signed-off-by: Amit Garg <[email protected]>
…m-project#9589) Signed-off-by: qishuai <[email protected]>
…m-project#9589) Signed-off-by: NickLucche <[email protected]>
…m-project#9589) Signed-off-by: NickLucche <[email protected]>
…m-project#9589) Signed-off-by: Sumit Dubey <[email protected]>
…m-project#9589) Signed-off-by: Maxime Fournioux <[email protected]>
…m-project#9589) Signed-off-by: Tyler Michael Smith <[email protected]>
make torch.compile support easier