Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PresetSanityTest {

companion object {
private const val TAG = "PresetSanityTest"
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"
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"
}

@get:Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import com.example.executorchllamademo.ui.theme.LocalAppColors
import com.example.executorchllamademo.ui.viewmodel.ConfigLoadState
import com.example.executorchllamademo.ui.viewmodel.ModelDownloadState

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"
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"

@Composable
fun SelectPresetModelScreen(
Expand Down
1 change: 1 addition & 0 deletions llm/android/LlamaDemo/run_instrumentation_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ python -m pytorch_tokenizers.tools.llama2c.convert -t tokenizer.model -o tokeniz
adb mkdir -p /data/local/tmp/llama
adb push stories110m_h.pte /data/local/tmp/llama
adb push tokenizer.bin /data/local/tmp/llama
adb shell sync

1 change: 1 addition & 0 deletions llm/android/LlamaDemo/scripts/run-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ for file in /tmp/llama_models/*; do
while [ $retry -lt $max_retries ] && [ "$success" = "false" ]; do
# Run push (ignore exit code, verify by checking file on device)
timeout $timeout_secs adb push "$file" /data/local/tmp/llama/ || true
adb shell sync

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