From 3f1098371652428dbfd5c8b6c4c563040346d13e Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Thu, 10 Oct 2024 11:51:08 -0700 Subject: [PATCH 1/2] Android artifact update to 241002 --- README.md | 2 +- torchchat/utils/scripts/android_example.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 251cb7fdc..db043874a 100644 --- a/README.md +++ b/README.md @@ -477,7 +477,7 @@ The following assumes you've completed the steps for [Setting up ExecuTorch](#se 1. Download the AAR file, which contains the Java library and corresponding JNI library, to build and run the app. - - [executorch-240919.aar](https://ossci-android.s3.amazonaws.com/executorch/main/executorch-240919.aar) (SHASUM: c8a5d38ead03bfa28ee8469f6355840ad0d182ba) + - [executorch-241002.aar](https://ossci-android.s3.amazonaws.com/executorch/release/executorch-241002/executorch.aar) (sha256sum: 2546feed560cef01cc7b47260c694311346196934f41900cac08e418f4a60096) 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. diff --git a/torchchat/utils/scripts/android_example.sh b/torchchat/utils/scripts/android_example.sh index 5ce76210f..ef5e04172 100755 --- a/torchchat/utils/scripts/android_example.sh +++ b/torchchat/utils/scripts/android_example.sh @@ -30,8 +30,8 @@ else exit -1 fi -LLAMA_AAR_URL="https://ossci-android.s3.amazonaws.com/executorch/main/executorch-240919.aar" -LLAMA_AAR_SHASUM="c8a5d38ead03bfa28ee8469f6355840ad0d182ba" +LLAMA_AAR_URL="https://ossci-android.s3.amazonaws.com/executorch/release/executorch-241002/executorch.aar" +LLAMA_AAR_SHASUM="2546feed560cef01cc7b47260c694311346196934f41900cac08e418f4a60096" mkdir -p ${TORCHCHAT_ROOT}/build/android From 08497186fdb1b1e6ef23bf55d4ac81ab82a09cdb Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Thu, 10 Oct 2024 11:55:34 -0700 Subject: [PATCH 2/2] Update aar name --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db043874a..b1dba0cc6 100644 --- a/README.md +++ b/README.md @@ -477,9 +477,9 @@ The following assumes you've completed the steps for [Setting up ExecuTorch](#se 1. Download the AAR file, which contains the Java library and corresponding JNI library, to build and run the app. - - [executorch-241002.aar](https://ossci-android.s3.amazonaws.com/executorch/release/executorch-241002/executorch.aar) (sha256sum: 2546feed560cef01cc7b47260c694311346196934f41900cac08e418f4a60096) + - [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/executorch-241002/executorch.aar) (sha256sum: 2546feed560cef01cc7b47260c694311346196934f41900cac08e418f4a60096) -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. Move the downloaded AAR 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. 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. ```