File tree Expand file tree Collapse file tree
androidTest/java/com/example/executorchllamademo
main/java/com/example/executorchllamademo/ui/screens Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class PresetSanityTest {
4040
4141 companion object {
4242 private const val TAG = " PresetSanityTest"
43- private const val DEFAULT_CONFIG_URL = " https://raw.githubusercontent.com/meta-pytorch/executorch-examples/889ccc6e88813cbf03775889beed29b793d0c8db /llm/android/LlamaDemo/app/src/main/assets/preset_models.json"
43+ private const val DEFAULT_CONFIG_URL = " https://raw.githubusercontent.com/meta-pytorch/executorch-examples/615fa601fd75493ab0e1828c14bbd24f83cd5133 /llm/android/LlamaDemo/app/src/main/assets/preset_models.json"
4444 }
4545
4646 @get:Rule
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ import com.example.executorchllamademo.ui.theme.LocalAppColors
5858import com.example.executorchllamademo.ui.viewmodel.ConfigLoadState
5959import com.example.executorchllamademo.ui.viewmodel.ModelDownloadState
6060
61- private const val DEFAULT_CONFIG_URL = " https://raw.githubusercontent.com/meta-pytorch/executorch-examples/889ccc6e88813cbf03775889beed29b793d0c8db /llm/android/LlamaDemo/app/src/main/assets/preset_models.json"
61+ private const val DEFAULT_CONFIG_URL = " https://raw.githubusercontent.com/meta-pytorch/executorch-examples/615fa601fd75493ab0e1828c14bbd24f83cd5133 /llm/android/LlamaDemo/app/src/main/assets/preset_models.json"
6262
6363@Composable
6464fun SelectPresetModelScreen (
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