-
Notifications
You must be signed in to change notification settings - Fork 4k
Annotation based partitioning along with resource accounting #27595
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
Merged
Merged
Changes from 57 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
18b5d2b
Introduce annotation query function
yuslepukhin 1eeba1a
Wire annotations to partitioning interface.
yuslepukhin debc8dd
Fix up annotations with Transpose Optimizer
yuslepukhin 8f0ff86
Add ORT_EXTENDED_MINIMAL build
yuslepukhin f7a422e
Move rules and matcher inside the index
yuslepukhin 1ef4078
Add Update with tests
yuslepukhin 828eca3
TODO: Consider not removing annotations
yuslepukhin 1626d5c
Clear annotations after partitioning
yuslepukhin f33bab1
Merge branch 'main' into yuslepukhin/layering
yuslepukhin b3ecb39
Address accountant bug
yuslepukhin b5ea1c6
Annotate tiny_gpt2_beamsearch by layers
yuslepukhin 9a422ba
Refactor Graph_GetGraphView to make it a utility
yuslepukhin a1caf93
Introduce a graph utility to create an IndexedSubgraph
yuslepukhin e1b1c4f
Merge branch 'main' into yuslepukhin/layering
yuslepukhin acec402
Fix lint in python script.
yuslepukhin 31dd7a8
Merge branch 'main' into yuslepukhin/layering
yuslepukhin 9fa4849
Merge branch 'main' into yuslepukhin/layering
yuslepukhin 50c58c9
Merge branch 'main' into yuslepukhin/layering
yuslepukhin e445b60
Fix build errors and address Copilt comments
yuslepukhin 358f7df
Reject duplicate rules
yuslepukhin 653fb8b
Move methods to .cc
yuslepukhin 23a8ecf
Remove code duplication
yuslepukhin ef1227e
Add missing include
yuslepukhin b0b2396
Fix matching bug
yuslepukhin b9e13cf
Change index parsing
yuslepukhin add0227
Remove wrong comment
yuslepukhin 17e3525
Address minimal build issues
yuslepukhin 1b1a7db
Fix unused arg
yuslepukhin 88c2c47
Add logging
yuslepukhin 9b0b529
Make sure the annotation is copied on node copy
yuslepukhin dab76bc
Adjust error message
yuslepukhin b39a487
Copy Annotations when copying nodes and inlining functions
yuslepukhin 4e260bc
Update LayeringIndex after function inlining
yuslepukhin 5214350
Add intermediate buffers accounting + temp coefficient
yuslepukhin 3fb1d1e
Merge branch 'main' into yuslepukhin/layering
yuslepukhin cd73b56
Address MakeNodeUnassigned feedback
yuslepukhin dfe4d13
Address InlineNodes feedback
yuslepukhin 62f3d11
Fix underaccounting for shared weights in fused nodes
yuslepukhin 3cab988
Update onnxruntime/python/tools/layering/layer_annotate.py
yuslepukhin e6cb75f
Lint
yuslepukhin b2ef9a2
Flip = prefix to exact match
yuslepukhin fde6300
Adjust comments for duplicate annotations
yuslepukhin 7871afa
Remove bad comment
yuslepukhin 16ec921
Adjust EpWithNoLayeringRulesSeesAllUnassignedNodes
yuslepukhin 4da5c3b
Throw on multiple annotations
yuslepukhin 01e4506
Make sure annotations are propagated on function inlining
yuslepukhin 3e52f14
Update include/onnxruntime/core/session/onnxruntime_session_options_c…
yuslepukhin 24a46e8
Update onnxruntime/core/framework/graph_partitioner.cc
yuslepukhin e745e02
Update onnxruntime/core/graph/graph_utils.h
yuslepukhin 59b5ccd
Fix issues in python
yuslepukhin 054f894
Address undercounting problem
yuslepukhin 09967c3
Add copyright header
yuslepukhin d23ee08
Update onnxruntime/core/framework/graph_partitioner.cc
yuslepukhin 9e8be7a
Adjust doc and implementaton for fetching layering ann
yuslepukhin f636138
Make GetContainingGraph public
yuslepukhin fcda524
Adjust accounting for fused node and remove stray local var
yuslepukhin 2da1394
Address flaky test
yuslepukhin c0c5e51
Update onnxruntime/core/providers/cuda/cuda_execution_provider.cc
yuslepukhin c55bb6e
Update onnxruntime/core/graph/graph_utils.cc
yuslepukhin cdd9faa
Address review issues
yuslepukhin 67a947b
Fix potential perf issue
yuslepukhin 44c6904
Address review comments
yuslepukhin 927a0ef
Add documentation for ann and ep propagation. Fix L1 optimizers, add …
yuslepukhin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.