File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,4 +18,5 @@ python -m pytorch_tokenizers.tools.llama2c.convert -t tokenizer.model -o tokeniz
1818adb mkdir -p /data/local/tmp/llama
1919adb push stories110m_h.pte /data/local/tmp/llama
2020adb push tokenizer.bin /data/local/tmp/llama
21+ adb shell sync
2122
Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments