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

[Inductor] [Doc] Add debugging document for inductor cpu backend #2430

Merged
merged 62 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
08259dc
Apply suggestions from code review
Valentine233 Jun 9, 2023
3cef1a5
[Inductor] [Doc] Add debugging document for inductor cpu backend
Valentine233 Jun 6, 2023
5117de6
add profile part
zhuhaozhe Jun 6, 2023
c06809f
fix format (#2)
zhuhaozhe Jun 6, 2023
a0b5ec0
rename cosim
Valentine233 Jun 6, 2023
9d3d737
change .rst to .py and fix_typos
Valentine233 Jun 7, 2023
851f3da
Add overview
Valentine233 Jun 7, 2023
136f933
fix py format
Valentine233 Jun 7, 2023
1f268d7
fix py format
Valentine233 Jun 7, 2023
c30de31
replace the profiling example (#4)
zhuhaozhe Jun 8, 2023
8012cf1
fix format (#5)
zhuhaozhe Jun 8, 2023
49688b7
use picture to show prof (#6)
zhuhaozhe Jun 8, 2023
1833047
add overview & conclusion and modify debugging
Valentine233 Jun 8, 2023
4eb0da1
fix py format
Valentine233 Jun 8, 2023
e49a027
modify logging of minifier
Valentine233 Jun 9, 2023
a392c37
Apply suggestions from code review
zhuhaozhe Jun 9, 2023
23dd617
modify for debugging
Valentine233 Jun 9, 2023
0980471
modify variable name (#7)
zhuhaozhe Jun 9, 2023
2e4ef8d
Merge branch 'main' into add_inductor_debug_doc
Jun 9, 2023
7e20a22
Apply suggestions from code review
zhuhaozhe Jun 10, 2023
cebd517
using in our testing for speed up numbers and other statement fix (#8)
zhuhaozhe Jun 12, 2023
502093f
change link for pack (#9)
zhuhaozhe Jun 12, 2023
3cd1e06
add co-author (#10)
zhuhaozhe Jun 12, 2023
b46b178
Merge branch 'main' into add_inductor_debug_doc
Jun 12, 2023
11ff211
Merge branch 'main' into add_inductor_debug_doc
Jun 12, 2023
4483423
Merge branch 'main' into add_inductor_debug_doc
Jun 12, 2023
accf7f1
Apply suggestions from code review
zhuhaozhe Jun 13, 2023
60551d0
Apply suggestions from code review
Valentine233 Jun 13, 2023
ce1c2b8
fix format of table
Valentine233 Jun 13, 2023
6472df5
fix format of table
Valentine233 Jun 13, 2023
854ed36
Merge branch 'main' into add_inductor_debug_doc
Jun 13, 2023
0f6cb60
Merge branch 'main' into add_inductor_debug_doc
Jun 13, 2023
2dbb5d9
Merge branch 'main' into add_inductor_debug_doc
Jun 13, 2023
3d3495f
Merge branch 'main' into add_inductor_debug_doc
Jun 13, 2023
d5e5729
fix format to pass CI
Valentine233 Jun 14, 2023
7287394
fix format to pass CI
Valentine233 Jun 14, 2023
6cb9c1a
Merge branch 'main' into add_inductor_debug_doc
Jun 14, 2023
f0904ba
Merge branch 'main' into add_inductor_debug_doc
Jun 14, 2023
521cb24
Update intermediate_source/inductor_debug_cpu.py
Jun 14, 2023
c67da46
Apply suggestions from code review
Jun 14, 2023
b9e4e1c
Merge branch 'main' into add_inductor_debug_doc
Jun 15, 2023
eb4abc9
use original table for profile (omitting some columns) (#11)
zhuhaozhe Jun 16, 2023
3d705d8
fix format
zhuhaozhe Jun 16, 2023
4ee02e6
fix format (#12)
zhuhaozhe Jun 16, 2023
b10ba0f
Merge branch 'main' into add_inductor_debug_doc
Jun 18, 2023
6a6bac3
fix author name
Valentine233 Jun 20, 2023
03623e9
Merge branch 'main' into add_inductor_debug_doc
Jun 22, 2023
bcc5b54
Merge branch 'main' into add_inductor_debug_doc
Jun 23, 2023
ac928ff
Merge branch 'main' into add_inductor_debug_doc
Jun 27, 2023
de49bc9
Update intermediate_source/inductor_debug_cpu.py
malfet Jun 29, 2023
4b9c109
Merge branch 'main' into add_inductor_debug_doc
Jun 29, 2023
75875e5
Update intermediate_source/inductor_debug_cpu.py
Jun 29, 2023
357a5cc
Update intermediate_source/inductor_debug_cpu.py
malfet Jun 29, 2023
210c50f
Apply suggestions from code review
Jun 29, 2023
f382e0b
Merge branch 'add_inductor_debug_doc' of https://github.com/Valentine…
zhuhaozhe Jun 30, 2023
24e5852
add perf env setting and comment out print to not generate output
zhuhaozhe Jun 30, 2023
fd01f57
fix format and reduce benchmark iters
zhuhaozhe Jun 30, 2023
9068837
add empty line
zhuhaozhe Jun 30, 2023
b06de45
Merge branch 'main' into add_inductor_debug_doc
Jun 30, 2023
7b0b00b
Update intermediate_source/inductor_debug_cpu.py
Jun 30, 2023
9609cdc
Update intermediate_source/inductor_debug_cpu.py
Jun 30, 2023
d8ab7e5
Merge branch 'main' into add_inductor_debug_doc
Jun 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added _static/img/eager_prof.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/img/inductor_prof.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,13 @@ What's new in PyTorch tutorials?
:link: intermediate/torch_compile_tutorial.html
:tags: Model-Optimization

.. customcarditem::
:header: Inductor CPU Backend Debugging and Profiling
:card_description: Learn the usage, debugging and performance profiling for ``torch.compile`` with Inductor CPU backend.
:image: _static/img/thumbnails/cropped/generic-pytorch-logo.png
:link: intermediate/inductor_debug_cpu.html
:tags: Model-Optimization

.. customcarditem::
:header: (beta) Implementing High-Performance Transformers with SCALED DOT PRODUCT ATTENTION
:card_description: This tutorial explores the new torch.nn.functional.scaled_dot_product_attention and how it can be used to construct Transformer components.
Expand Down Expand Up @@ -970,6 +977,7 @@ Additional Resources
intermediate/nvfuser_intro_tutorial
intermediate/ax_multiobjective_nas_tutorial
intermediate/torch_compile_tutorial
intermediate/inductor_debug_cpu
intermediate/scaled_dot_product_attention_tutorial

.. toctree::
Expand Down
Loading