-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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] A simple solution to recursively compile loaded model: using phi3-small as an example #8398
base: main
Are you sure you want to change the base?
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:
🚀 |
@youkaichao, did you get a chance to review? Thank you. |
It's often hard to apply torch.compile directly to a model because many limitations. However, there are only a few key nn.Modules we really need to compile to get max speed. This PR presents a short solution to solve the problem. Phi3-small got 15% latency improvement with this.
This PR contains 3 major functions: