Skip to content

Commit 3e256ff

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Use unified path /data/local/tmp/llama (#2899)
Summary: Pull Request resolved: #2899 Reviewed By: mergennachin Differential Revision: D55829514 Pulled By: kirklandsign fbshipit-source-id: 3e5d222b969c7b13fc8902dbda738edb3cb898dc
1 parent d3326a2 commit 3e256ff

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
buck-out/
33
cmake-out/
44
cmake-android-out/
5+
cmake-out-android/
56
cmake-ios-out/
67
ethos-u-scratch/
78
executorch.egg-info

examples/models/llama2/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,15 @@ cmake --build cmake-out-android/examples/models/llama2 -j16 --config Release
208208
209209
**2.2 Upload model, tokenizer and llama runner binary to phone**
210210
```
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/
214215
```
215216
216217
**2.3 Run model**
217218
```
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
219220
```
220221
## Step 6: Build iOS and/or Android apps
221222

0 commit comments

Comments
 (0)