-
Notifications
You must be signed in to change notification settings - Fork 231
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
[Android] Update README for instructions #789
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/789
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 PendingAs of commit 269f755 with merge base 9bd4f5c (): NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Thank you!
[executorch-llama.aar](https://ossci-android.s3.us-west-1.amazonaws.com/executorch/release/0.2/executorch-llama.aar) (SHASUM: 09d17f7bc59589b581e45bb49511d19196d0297d) | ||
|
||
``` | ||
curl https://ossci-android.s3.us-west-1.amazonaws.com/executorch/release/0.2/executorch-llama.aar -o android/Torchchat/app/libs/executorch.aar |
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.
command should include the --create-dirs otherwise it will fail to a brand new user
|
||
![Screenshot](https://pytorch.org/executorch/main/_static/img/android_llama_app.png | ||
"Android app running Llama model") | ||
The torchchat app skeleton is located at `android/Torchchat`. Use Android Studio to open this directory. |
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.
if the .aar file doesn't exist before you open the project and download it later, users will not be able to run. Users should run the curl command before opening the project.
echo "09d17f7bc59589b581e45bb49511d19196d0297d android/Torchchat/app/libs/executorch.aar" | shasum --check | ||
``` | ||
|
||
Then, click the Play button (^R) to launch it to emulator/device. |
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.
the app crashes right away in the simulator. Re-opening the app crashes again
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 have the crash log?
Alternatively, you can run `scripts/android_example.sh` which sets up Java, Android SDK Manager, Android SDK, Android emulator, builds the app, and launches it for you. | ||
|
||
``` | ||
export TORCHCHAT_ROOT=$(pwd) |
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.
command fails for me
Android sdkmanager is set up
- return
- setup_android_sdk
- sdkmanager 'platforms;android-34'
scripts/android_example.sh: line 79: sdkmanager: command not found
* [Android] Update README for instructions * Update download instruction
* [Android] Update README for instructions * Update download instruction
* [Android] Update README for instructions * Update download instruction
* [Android] Update README for instructions * Update download instruction
* [Android] Update README for instructions * Update download instruction
* [Android] Update README for instructions * Update download instruction
The Android instructions on the readme page need to be atomic and have everything the user needs right there on the page (no external links should be required).
It should follow a similar flow as the iOS here.
https://github.com/pytorch/torchchat/blob/documentation-cleanup/README.md