-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Update weight sharing tool to support plugin EPs #26614
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
adrianlizarraga
merged 10 commits into
main
from
adrianl/EpWeightSharingTool_SupportPluginEps
Nov 25, 2025
Merged
Update weight sharing tool to support plugin EPs #26614
adrianlizarraga
merged 10 commits into
main
from
adrianl/EpWeightSharingTool_SupportPluginEps
Nov 25, 2025
Conversation
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
adrianlizarraga
commented
Nov 19, 2025
adrianlizarraga
commented
Nov 19, 2025
edgchen1
reviewed
Nov 22, 2025
edgchen1
reviewed
Nov 22, 2025
edgchen1
previously approved these changes
Nov 22, 2025
edgchen1
previously approved these changes
Nov 24, 2025
edgchen1
approved these changes
Nov 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
ep_weight_sharing_ctx_gentool to support specifying a plugin EP configuration (via JSON).ep_weight_sharing_ctx_gentool as deprecated and add notification to README that recommends the use the public Python ORT APIs instead.Tool usage
Create a JSON file that contains information about the plugin EP to load/use (e.g.,
example_plugin_ep_config.json):{ "ep_library_registration_name": "example_plugin_ep", "ep_library_path": "example_plugin_ep.dll", "selected_ep_name": "example_plugin_ep", "default_ep_options": { "option_key": "option_value" } }Call the
ep_weight_sharing_ctx_gentool with the-pcommand-line option to specify the location of the above configuration file:$ ep_weight_sharing_ctx_gen.exe -p example_plugin_ep_config.json model_1.onnx,model_2.onnxMotivation and Context
Close the functionality gap between traditional provider-bridge EPs and plugin EPs. This PR allows using plugin EPs with the tool that compiles models with weight sharing.