Skip to content

Commit 480d9a2

Browse files
authored
Update some link (meta-pytorch#201)
1 parent 22f462a commit 480d9a2

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

llm/android/LlamaDemo/app/src/androidTest/java/com/example/executorchllamademo/PresetSanityTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/ui/screens/SelectPresetModelScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import com.example.executorchllamademo.ui.theme.LocalAppColors
5858
import com.example.executorchllamademo.ui.viewmodel.ConfigLoadState
5959
import 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
6464
fun SelectPresetModelScreen(

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)