Skip to content

Commit d5ef3f1

Browse files
committed
Update
[ghstack-poisoned]
2 parents 8282b6d + c0676fe commit d5ef3f1

File tree

175 files changed

+5216
-3937
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+5216
-3937
lines changed

.ci/scripts/test_eval_llama_mmlu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ run_and_verify() {
4343
--tasks mmlu \
4444
-f 5 \
4545
--max_seq_length 2048 \
46+
--max_context_length 2048 \
4647
--limit 5 > result.txt
4748

4849
# Verify result.txt

.ci/scripts/test_eval_llama_wikitext.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ run_and_verify() {
4141
-kv \
4242
-d fp32 \
4343
--max_seq_length 2048 \
44+
--max_context_length 2048 \
4445
--limit 5 > result.txt
4546

4647
# Verify result.txt

.github/workflows/apple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: set_version
3838
shell: bash
3939
run: |
40-
VERSION="0.4.0.$(TZ='PST8PDT' date +%Y%m%d)"
40+
VERSION="0.5.0.$(TZ='PST8PDT' date +%Y%m%d)"
4141
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4242
4343
build-demo-ios:

.github/workflows/pull.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ jobs:
221221
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "cmake"
222222
223223
# install pybind
224-
bash install_executorch.sh --pybind xnnpack
224+
bash install_executorch.sh --pybind xnnpack --use-pt-pinned-commit
225225
226226
# install Llava requirements
227227
bash examples/models/llama/install_requirements.sh
@@ -484,7 +484,7 @@ jobs:
484484
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "cmake"
485485
486486
# install pybind
487-
bash install_executorch.sh --pybind xnnpack
487+
bash install_executorch.sh --pybind xnnpack --use-pt-pinned-commit
488488
489489
# install phi-3-mini requirements
490490
bash examples/models/phi-3-mini/install_requirements.sh
@@ -514,7 +514,7 @@ jobs:
514514
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "cmake"
515515
516516
# install pybind
517-
bash install_executorch.sh --pybind xnnpack
517+
bash install_executorch.sh --pybind xnnpack --use-pt-pinned-commit
518518
519519
# install llama requirements
520520
bash examples/models/llama/install_requirements.sh
@@ -544,7 +544,7 @@ jobs:
544544
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "cmake"
545545
546546
# install pybind
547-
bash install_executorch.sh --pybind xnnpack
547+
bash install_executorch.sh --pybind xnnpack --use-pt-pinned-commit
548548
549549
# install llama requirements
550550
bash examples/models/llama/install_requirements.sh
@@ -574,7 +574,7 @@ jobs:
574574
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "cmake"
575575
576576
# install pybind
577-
bash install_executorch.sh --pybind xnnpack
577+
bash install_executorch.sh --pybind xnnpack --use-pt-pinned-commit
578578
579579
# install llama requirements
580580
bash examples/models/llama/install_requirements.sh

.github/workflows/trunk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
conda activate "${CONDA_ENV}"
151151
152152
source .ci/scripts/utils.sh
153-
install_executorch
153+
install_executorch "use-pt-pinned-commit"
154154
155155
.ci/scripts/setup-arm-baremetal-tools.sh
156156
@@ -180,7 +180,7 @@ jobs:
180180
conda activate "${CONDA_ENV}"
181181
182182
source .ci/scripts/utils.sh
183-
install_executorch
183+
install_executorch "use-pt-pinned-commit"
184184
185185
.ci/scripts/setup-arm-baremetal-tools.sh
186186

.lintrunner.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
merge_base_with = "origin/main"
1+
merge_base_with = "main"
22

33
[[linter]]
44
code = 'FLAKE8'

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# Copyright 2024-2025 Arm Limited and/or its affiliates.
23
# All rights reserved.
34
#
45
# This source code is licensed under the BSD-style license found in the
@@ -819,6 +820,14 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
819820
list(APPEND _executor_runner_libs quantized_ops_lib)
820821
endif()
821822

823+
if(EXECUTORCH_ENABLE_EVENT_TRACER)
824+
if(EXECUTORCH_BUILD_DEVTOOLS)
825+
list(APPEND _executor_runner_libs etdump flatccrt)
826+
else()
827+
message(SEND_ERROR "Use of 'EXECUTORCH_ENABLE_EVENT_TRACER' requires 'EXECUTORCH_BUILD_DEVTOOLS' to be enabled.")
828+
endif()
829+
endif()
830+
822831
add_executable(executor_runner ${_executor_runner__srcs})
823832
if(CMAKE_BUILD_TYPE STREQUAL "Release")
824833
if(APPLE)

CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,38 @@ Meta has a [bounty program](https://www.facebook.com/whitehat/) for the safe
4444
disclosure of security bugs. In those cases, please go through the process
4545
outlined on that page and do not file a public issue.
4646

47+
### Issue Labels
48+
49+
#### Module/Partner Labels
50+
51+
[Labels beginning with `module:`](https://github.com/pytorch/executorch/labels?q=%22module%3A+%22)
52+
indicate the area that the issue relates to. The ExecuTorch oncall will
53+
typically add this label.
54+
55+
[Labels beginning with `partner:`](https://github.com/pytorch/executorch/labels?q=%22partner%3A+%22)
56+
indicate the ExecuTorch partner who owns the issue. The ExecuTorch oncall will
57+
typically add this label.
58+
59+
#### Lifecycle Labels
60+
61+
The ExecuTorch oncall will triage new issues. If the issue requires more
62+
information from the issue's author, oncall will add the `need-user-input` label
63+
and wait for the author to respond.
64+
65+
Once the issue contains enough information, the oncall will:
66+
- Ensure that the title is descriptive
67+
- Add one of the labels:
68+
- `bug`: The issue describes an unexpected problem
69+
- `feature`: The issue describes a request for new functionality
70+
- `rfc`: The issue describes a proposed change to functionality
71+
- Add one `module:` label or one `partner:` label, as described above
72+
- Add the `triaged` label
73+
74+
After this point, the oncall has finished the triage process, and the
75+
module owner or partner is responsible for resolving the issue. (See
76+
https://github.com/pytorch/executorch/issues/7679 for the mapping of labels to
77+
owners.)
78+
4779
### Claiming Issues
4880
We'd love your help closing out [open
4981
issues](https://github.com/pytorch/executorch/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)

README-wheel.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ standard on-device iOS and Android mobile deployments. One of the main goals for
44
ExecuTorch is to enable wider customization and deployment capabilities of the
55
PyTorch programs.
66

7-
The `executorch` pip package is in alpha.
8-
* Supported python versions: 3.10, 3.11
7+
The `executorch` pip package is in beta.
8+
* Supported python versions: 3.10, 3.11, 3.12
99
* Compatible systems: Linux x86_64, macOS aarch64
1010

11-
The prebuilt `executorch.extension.pybindings.portable_lib` module included in
12-
this package provides a way to run ExecuTorch `.pte` files, with some
13-
restrictions:
11+
The prebuilt `executorch.runtime` module included in this package provides a way
12+
to run ExecuTorch `.pte` files, with some restrictions:
1413
* Only [core ATen
1514
operators](https://pytorch.org/executorch/stable/ir-ops-set-definition.html)
1615
are linked into the prebuilt module
1716
* Only the [XNNPACK backend
1817
delegate](https://pytorch.org/executorch/main/native-delegates-executorch-xnnpack-delegate.html)
19-
is linked into the prebuilt module
20-
* [macOS only] [Core ML](https://pytorch.org/executorch/main/build-run-coreml.html) and [MPS](https://pytorch.org/executorch/main/build-run-mps.html) backend delegates are linked into the prebuilt module.
18+
is linked into the prebuilt module.
19+
* \[macOS only] [Core ML](https://pytorch.org/executorch/main/build-run-coreml.html)
20+
and [MPS](https://pytorch.org/executorch/main/build-run-mps.html) backend
21+
delegates are also linked into the prebuilt module.
2122

2223
Please visit the [ExecuTorch website](https://pytorch.org/executorch/) for
2324
tutorials and documentation. Here are some starting points:

backends/arm/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ The you can run the tests with
122122
pytest -c /dev/null -v -n auto backends/arm/test --arm_run_corstoneFVP
123123
```
124124

125+
## Passes
126+
127+
With the default passes in the Arm Ethos-U backend, assuming the model lowers fully to the
128+
Ethos-U, the exported program is composed of a Quantize node, Ethos-U custom delegate
129+
and a Dequantize node. In some circumstances, you may want to feed quantized input to the Neural
130+
Network straight away, e.g. if you have a camera sensor outputting (u)int8 data and keep all the
131+
arithmetic of the application in the int8 domain. For these cases, you can apply the
132+
`exir/passes/quantize_io_pass.py`. See the unit test in `executorch/backends/arm/
133+
test/passes/test_ioquantization_pass.py`for an example how to feed quantized inputs and
134+
obtain quantized outputs.
135+
136+
125137
### Code coverage
126138

127139
To get code coverage:

0 commit comments

Comments
 (0)