File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ LLAMA_JNI_ARM64_URL="https://ossci-android.s3.us-west-1.amazonaws.com/executorch
29
29
LLAMA_JNI_X86_64_URL=" https://ossci-android.s3.us-west-1.amazonaws.com/executorch/release/0.2/x86_64/libexecutorch_llama_jni.so"
30
30
LLAMA_JAR_URL=" https://ossci-android.s3.us-west-1.amazonaws.com/executorch/release/0.2/executorch.jar"
31
31
32
+ LLAMA_JNI_ARM64_SHASUM=" 38788e2a3318075ccdd6e337e4c56f82bbbce06f"
33
+ LLAMA_JNI_X86_64_SHASUM=" cdc98d468b8e48c8784408fcada8177e6bc5f981"
34
+ LLAMA_JAR_SHASUM=" fb9ee00d028ef23a48cb8958638a5010ba849ccf"
35
+
32
36
mkdir -p ${TORCHCHAT_ROOT} /build/android
33
37
34
38
setup_java () {
@@ -78,16 +82,19 @@ setup_android_ndk() {
78
82
download_jar_library () {
79
83
mkdir -p ${TORCHCHAT_ROOT} /build/android
80
84
curl " ${LLAMA_JAR_URL} " -o ${TORCHCHAT_ROOT} /build/android/executorch.jar
85
+ echo " ${LLAMA_JAR_SHASUM} ${TORCHCHAT_ROOT} /build/android/executorch.jar" | shasum --check --status
81
86
}
82
87
83
88
download_jni_library () {
84
89
mkdir -p ${TORCHCHAT_ROOT} /build/android/arm64-v8a
85
90
mkdir -p ${TORCHCHAT_ROOT} /build/android/x86_64
86
91
if [ ! -f ${TORCHCHAT_ROOT} /build/android/arm64-v8a/libexecutorch_llama_jni.so ]; then
87
92
curl " ${LLAMA_JNI_ARM64_URL} " -o ${TORCHCHAT_ROOT} /build/android/arm64-v8a/libexecutorch_llama_jni.so
93
+ echo " ${LLAMA_JNI_ARM64_SHASUM} ${TORCHCHAT_ROOT} /build/android/arm64-v8a/libexecutorch_llama_jni.so" | shasum --check --status
88
94
fi
89
95
if [ ! -f ${TORCHCHAT_ROOT} /build/android/x86_64/libexecutorch_llama_jni.so ]; then
90
96
curl " ${LLAMA_JNI_X86_64_URL} " -o ${TORCHCHAT_ROOT} /build/android/x86_64/libexecutorch_llama_jni.so
97
+ echo " ${LLAMA_JNI_X86_64_SHASUM} ${TORCHCHAT_ROOT} /build/android/x86_64/libexecutorch_llama_jni.so" | shasum --check --status
91
98
fi
92
99
}
93
100
You can’t perform that action at this time.
0 commit comments