Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
buck-out/
cmake-out/
cmake-android-out/
cmake-out-android/
cmake-ios-out/
ethos-u-scratch/
executorch.egg-info
Expand Down
9 changes: 5 additions & 4 deletions examples/models/llama2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,15 @@ cmake --build cmake-out-android/examples/models/llama2 -j16 --config Release

**2.2 Upload model, tokenizer and llama runner binary to phone**
```
adb push <model.pte> /data/local/tmp/
adb push <tokenizer.bin> /data/local/tmp/
adb push cmake-out-android/examples/models/llama2/llama_main /data/local/tmp/
adb shell mkdir -p /data/local/tmp/llama
adb push <model.pte> /data/local/tmp/llama/
adb push <tokenizer.bin> /data/local/tmp/llama/
adb push cmake-out-android/examples/models/llama2/llama_main /data/local/tmp/llama/
```

**2.3 Run model**
```
adb shell "cd /data/local/tmp && ./llama_main --model_path <model.pte> --tokenizer_path <tokenizer.bin> --prompt "Once upon a time" --seq_len 120
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
```
## Step 6: Build iOS and/or Android apps

Expand Down