Skip to content

Commit 53344db

Browse files
authored
Update to use ET prebuilt Android library on 20240719 (#929)
* Update to use ET prebuilt Android library on 20240719 * Use rc3 and fix android build
1 parent 2853f4b commit 53344db

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,20 +348,20 @@ Currently the tokenizer is built at compile time, so you need to re-build the ap
348348
> [!NOTE]
349349
> The script to build the AAR can be found [here](https://github.com/pytorch/executorch/blob/main/build/build_android_library.sh). If you need to tweak with the tokenizer or runtime (for example use your own tokenizer or runtime library), you can modify the ExecuTorch code and use that script to build the AAR library.
350350
351-
[executorch-llama-torchchat-bpe.aar](https://ossci-android.s3.amazonaws.com/executorch/release/0.3/executorch-llama-bpe-rc1.aar) (SHASUM: 673af4a1338a93d47369b68ec0d52b8ea7f983a2)
351+
[executorch-llama-bpe-rc3-0719.aar](https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-bpe-rc3-0719.aar) (SHASUM: d5fe81d9a4700c36b50ae322e6bf34882134edb0)
352352
353-
[executorch-llama-torchchat-tiktoken.aar](https://ossci-android.s3.amazonaws.com/executorch/release/0.3/executorch-llama-tiktoken-rc1.aar) (SHASUM: 575190205dbb1ee932a277b50520dc4260a9a9cf)
353+
[executorch-llama-tiktoken-rc3-0719.aar](https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-tiktoken-rc3-0719.aar) (SHASUM: c3e5d2a97708f033c2b1839a89f12f737e3bbbef)
354354
355355
For BPE tokenizer:
356356
```
357-
curl https://ossci-android.s3.amazonaws.com/executorch/release/0.3/executorch-llama-bpe-rc1.aar -o android/Torchchat/app/libs/executorch.aar --create-dirs
358-
echo "673af4a1338a93d47369b68ec0d52b8ea7f983a2 android/Torchchat/app/libs/executorch.aar" | shasum --check
357+
curl https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-bpe-rc3-0719.aar -o android/Torchchat/app/libs/executorch.aar --create-dirs
358+
echo "d5fe81d9a4700c36b50ae322e6bf34882134edb0 android/Torchchat/app/libs/executorch.aar" | shasum --check
359359
```
360360
361361
For tiktoken tokenizer:
362362
```
363-
curl https://ossci-android.s3.amazonaws.com/executorch/release/0.3/executorch-llama-tiktoken-rc1.aar -o android/Torchchat/app/libs/executorch.aar --create-dirs
364-
echo "575190205dbb1ee932a277b50520dc4260a9a9cf android/Torchchat/app/libs/executorch.aar" | shasum --check
363+
curl https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-tiktoken-rc3-0719.aar -o android/Torchchat/app/libs/executorch.aar --create-dirs
364+
echo "c3e5d2a97708f033c2b1839a89f12f737e3bbbef android/Torchchat/app/libs/executorch.aar" | shasum --check
365365
```
366366
367367
You also need to push the model and tokenizer file to your device. Please refer to the docs above on generating the pte and bin file, or use E2E script (see section below) to generate and push the file.

android/Torchchat/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<!--
23
Copyright (c) Meta Platforms, Inc. and affiliates.
34
All rights reserved.
45
56
This source code is licensed under the BSD-style license found in the
67
LICENSE file in the root directory of this source tree.
78
-->
8-
<?xml version="1.0" encoding="utf-8"?>
99
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
1010
xmlns:tools="http://schemas.android.com/tools">
1111

scripts/android_example.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ else
3131
fi
3232

3333
if [ "${USE_TIKTOKEN:-OFF}" == "ON" ]; then
34-
LLAMA_AAR_URL="https://ossci-android.s3.amazonaws.com/executorch/release/0.3/executorch-llama-tiktoken-rc1.aar"
35-
LLAMA_AAR_SHASUM="575190205dbb1ee932a277b50520dc4260a9a9cf"
34+
LLAMA_AAR_URL="https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-tiktoken-rc3-0719.aar"
35+
LLAMA_AAR_SHASUM="c3e5d2a97708f033c2b1839a89f12f737e3bbbef"
3636
else
37-
LLAMA_AAR_URL="https://ossci-android.s3.amazonaws.com/executorch/release/0.3/executorch-llama-bpe-rc1.aar"
38-
LLAMA_AAR_SHASUM="673af4a1338a93d47369b68ec0d52b8ea7f983a2"
37+
LLAMA_AAR_URL="https://ossci-android.s3.amazonaws.com/executorch/main/executorch-llama-bpe-rc3-0719.aar"
38+
LLAMA_AAR_SHASUM="d5fe81d9a4700c36b50ae322e6bf34882134edb0"
3939
fi
4040

4141
mkdir -p ${TORCHCHAT_ROOT}/build/android
@@ -162,4 +162,4 @@ adb install -t android/Torchchat/app/build/outputs/apk/debug/app-debug.apk
162162

163163
if [ -z "${CI_ENV:-}" ]; then
164164
read -p "Press enter to exit emulator and finish"
165-
else
165+
fi

0 commit comments

Comments
 (0)