File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -183,14 +183,15 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
183
183
184
184
**2.2 Upload model, tokenizer and llama runner binary to phone**
185
185
```
186
- adb push <model.pte> /data/local/tmp/
187
- adb push <tokenizer.bin> /data/local/tmp/
188
- adb push cmake-out-android/examples/models/llama2/llama_main /data/local/tmp/
186
+ adb shell mkdir -p /data/local/tmp/llama
187
+ adb push <model.pte> /data/local/tmp/llama/
188
+ adb push <tokenizer.bin> /data/local/tmp/llama/
189
+ adb push cmake-out-android/examples/models/llama2/llama_main /data/local/tmp/llama/
189
190
```
190
191
191
192
**2.3 Run model**
192
193
```
193
- adb shell "cd /data/local/tmp && ./llama_main --model_path <model.pte> --tokenizer_path <tokenizer.bin> --prompt "Once upon a time" --seq_len 120
194
+ 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
194
195
```
195
196
## Step 6: Build iOS and/or Android apps
196
197
You can’t perform that action at this time.
0 commit comments