Skip to content
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

💡 [REQUEST] - Write a Tutorial for Using, Debugging, Performance Profiling torch.compile with Inductor CPU backend #2348

Closed
jgong5 opened this issue May 26, 2023 · 6 comments · Fixed by #2430
Assignees
Labels
advanced docathon-h1-2023 A label for the docathon in H1 2023 intel medium

Comments

@jgong5
Copy link

jgong5 commented May 26, 2023

🚀 Descirbe the improvement or the new tutorial

PyTorch 2.0 introduced the flagship compilation API, torch.compile, which offers a significant speedup over eager mode execution through graph-level optimization powered by the default TorchInductor backend. While this new feature has generated excitement within the PyTorch community, there is a lack of comprehensive tutorials that delve into the intricacies of torch.compile. The existing tutorials primarily focus on basic usage while missing the essential aspects such as exploring the underlying generated code, debugging potential issues, and conducting performance profiling. Therefore, this proposal aims to address this gap by creating an in-depth tutorial specifically designed for the Inductor CPU backend.

Existing tutorials on this topic

https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html

Additional context

We aim to complete the document as part of PyTorch Docathon 2023. cc @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @ZailiWang @ZhaoqiongZ @leslie-fang-intel @Xia-Weiwen @sekahler2 @CaoE @zhuhaozhe @Valentine233 @EikanWang

@svekars svekars added intel medium docathon-h1-2023 A label for the docathon in H1 2023 labels May 30, 2023
@jgong5
Copy link
Author

jgong5 commented May 31, 2023

/assigntome

@Valentine233
Copy link
Contributor

/assigntome

@github-actions
Copy link

github-actions bot commented Jun 1, 2023

The issue is already assigned. Please pick an opened and unnasigned issue with the docathon-h1-2023 label.

@jgong5 jgong5 removed their assignment Jun 1, 2023
@Valentine233
Copy link
Contributor

/assigntome

@sanchitintel
Copy link
Contributor

Hi @Valentine233, may I proof-read your PR? It'd help me gain in-depth knowledge of the Inductor CPU backend, and I would be able to provide feedback as someone with little knowledge of Inductor, which seems to be the intended target audience.
If possible, please tag me on your PR once it's ready. Thanks!

@Valentine233
Copy link
Contributor

Hi @Valentine233, may I proof-read your PR? It'd help me gain in-depth knowledge of the Inductor CPU backend, and I would be able to provide feedback as someone with little knowledge of Inductor, which seems to be the intended target audience. If possible, please tag me on your PR once it's ready. Thanks!

Of course! I would include you as a PR reviewer as soon as it is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced docathon-h1-2023 A label for the docathon in H1 2023 intel medium
Projects
None yet
4 participants