Skip to content

Commit

Permalink
[easy] Undo Extra Redirection for adb Paths (pytorch#1094)
Browse files Browse the repository at this point in the history
* README: Remove unnecessary Android subpath

* Update android_example.sh
  • Loading branch information
Jack-Khuu authored Aug 30, 2024
1 parent 53196b6 commit cc5b74e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ The following assumes you've completed the steps for [Setting up ExecuTorch](#se

- [executorch-llama-tiktoken-rc3-0719.aar](https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-tiktoken-rc3-0719.aar) (SHASUM: c3e5d2a97708f033c2b1839a89f12f737e3bbbef)

2. Rename the downloaded AAR file to `executorch.aar` and move the file to `torchchat/edge/android/torchchat/app/libs/`. You may need to create directory `torchchat/edge/android/torchchat/app/libs/` if it does not exist.
2. Rename the downloaded AAR file to `executorch.aar` and move the file to `android/torchchat/app/libs/`. You may need to create directory `android/torchchat/app/libs/` if it does not exist.

3. Push the model and tokenizer file to your device. You can find the model file called `llama3.1.pte` in the current `torchchat` directory and the tokenizer file at `$(python3 torchchat.py where llama3.1)/tokenizer.model` path.
```
Expand Down
2 changes: 1 addition & 1 deletion scripts/android_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
run_android_instrumented_test
fi

adb install -t torchchat/edge/android/torchchat/app/build/outputs/apk/debug/app-debug.apk
adb install -t android/torchchat/app/build/outputs/apk/debug/app-debug.apk

if [ -z "${CI_ENV:-}" ]; then
read -p "Press enter to exit emulator and finish"
Expand Down

0 comments on commit cc5b74e

Please sign in to comment.