-
Notifications
You must be signed in to change notification settings - Fork 724
Add support for model-explorer in ArmTester #6750
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6750
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d98cfe6 with merge base 7fcd0af ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
If model-explorer is installed, run it on the exported_graph using ArmTester.visualize(), or use the api the visualize module directly from the debug console. Introduces two pytest configurations: --model_explore_host : if set, tries connecting to to a running server rather than starting a new one. --model_explore_port : set the port of the above host Signed-off-by: Erik Lundell <erik.lundell@arm.com> Change-Id: I00ada14f27e6a7ad3994a439ba4c1e39b1560e2c
2ebf7f9 to
d98cfe6
Compare
| _model_explorer_installed = False | ||
|
|
||
| try: | ||
| # pyre-ignore[21]: We keep track of whether import succeeded manually. |
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.
Do you just test locally?
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.
Yeah, this has only been tested locally. I am not sure how to test in ci since it requires an external dependency
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.
@Olivia-liu - what do you think of this vs. our SDK plans for visualization?
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.
Bump @Olivia-liu, some kind of visualization would be great, so would really appreciate merging unless you have other plans soon
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.
@Erik-Lundell Sorry about the delay! This is great. Glad to see integration with model-explorer going on!
|
Let me get back to you @Erik-Lundell - apologies for the slow responses here. |
|
@Olivia-liu - do you think we should make this a devtools utility which can be leveraged by other delegates and/or ET itself? Rationale is, such shared facilities tend to get better faster overtime. |
@digantdesai I agree. Since this visualization isn't Arm specific, it makes sense to make it a shared utility. @Erik-Lundell Would you be able to move it under executorch/devtools? You can create a new directory executorch/devtools/visualization. |
Olivia-liu
left a comment
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.
To change it to a shared utility that's not Arm delegate specific
|
The idea here was to make it super convenient to use with our tester - the api for just visualizing an exported program in model-explorer is very minimal (basically just What I could do is add it to the xnnpack tester which we inherit from. But I also think I need some guidance on adding model-explorer as a new dependency, can I add it as an optional devtool dependency, should I handle if it is not installed, or something else. |
|
I am not a devtools expert, @Olivia-liu is, but how I imagine this as, I remember Olivia had something like this but not on the Github yet, so just want to make sure we are aligned and not doing throwaway work here. Also not want to block you @Erik-Lundell - so I would say just move this out of arm dir to devtools and get a stamp from @Olivia-liu . |
Thanks, I have some idea of how to go forward with this now. It'll take some time until I can make the changes, I'll mark the PR as a draft until then. |
|
Since the the new patch was completely different I made a new PR, see #7554 @Olivia-liu |
If model-explorer is installed, run it on the exported_graph using ArmTester.visualize(), or use the api the visualize module directly from the debug console.
Introduces two pytest configurations:
--model_explore_host : if set, tries connecting to to a running server
rather than starting a new one.
--model_explore_port : set the port of the above host. If not set, uses default model-explorer port option which searches for a running server.