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

[MIGraphX EP] Add migraphx ep save load compiles #20643

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TedThemistokleous
Copy link
Contributor

Description

Adds the ability for MIGraphX EP to save off or load compiled models to save time between inferences.

Via Command line

User should be able to set the save ability with
ORT_MIGRAPHX_SAVE_COMPILED_MODEL
ORT_MIGRAPHX_SAVE_COMPILE_PATH

User should be able to set the load ability with
ORT_MIGRAPHX_LOAD_COMPILED_MODEL
ORT_MIGRAPHX_LOAD_COMPILE_PATH

via Onnxruntime API

migx_save_compiled_model
migx_save_model_name
migx_load_compiled_model
migx_load_model_name

Motivation and Context

The motivation for this is to leverage MIGraphX's existing API to save/load models after our compile step of graph optimization. For larger models or models which were compiled with additional tuning steps, this saves time after first compile and inference run, and thus speeds up the user experience in order to encourage development.

Ted Themistokleous added 2 commits May 9, 2024 22:07
Initial changes for the getting the flags into the state to save/load precompiled MIGraphX models in the EP.
@TedThemistokleous TedThemistokleous linked an issue May 10, 2024 that may be closed by this pull request
2 tasks
@TedThemistokleous TedThemistokleous force-pushed the add_migraphx_ep_save_load_compiles branch from ccb6a0c to fafe433 Compare May 10, 2024 22:20
@TedThemistokleous TedThemistokleous force-pushed the add_migraphx_ep_save_load_compiles branch from e803fcb to a3c457f Compare May 11, 2024 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cache for Onnxruntime Compiled Programs
1 participant