-
Notifications
You must be signed in to change notification settings - Fork 684
Update script to build and upload MiniBench artifacts #5017
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
So far it supports generic model (not LLM). Later we can combine two Build: ``` cd examples/demo-apps/android/MiniBench mkdir app/libs cp <executorch.aar> app/libs/executorch.aar ./gradlew :app:installDebug When we have library changes ready, we can start trying it adb shell am start -n org.pytorch.minibench/org.pytorch.minibench.BenchmarkActivity --es model_path /data/local/tmp/model.pte adb shell run-as org.pytorch.minibench cat files/benchmark_results.txt ```
Test: ``` cd examples/demo-apps/android/MiniBench mkdir app/libs cp <executorch.aar> app/libs/executorch.aar ./gradlew :app:installDebug When we have library changes ready, we can start trying it adb shell am start -n org.pytorch.minibench/org.pytorch.minibench.BenchmarkActivity --es model_path /data/local/tmp/model.pte adb shell run-as org.pytorch.minibench cat files/benchmark_results.txt ```
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5017
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 570968f with merge base 61ddee5 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
} | ||
|
||
build_android_llm_demo_app() { | ||
build_android_demo_apps() { |
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.
Should we rename the script and steps in android-perf as well?
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.
Yes! Let's do that later. It's really used in different places
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.
Changes look good to me
I think you will need #5098 in order to run on S22 |
We can use this one later with #5094 on generic models 😸 |
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.
LGTM! After this PR and once I figure out how to get the results from the device, let's sync on what we need to change on the test spec to work with minibench
@kirklandsign This PR is merged. I'm wondering how it's tested? I thought you will wait for #5098 then test the minibench in the android-perf using this PR. |
#5098 is merged. @kirklandsign can you please verify if the app works with QNN models? |
Oh let me pull in QNN deps and I will do a verification. One moment |
No description provided.