Skip to content

Commit 506fb79

Browse files
Editorial update
1 parent dc89131 commit 506fb79

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/1-dev-env-setup.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ The first step is to prepare a development environment with the required softwar
1616
- Android NDK version 28.0.12433566.
1717
- Java 17 JDK.
1818
- Git.
19-
- Python 3.10 or later (these instructions have been tested with 3.10 and 3.12)
19+
- Python 3.10 or later (these instructions have been tested with 3.10 and 3.12).
2020

21-
The instructions assume macOS with Apple Silicon, an x86 Debian, or Ubuntu Linux machine with at least 16GB of RAM.
21+
The instructions assume macOS with Apple Silicon, an x86 Debian, or an Ubuntu Linux machine, with at least 16GB of RAM.
2222

2323
## Install Android Studio and Android NDK
2424

2525
Follow these steps to install and configure Android Studio:
2626

2727
1. Download and install the latest version of [Android Studio](https://developer.android.com/studio/).
2828

29-
2. Start Android Studio and open the `Settings` dialog.
29+
2. Start Android Studio and open the **Settings** dialog.
3030

31-
3. Navigate to `Languages & Frameworks -> Android SDK`.
31+
3. Navigate to **Languages & Frameworks**, then **Android SDK**.
3232

33-
4. In the `SDK Platforms` tab, check `Android 14.0 ("UpsideDownCake")`.
33+
4. In the **SDK Platforms** tab, check **Android 14.0 ("UpsideDownCake")**.
3434

35-
Next, install the specific version of the Android NDK that you need by first installing the Android command line tools:
35+
Next, install the specific version of the Android NDK that you require by first installing the Android command line tools:
3636

3737
Linux:
3838

@@ -52,7 +52,7 @@ Unzip the Android command line tools:
5252
unzip commandlinetools.zip -d android-sdk
5353
```
5454

55-
Install the NDK in the directory that Android Studio installed the SDK. This is generally `~/Library/Android/sdk` by default. Set the requirement environment variables:
55+
Install the NDK in the same directory that Android Studio installed the SDK. This is generally `~/Library/Android/sdk` by default. Set the requirement environment variables:
5656

5757
```
5858
export ANDROID_HOME="$(realpath ~/Library/Android/sdk)"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ python3.10 -m venv executorch
1919
source executorch/bin/activate
2020
```
2121

22-
The prompt of your terminal has (executorch) as a prefix to indicate the virtual environment is active.
22+
The prompt of your terminal has `executorch` as a prefix to indicate the virtual environment is active.
2323

2424
### Option 2: Create a Conda virtual environment
2525

2626
Install Miniconda on your development machine by following the [Installing conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html) instructions.
2727

28-
Once `conda` is installed create the environment:
28+
Once `conda` is installed, create the environment:
2929

3030
```bash
3131
conda create -yn executorch python=3.10.0
@@ -46,4 +46,4 @@ git submodule update --init
4646
./examples/models/llama/install_requirements.sh
4747
```
4848

49-
When these scripts finish successfully, ExecuTorch is all set up. That means it's time to dive into the world of Llama models!
49+
When these scripts finish successfully, ExecuTorch is set up. That means it's time to dive into the world of Llama models!

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/3-Understanding-LLaMA-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The results are for two different groupsizes, with max_seq_len 2048, and 1000 sa
4343
|Llama 2 7B | 9.2 | 10.2 | 10.7
4444
|Llama 3 8B | 7.9 | 9.4 | 9.7
4545

46-
Note that groupsize less than 128 was not enabled, since such a model was still too large. This is because current efforts have focused on enabling FP32, and support for FP16 is under way.
46+
Note that groupsize less than 128 was not enabled in this example, since the model was still too large. This is because current efforts have focused on enabling FP32, and support for FP16 is under way.
4747

4848
What this implies for model size is:
4949

content/learning-paths/smartphones-and-mobile/Build-Llama3-Chat-Android-App-Using-Executorch-And-XNNPACK/4-Prepare-LLaMA-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: learningpathall
88

99
## Download and export the Llama 3.2 1B model
1010

11-
To get started with Llama 3, you obtain the pre-trained parameters by visiting [Meta's Llama Downloads](https://llama.meta.com/llama-downloads/) page. Request the access by filling out your details and read through and accept the Responsible Use Guide. This grants you a license and a download link which is valid for 24 hours. The Llama 3.2 1B model is used for this part, but the same instructions apply for other options as well with minimal modification.
11+
To get started with Llama 3, you can obtain the pre-trained parameters by visiting [Meta's Llama Downloads](https://llama.meta.com/llama-downloads/) page. Request access by filling out your details, and read through and accept the Responsible Use Guide. This grants you a license and a download link which is valid for 24 hours. The Llama 3.2 1B model is used for this exercise, but the same instructions apply to other options as well with minimal modification.
1212

1313
Install the `llama-stack` package from `pip`.
1414
```bash

0 commit comments

Comments
 (0)