-
Notifications
You must be signed in to change notification settings - Fork 690
Fix qnn in android demo app #15258
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
base: main
Are you sure you want to change the base?
Fix qnn in android demo app #15258
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15258
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 New Failures, 3 Unrelated FailuresAs of commit 50a7cac with merge base 419727c ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
model_path->toStdString().c_str(), | ||
data_files_vector, | ||
executorch::extension::Module::LoadMode::MmapUseMlockIgnoreErrors); | ||
std::string decoder_model = "llama3"; // use llama3 for now |
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.
Replace the model name here accordingly, available path is
if (decoder_model_version == "llama2") { |
To build the app:
The default SeqLen is defined in https://github.com/meta-pytorch/executorch-examples/blob/9fc32b14dd91908ae5b0217e3712cda1546579f0/llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/MainActivity.java#L815
For QNN model, it can support up to 512 for the precompiled model.