diff --git a/.github/workflows/android-perf.yml b/.github/workflows/android-perf.yml index 201fb3b7a8f..d3a16428b57 100644 --- a/.github/workflows/android-perf.yml +++ b/.github/workflows/android-perf.yml @@ -20,7 +20,7 @@ on: description: Models to be benchmarked required: false type: string - default: stories110M + default: llama devices: description: Target devices to run benchmark required: false @@ -36,7 +36,7 @@ on: description: Models to be benchmarked required: false type: string - default: stories110M + default: llama devices: description: Target devices to run benchmark required: false diff --git a/.github/workflows/apple-perf.yml b/.github/workflows/apple-perf.yml index ea88be441cb..df29e44eac1 100644 --- a/.github/workflows/apple-perf.yml +++ b/.github/workflows/apple-perf.yml @@ -20,7 +20,7 @@ on: description: Models to be benchmarked required: false type: string - default: stories110M + default: llama devices: description: Target devices to run benchmark required: false @@ -36,7 +36,7 @@ on: description: Models to be benchmarked required: false type: string - default: stories110M + default: llama devices: description: Target devices to run benchmark required: false diff --git a/extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2 b/extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2 index ae25a071e5c..1ed5ede738c 100644 --- a/extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2 +++ b/extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2 @@ -35,6 +35,10 @@ phases: test: commands: + # Fail the test if the model doesn't exist, doing it here so that AWS can report the status back + - echo "Verify model" + - curl -I --fail '{{ model_path }}' || false + # By default, the following ADB command is used by Device Farm to run your Instrumentation test. # Please refer to Android's documentation for more options on running instrumentation tests with adb: # https://developer.android.com/studio/test/command-line#run-tests-with-adb diff --git a/extension/benchmark/apple/Benchmark/default-ios-device-farm-appium-test-spec.yml.j2 b/extension/benchmark/apple/Benchmark/default-ios-device-farm-appium-test-spec.yml.j2 index 05816685638..a24c0257100 100644 --- a/extension/benchmark/apple/Benchmark/default-ios-device-farm-appium-test-spec.yml.j2 +++ b/extension/benchmark/apple/Benchmark/default-ios-device-farm-appium-test-spec.yml.j2 @@ -34,6 +34,11 @@ phases: # The test phase includes commands that run your test suite execution. test: commands: + # Fail the test if the model doesn't exist, doing it here so that AWS can report the status back + - echo "Verify model" + - curl -I --fail '{{ model_path }}' || false + + # Run the benchmark - xcodebuild test-without-building -destination id=$DEVICEFARM_DEVICE_UDID -xctestrun $DEVICEFARM_TEST_PACKAGE_PATH/*.xctestrun -derivedDataPath $DEVICEFARM_LOG_DIR # The post test phase includes are commands that are run after your tests are executed.