From 814fa571501a989e569038411cf7156153fb66e0 Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Mon, 11 Aug 2025 15:23:28 -0700 Subject: [PATCH 1/5] Update maven and swiftpm version to 0.7.0 --- docs/source/getting-started.md | 2 +- docs/source/using-executorch-android.md | 12 ++++++------ .../apple_ios/LLaMA/docs/delegates/mps_README.md | 2 +- .../apple_ios/LLaMA/docs/delegates/xnnpack_README.md | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/source/getting-started.md b/docs/source/getting-started.md index ce9283dfa2b..2bf53ab2213 100644 --- a/docs/source/getting-started.md +++ b/docs/source/getting-started.md @@ -124,7 +124,7 @@ To add the library to your app, add the following dependency to gradle build rul ``` # app/build.gradle.kts dependencies { - implementation("org.pytorch:executorch-android:0.6.0") + implementation("org.pytorch:executorch-android:0.7.0") } # See latest available versions in https://mvnrepository.com/artifact/org.pytorch/executorch-android diff --git a/docs/source/using-executorch-android.md b/docs/source/using-executorch-android.md index 8ac179d325d..7e52fc0d990 100644 --- a/docs/source/using-executorch-android.md +++ b/docs/source/using-executorch-android.md @@ -28,17 +28,17 @@ The AAR library can be used for generic Android device with arm64-v8a or x86_64 ExecuTorch is available on [Maven Central](https://mvnrepository.com/artifact/org.pytorch/executorch-android). -Simply add the target [`org.pytorch:executorch-android:0.6.0-rc1`](https://repo.maven.apache.org/maven2/org/pytorch/executorch-android/0.6.0-rc1/) to your Android app dependency (build.gradle), and build your app. +Simply add the target [`org.pytorch:executorch-android:0.7.0`](https://repo.maven.apache.org/maven2/org/pytorch/executorch-android/0.7.0/) to your Android app dependency (build.gradle), and build your app. For example: ``` # app/build.gradle.kts dependencies { - implementation("org.pytorch:executorch-android:0.6.0-rc1") + implementation("org.pytorch:executorch-android:0.7.0") } ``` -Note: If you want to use release v0.5.0, please use dependency `org.pytorch:executorch-android:0.5.1`. +Note: If you want to use release v0.6.0, please use dependency `org.pytorch:executorch-android:0.6.0`. Click the screenshot below to watch the *demo video* on how to add the package and run a simple ExecuTorch model with Android Studio. @@ -53,8 +53,8 @@ You can also directly specify an AAR file in the app. We upload pre-built AAR to | Version | AAR | SHASUMS | | ------- | --- | ------- | -| [v0.6.0-rc1](https://github.com/pytorch/executorch/releases/tag/v0.6.0-rc1) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar.sha256sums) | -| [v0.5.0](https://github.com/pytorch/executorch/releases/tag/v0.5.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.5.0-rc3/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.5.0-rc3/executorch.aar.sha256sums) | +| [v0.7.0](https://github.com/pytorch/executorch/releases/tag/v0.7.0-rc5) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.7.0-rc5/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.7.0-rc5/executorch.aar.sha256sums) | +| [v0.6.0](https://github.com/pytorch/executorch/releases/tag/v0.6.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar.sha256sums) | ### Snapshots from main branch @@ -90,7 +90,7 @@ implementation("com.facebook.fbjni:fbjni:0.5.1") In your app working directory, such as executorch/examples/demo-apps/android/LlamaDemo, ``` mkdir -p app/libs -curl https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar -o app/libs/executorch.aar +curl https://ossci-android.s3.amazonaws.com/executorch/release/v0.7.0/executorch.aar -o app/libs/executorch.aar ``` And include it in gradle: diff --git a/examples/demo-apps/apple_ios/LLaMA/docs/delegates/mps_README.md b/examples/demo-apps/apple_ios/LLaMA/docs/delegates/mps_README.md index e5cfb59c62b..f13b79fd5dd 100644 --- a/examples/demo-apps/apple_ios/LLaMA/docs/delegates/mps_README.md +++ b/examples/demo-apps/apple_ios/LLaMA/docs/delegates/mps_README.md @@ -78,7 +78,7 @@ sudo /Applications/CMake.app/Contents/bin/cmake-gui --install The prebuilt ExecuTorch runtime, backend, and kernels are available as a Swift PM package. ### Xcode -Open the project in Xcode.In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the ExecuTorch repo into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version, e.g., “swiftpm-0.6.0”, or a branch name in format "swiftpm-." (e.g. "swiftpm-0.7.0-20250401") for a nightly build on a specific date. +Open the project in Xcode.In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the ExecuTorch repo into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version, e.g., “swiftpm-0.7.0”, or a branch name in format "swiftpm-." (e.g. "swiftpm-0.7.0-20250401") for a nightly build on a specific date. Link your binary with the ExecuTorch runtime and any backends or kernels used by the exported ML model. It is recommended to link the core runtime to the components that use ExecuTorch directly, and link kernels and backends against the main app target. diff --git a/examples/demo-apps/apple_ios/LLaMA/docs/delegates/xnnpack_README.md b/examples/demo-apps/apple_ios/LLaMA/docs/delegates/xnnpack_README.md index 6ad21c48a52..a44ad7f4ad3 100644 --- a/examples/demo-apps/apple_ios/LLaMA/docs/delegates/xnnpack_README.md +++ b/examples/demo-apps/apple_ios/LLaMA/docs/delegates/xnnpack_README.md @@ -121,7 +121,7 @@ While we recommended using the latest prebuilt package pre-configured with the X Go to Project Navigator, click on LLaMA. `Project --> LLaMA --> Package Dependencies`, and update the package dependencies to any of the available options below: - Branch --> swiftpm-0.7.0.20250401 (amend to match the latest nightly build) -- Branch --> swiftpm-0.6.0 +- Branch --> swiftpm-0.7.0 ### 2.2 Manually build the package locally and link them From ae7d614b5d9aadda58b9123a1642084ba0022941 Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Mon, 11 Aug 2025 15:31:48 -0700 Subject: [PATCH 2/5] Update --- docs/source/using-executorch-android.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/using-executorch-android.md b/docs/source/using-executorch-android.md index 7e52fc0d990..894ea149edd 100644 --- a/docs/source/using-executorch-android.md +++ b/docs/source/using-executorch-android.md @@ -53,7 +53,7 @@ You can also directly specify an AAR file in the app. We upload pre-built AAR to | Version | AAR | SHASUMS | | ------- | --- | ------- | -| [v0.7.0](https://github.com/pytorch/executorch/releases/tag/v0.7.0-rc5) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.7.0-rc5/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.7.0-rc5/executorch.aar.sha256sums) | +| [v0.7.0](https://github.com/pytorch/executorch/releases/tag/v0.7.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/0.7.0/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/0.7.0/executorch.aar.sha256sums) | | [v0.6.0](https://github.com/pytorch/executorch/releases/tag/v0.6.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar.sha256sums) | ### Snapshots from main branch From 7f89642b9a6665325a375ea78398939ae8e08cce Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Mon, 11 Aug 2025 15:34:02 -0700 Subject: [PATCH 3/5] More update --- docs/source/using-executorch-android.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/using-executorch-android.md b/docs/source/using-executorch-android.md index 894ea149edd..7b16bb3c3b7 100644 --- a/docs/source/using-executorch-android.md +++ b/docs/source/using-executorch-android.md @@ -90,7 +90,7 @@ implementation("com.facebook.fbjni:fbjni:0.5.1") In your app working directory, such as executorch/examples/demo-apps/android/LlamaDemo, ``` mkdir -p app/libs -curl https://ossci-android.s3.amazonaws.com/executorch/release/v0.7.0/executorch.aar -o app/libs/executorch.aar +curl https://ossci-android.s3.amazonaws.com/executorch/release/0.7.0/executorch.aar -o app/libs/executorch.aar ``` And include it in gradle: From e850ff2b1405f4f5d5657635a271ac61b798c9d1 Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Mon, 11 Aug 2025 15:36:35 -0700 Subject: [PATCH 4/5] More update --- docs/source/using-executorch-android.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/using-executorch-android.md b/docs/source/using-executorch-android.md index 7b16bb3c3b7..b5cba74bb5b 100644 --- a/docs/source/using-executorch-android.md +++ b/docs/source/using-executorch-android.md @@ -38,7 +38,7 @@ dependencies { } ``` -Note: If you want to use release v0.6.0, please use dependency `org.pytorch:executorch-android:0.6.0`. +Note: If you want to use release v0.5.0, please use dependency `org.pytorch:executorch-android:0.5.1`. Click the screenshot below to watch the *demo video* on how to add the package and run a simple ExecuTorch model with Android Studio. From d53f8957729f3dab496d83cc1557658b4856aca0 Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Mon, 11 Aug 2025 15:42:57 -0700 Subject: [PATCH 5/5] Even more updates --- docs/source/using-executorch-android.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/using-executorch-android.md b/docs/source/using-executorch-android.md index b5cba74bb5b..1bd19cafca8 100644 --- a/docs/source/using-executorch-android.md +++ b/docs/source/using-executorch-android.md @@ -54,7 +54,8 @@ You can also directly specify an AAR file in the app. We upload pre-built AAR to | Version | AAR | SHASUMS | | ------- | --- | ------- | | [v0.7.0](https://github.com/pytorch/executorch/releases/tag/v0.7.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/0.7.0/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/0.7.0/executorch.aar.sha256sums) | -| [v0.6.0](https://github.com/pytorch/executorch/releases/tag/v0.6.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar.sha256sums) | +| [v0.6.0-rc1](https://github.com/pytorch/executorch/releases/tag/v0.6.0-rc1) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.6.0-rc1/executorch.aar.sha256sums) | +| [v0.5.0](https://github.com/pytorch/executorch/releases/tag/v0.5.0) | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/v0.5.0-rc3/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/v0.5.0-rc3/executorch.aar.sha256sums) | ### Snapshots from main branch