-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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] use depyf to dump torch.compile internals #10972
Conversation
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
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:
🚀 |
Signed-off-by: youkaichao <[email protected]>
How does depyf know to output after every pass? If it's not automatic, maybe we could add an annotation that can be added to the Finally, could you post an example output file from depyf? |
it hooks the
see https://drive.google.com/drive/folders/1gBVguoCbCGKpKb8SveKrbZkIhiZe9jeS?usp=sharing |
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 looks good! If we could reduce the verbosity of the output that would be nice but happy to deal with that later
This pull request has merge conflicts that must be resolved before it can be |
yeah we can further organize the output in the future, to debug and improve the performance of inductor. |
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
…ct#10972) Signed-off-by: youkaichao <[email protected]> Signed-off-by: Akshat Tripathi <[email protected]>
…ct#10972) Signed-off-by: youkaichao <[email protected]>
…ct#10972) Signed-off-by: youkaichao <[email protected]>
depyf https://github.com/thuml/depyf is a library ( I maintain ) that is dedicated for dumping all sorts of internals from torch.compile .
with this pr, run
vllm serve meta-llama/Meta-Llama-3-8B -O '{"level": 3, "inductor_specialize_for_cudagraph_no_more_than": 1, "debug_dump_path": "depyf_dump"}'
, and we can get:it includes the dynamo compiled bytecode, inductor generated kernels, max-autotune configs, graph module during all transformations, etc.