Skip to content

Commit 2d2ec34

Browse files
Editorial
1 parent f1dccbd commit 2d2ec34

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/5-Run-Benchmark-on-Android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Cross-compile Llama runner to run on Android using the steps below.
1212

1313
### 1. Set Android NDK
1414

15-
Set the environment variable to point to the Android NDK.
15+
Set the environment variable to point to the Android NDK:
1616

1717
``` bash
1818
export ANDROID_NDK=$ANDROID_HOME/ndk/28.0.12433566/
@@ -122,4 +122,4 @@ I 00:00:09.624432 executorch:stats.h:154] Time to first generated token: 0.2020
122122
I 00:00:09.624434 executorch:stats.h:161] Sampling time over 127 tokens: 0.110000 (seconds)
123123
```
124124
125-
You have successfully run the llama 3.1 1B model on your Android smartphone with ExecuTorch using KleidiAI kernels.
125+
You have successfully run the Llama 3.1 1B model on your Android smartphone with ExecuTorch using KleidiAI kernels.

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/6-Build-Android-Chat-App.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ You can use the Android demo application included in ExecuTorch repository [Llam
2121
```
2222

2323
{{% notice Note %}}
24-
<path_to_android_ndk> is the root for the NDK, which is usually under ~/Library/Android/sdk/ndk/XX.Y.ZZZZZ for macOS, and contains NOTICE and README.md. Make sure you can confirm <path_to_android_ndk>/build/cmake/android.toolchain.cmake is available for CMake to cross-compile.
24+
<path_to_android_ndk> is the root for the NDK, which is usually under ~/Library/Android/sdk/ndk/XX.Y.ZZZZZ for macOS, and contains NOTICE and README.md.
25+
Make sure you can confirm <path_to_android_ndk>/build/cmake/android.toolchain.cmake is available for CMake to cross-compile.
2526
{{% /notice %}}
2627

27-
3. (Optional) If you need to use tiktoken as the tokenizer (for LLaMA 3), set `EXECUTORCH_USE_TIKTOKEN=ON` and CMake uses it as the tokenizer. If you run other models like LLaMA 2, skip this step.
28+
3. (Optional) If you need to use tiktoken as the tokenizer (for LLama 3), set `EXECUTORCH_USE_TIKTOKEN=ON`, and CMake uses it as the tokenizer. If you run other models such as LLama 2, skip this step.
2829

2930
``` bash
30-
export EXECUTORCH_USE_TIKTOKEN=ON # Only for LLaMA3
31+
export EXECUTORCH_USE_TIKTOKEN=ON # Only for LLama3
3132
```
3233

3334
4. Run the following commands to set up the required JNI library:
@@ -83,7 +84,7 @@ If the files are not on the device, use the device explorer to copy them.
8384
8485
This is the recommended option.
8586
86-
1. Open Android Studio and select Open an existing Android Studio project and navigate to open `examples/demo-apps/android/LlamaDemo`.
87+
1. Open Android Studio and select **Open an existing Android Studio project** and navigate to open `examples/demo-apps/android/LlamaDemo`.
8788
8889
2. Run the app (^R). This builds and launches the app on the phone.
8990

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/_review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ review:
2020
- Llama is a family of large language models that uses publicly-available data for training.
2121
correct_answer: 3
2222
explanation: >
23-
LLaMA is a state-of-the-art foundational large language model designed to enable researchers to advance their work in this subfield of AI.
23+
LLama is a state-of-the-art foundational large language model designed to enable researchers to advance their work in this subfield of AI.
2424
2525
- questions:
2626
question: >

0 commit comments

Comments
 (0)