Skip to content

Commit fd9291b

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Update docs (#2717)
Summary: Pull Request resolved: #2717 Differential Revision: D55435256
1 parent cf83964 commit fd9291b

File tree

1 file changed

+3
-11
lines changed
  • examples/demo-apps/android/LlamaDemo

1 file changed

+3
-11
lines changed

examples/demo-apps/android/LlamaDemo/README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ adb push model.pte /data/local/tmp/llama
1414
adb push tokenizer.bin /data/local/tmp/llama
1515
```
1616

17+
The demo app searches in `/data/local/tmp/llama` for .pte and .bin files as LLAMA model and tokenizer.
18+
1719
## Build JNI library
1820
1. Open a terminal window and navigate to the root directory of the `executorch`.
1921
2. Set the following environment variables:
@@ -48,23 +50,13 @@ cmake .. -DBUCK2="$BUCK" \
4850
cmake --build . -j50
4951
popd
5052
```
51-
6.
52-
Copy the built library to your app:
53+
6. Copy the built library to your app:
5354
```
5455
JNI_LIBS_PATH="examples/demo-apps/android/LlamaDemo/app/src/main/jniLibs"
5556
mkdir -p "${JNI_LIBS_PATH}/${ANDROID_ABI}"
5657
cp cmake-out/extension/android/libexecutorch_llama_jni.so "${JNI_LIBS_PATH}/${ANDROID_ABI}/"
5758
```
5859

59-
## Build Java library
60-
The Java part of the ExecuTorch library can be built with gradlew:
61-
```
62-
pushd extension/android
63-
./gradlew build
64-
popd
65-
```
66-
In the android app, we set up the relative path to the built aar, so no further action is needed.
67-
6860
## Build Java app
6961
1. Open Android Studio and select "Open an existing Android Studio project" to open examples/demo-apps/android/LlamaDemo.
7062
2. Run the app (^R).

0 commit comments

Comments
 (0)