File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
buck-out /
3
3
cmake-out /
4
4
cmake-android-out /
5
+ cmake-out-android /
5
6
cmake-ios-out /
6
7
ethos-u-scratch /
7
8
executorch.egg-info
Original file line number Diff line number Diff line change @@ -208,14 +208,15 @@ cmake --build cmake-out-android/examples/models/llama2 -j16 --config Release
208
208
209
209
**2.2 Upload model, tokenizer and llama runner binary to phone**
210
210
```
211
- adb push <model.pte> /data/local/tmp/
212
- adb push <tokenizer.bin> /data/local/tmp/
213
- adb push cmake-out-android/examples/models/llama2/llama_main /data/local/tmp/
211
+ adb shell mkdir -p /data/local/tmp/llama
212
+ adb push <model.pte> /data/local/tmp/llama/
213
+ adb push <tokenizer.bin> /data/local/tmp/llama/
214
+ adb push cmake-out-android/examples/models/llama2/llama_main /data/local/tmp/llama/
214
215
```
215
216
216
217
**2.3 Run model**
217
218
```
218
- adb shell "cd /data/local/tmp && ./llama_main --model_path <model.pte> --tokenizer_path <tokenizer.bin> --prompt "Once upon a time" --seq_len 120
219
+ adb shell "cd /data/local/tmp/llama && ./llama_main --model_path <model.pte> --tokenizer_path <tokenizer.bin> --prompt "Once upon a time" --seq_len 120
219
220
```
220
221
## Step 6: Build iOS and/or Android apps
221
222
You can’t perform that action at this time.
0 commit comments