Skip to content

Commit db19480

Browse files
committed
Merge branch 'main' into documentation_updates
2 parents 73148e7 + 8dfcb01 commit db19480

File tree

7 files changed

+28
-9
lines changed

7 files changed

+28
-9
lines changed

backends/xnnpack/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@ create an issue on [github](https://www.github.com/pytorch/executorch/issues).
131131

132132

133133
## See Also
134-
For more information about the XNNPACK Delegate, please check out the following resources:
135-
- [ExecuTorch XNNPACK Delegate](https://pytorch.org/executorch/0.2/native-delegates-executorch-xnnpack-delegate.html)
136-
- [Building and Running ExecuTorch with XNNPACK Backend](https://pytorch.org/executorch/0.2/native-delegates-executorch-xnnpack-delegate.html)
134+
For more information about the XNNPACK Backend, please check out the following resources:
135+
- [XNNPACK Backend](https://pytorch.org/executorch/main/backends-xnnpack.html)
136+
- [XNNPACK Backend Internals](https://pytorch.org/executorch/main/backend-delegates-xnnpack-reference.html)

docs/source/getting-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ ExecuTorch provides hardware acceleration for a wide variety of hardware. The mo
4343
For mobile use cases, consider using XNNPACK for Android and Core ML or XNNPACK for iOS as a first step. See [Hardware Backends](backends-overview.md) for more information.
4444

4545
### Exporting
46-
Exporting is done using Python APIs. ExecuTorch provides a high degree of customization during the export process, but the typical flow is as follows. This example uses the MobileNet V2 image classification model implementation in torchvision, but the process supports any [export-compliant](https://pytorch.org/docs/stable/export.html) PyTorch model.
46+
Exporting is done using Python APIs. ExecuTorch provides a high degree of customization during the export process, but the typical flow is as follows. This example uses the MobileNet V2 image classification model implementation in torchvision, but the process supports any [export-compliant](https://pytorch.org/docs/stable/export.html) PyTorch model. For users working with Hugging Face models,
47+
you can find a list of supported models in the [*huggingface/optimum-executorch*](https://github.com/huggingface/optimum-executorch) repo.
4748

4849
```python
4950
import torch
@@ -101,6 +102,8 @@ print(torch.allclose(output[0], eager_reference_output, rtol=1e-3, atol=1e-5))
101102

102103
For complete examples of exporting and running the model, please refer to our [examples GitHub repository](https://github.com/pytorch-labs/executorch-examples/tree/main/mv2/python).
103104

105+
Additionally, if you work with Hugging Face models, the [*huggingface/optimum-executorch*](https://github.com/huggingface/optimum-executorch) library simplifies running these models end-to-end with ExecuTorch, using familiar Hugging Face APIs. Visit the repository for specific examples and supported models.
106+
104107
<hr/>
105108

106109
## Running on Device

docs/source/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ExecuTorch provides support for:
4343
#### Examples
4444
- [Android Demo Apps](https://github.com/pytorch-labs/executorch-examples/tree/main/dl3/android/DeepLabV3Demo#executorch-android-demo-app)
4545
- [iOS Demo Apps](demo-apps-ios.md)
46+
- [Hugging Face Models](https://github.com/huggingface/optimum-executorch/blob/main/README.md)
4647
#### Backends
4748
- [Overview](backends-overview)
4849
- [XNNPACK](backends-xnnpack)

docs/source/using-executorch-android.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,20 @@ You can also directly specify an AAR file in the app. We upload pre-built AAR to
5858

5959
### Snapshots from main branch
6060

61-
| Date | AAR | SHASUMS |
62-
| ------- | --- | ------- |
63-
| 2025-02-27 | [executorch.aar](https://ossci-android.s3.amazonaws.com/executorch/release/executorch-20250227/executorch.aar) | [executorch.aar.sha256sums](https://ossci-android.s3.amazonaws.com/executorch/release/executorch-20250227/executorch.aar.sha256sums) |
61+
Starting from 2025-04-12, you can download nightly `main` branch snapshots:
62+
* `executorch.aar`: `https://ossci-android.s3.amazonaws.com/executorch/release/snapshot-YYYYMMDD/executorch.aar`
63+
* `executorch.aar.sha256sums`: `https://ossci-android.s3.amazonaws.com/executorch/release/snapshot-YYYYMMDD/executorch.aar.sha256sums`
64+
* Replace `YYYYMMDD` with the actual date you want to use.
65+
* AAR file is generated by [this workflow](https://github.com/pytorch/executorch/blob/c66b37d010c88a113560693b14dc6bd112593c11/.github/workflows/android-release-artifacts.yml#L14-L15).
66+
67+
For example:
68+
69+
```sh
70+
curl -O https://ossci-android.s3.amazonaws.com/executorch/release/snapshot-20250412/executorch.aar
71+
curl -O https://ossci-android.s3.amazonaws.com/executorch/release/snapshot-20250412/executorch.aar.sha256sums
72+
```
73+
74+
We aim to make every daily snapshot available and useable. However, for best stability, please use releases, not snapshots.
6475

6576
## Using AAR file
6677

examples/demo-apps/apple_ios/LLaMA/docs/delegates/mps_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Link your binary with the ExecuTorch runtime and any backends or kernels used by
8585

8686
Note: To access logs, link against the Debug build of the ExecuTorch runtime, i.e., the executorch_debug framework. For optimal performance, always link against the Release version of the deliverables (those without the _debug suffix), which have all logging overhead removed.
8787

88-
For more details integrating and Running ExecuTorch on Apple Platforms, checkout this [link](https://pytorch.org/executorch/using-executorch-ios.html).
88+
For more details integrating and Running ExecuTorch on Apple Platforms, checkout this [link](https://pytorch.org/executorch/main/using-executorch-ios.html).
8989

9090
<p align="center">
9191
<img src="https://raw.githubusercontent.com/pytorch/executorch/refs/heads/main/docs/source/_static/img/ios_demo_app_swift_pm.png" alt="iOS LLaMA App Swift PM" style="width:600px">

runtime/core/exec_aten/testing_util/tensor_factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ inline bool check_dim_order(
133133
size_t gauss_sum = 0;
134134
std::vector<int> count(dim_order.size(), 0);
135135
for (int i = 0; i < dim_order.size(); i++) {
136-
if (dim_order[i] < 0 || dim_order[i] >= sizes.size()) {
136+
if (dim_order[i] >= sizes.size()) {
137137
return false;
138138
}
139139
gauss_sum += static_cast<size_t>(dim_order[i]) + 1;

test/utils/DeathTest.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
#include <gtest/gtest.h>
1717

18+
#ifndef ET_BUILD_MODE_COV
19+
#define ET_BUILD_MODE_COV 0
20+
#endif // ET_BUILD_MODE_COV
21+
1822
#if ET_BUILD_MODE_COV
1923

2024
/**

0 commit comments

Comments
 (0)