From e0b6adbf68c2abc257409c3cd68d3de0f7ef5864 Mon Sep 17 00:00:00 2001 From: RJ Ascani Date: Tue, 5 May 2026 10:21:17 -0700 Subject: [PATCH] ios: drop deprecated MPS export step from both iOS scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The iOS demo's `testV3WithMPSBackend` was removed in meta-pytorch/executorch-examples (companion change), since the MPS backend is deprecated for removal in ExecuTorch 1.4 (#18425) and the test had been intermittently failing on the macos-14-xlarge runner pool on what looks like fp16 numerical drift rather than an executorch regression — the MPS runtime in pytorch/executorch hasn't materially changed since the deprecation. Remove the matching `mps_example.py` export step from the two iOS demo build scripts (the CI variant `.ci/scripts/test_ios_ci.sh` and the developer-facing `scripts/test_ios.sh`) so neither produces an `.pte` that nothing consumes. Out of scope here: the demo app's MPS enum case and `mv3_mps_float16.pte` artifact in the executorch-examples build workflow — those want their own follow-up cleanup once MPS is fully removed in 1.4. Authored with Claude Code. --- .ci/scripts/test_ios_ci.sh | 1 - scripts/test_ios.sh | 1 - 2 files changed, 2 deletions(-) diff --git a/.ci/scripts/test_ios_ci.sh b/.ci/scripts/test_ios_ci.sh index 46c3f71f021..901db05013f 100755 --- a/.ci/scripts/test_ios_ci.sh +++ b/.ci/scripts/test_ios_ci.sh @@ -47,7 +47,6 @@ say "Exporting Models" python3 -m examples.portable.scripts.export --model_name="$MODEL_NAME" --segment_alignment=0x4000 python3 -m examples.apple.coreml.scripts.export --model_name="$MODEL_NAME" -python3 -m examples.apple.mps.scripts.mps_example --model_name="$MODEL_NAME" python3 -m examples.xnnpack.aot_compiler --model_name="$MODEL_NAME" --delegate mkdir -p "$APP_PATH/Resources/Models/MobileNet/" diff --git a/scripts/test_ios.sh b/scripts/test_ios.sh index 599ae1683a4..0c6cf85652b 100755 --- a/scripts/test_ios.sh +++ b/scripts/test_ios.sh @@ -64,7 +64,6 @@ say "Exporting Models" python3 -m examples.portable.scripts.export --model_name="$MODEL_NAME" python3 -m examples.apple.coreml.scripts.export --model_name="$MODEL_NAME" -python3 -m examples.apple.mps.scripts.mps_example --model_name="$MODEL_NAME" python3 -m examples.xnnpack.aot_compiler --model_name="$MODEL_NAME" --delegate mkdir -p "$APP_PATH/Resources/Models/MobileNet/"