Skip to content

Commit acc5ebd

Browse files
committed
Add adb shell sync
1 parent 90c4914 commit acc5ebd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

llm/android/LlamaDemo/run_instrumentation_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ python -m pytorch_tokenizers.tools.llama2c.convert -t tokenizer.model -o tokeniz
1818
adb mkdir -p /data/local/tmp/llama
1919
adb push stories110m_h.pte /data/local/tmp/llama
2020
adb push tokenizer.bin /data/local/tmp/llama
21+
adb shell sync
2122

llm/android/LlamaDemo/scripts/run-ci-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ for file in /tmp/llama_models/*; do
5050
while [ $retry -lt $max_retries ] && [ "$success" = "false" ]; do
5151
# Run push (ignore exit code, verify by checking file on device)
5252
timeout $timeout_secs adb push "$file" /data/local/tmp/llama/ || true
53+
adb shell sync
5354

5455
# Verify file was pushed by checking it exists and has correct size
5556
device_size=$(adb shell "stat -c%s /data/local/tmp/llama/$filename 2>/dev/null || echo 0" | tr -d '\r')

0 commit comments

Comments
 (0)