-
Notifications
You must be signed in to change notification settings - Fork 25
optimizer details (draft) #2754
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2754 +/- ##
==========================================
+ Coverage 45.45% 50.36% +4.91%
==========================================
Files 57 171 +114
Lines 8261 13042 +4781
==========================================
+ Hits 3755 6569 +2814
- Misses 4506 6473 +1967 ☔ View full report in Codecov by Sentry. |
| compiler_cfg.mlir_config = ( | ||
| MLIRConfig() | ||
| .set_enable_optimizer(True) | ||
| .set_enable_fusing(True) |
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 on by default and is no longer needed.
| ## Prerequisites | ||
|
|
||
| To use the AI compiler optimizer with TT-Forge-FE, you need the following: | ||
| * TT-Forge set up, using the [Getting Started with Building TT-Forge-FE From Source](getting_started_build_from_source.md) instructions |
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.
I don't think a build from source is needed just for setting this config.
| .set_enable_optimizer(True) | ||
| .set_enable_fusing(True) | ||
| .set_enable_fusing_conv2d_with_multiply_pattern(True) | ||
| .set_enable_memory_layout_analysis(False) |
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.
Consider using ANCHOR links.
Example:
doc: https://github.com/tenstorrent/tt-mlir/blob/05c95b344a6f8622b357c6f7208297acf5dc447f/docs/src/adding-an-op.md?plain=1#L272
code: https://github.com/tenstorrent/tt-mlir/blob/05c95b344a6f8622b357c6f7208297acf5dc447f/include/ttmlir/Target/TTNN/CMakeLists.txt#L17-L19
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.
Context: this way, we wouldn't need to update the docs each time the options change - they would be read directly from code. Ideally, we also communicate default values by reading them from code.
Ticket
Link to Github Issue
Problem description
Add information about enabling the optimizer in TT-Forge-FE
What's changed
Write up the details from reviewing the code.
Checklist