Skip to content

Commit e34bb92

Browse files
author
pytorchbot
committed
2025-11-14 nightly release (ed264fe)
1 parent 8a736c0 commit e34bb92

File tree

239 files changed

+5753
-12660
lines changed

Some content is hidden

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

239 files changed

+5753
-12660
lines changed

.ci/scripts/test_llama_lora.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
1212
cmake_install_executorch_libraries() {
1313
echo "Installing libexecutorch.a, libextension_module.so, libportable_ops_lib.a"
1414
rm -rf cmake-out
15-
retry cmake --preset llm \
16-
-DCMAKE_INSTALL_PREFIX=cmake-out \
17-
-DCMAKE_BUILD_TYPE=Release
18-
cmake --build cmake-out -j9 --target install --config Release
15+
cmake --workflow llm-release
1916
}
2017

2118
cmake_build_llama_runner() {

.ci/scripts/test_model_e2e.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,20 +157,17 @@ echo "::endgroup::"
157157
echo "::group::Build $MODEL_NAME Runner"
158158

159159
if [ "$DEVICE" = "cuda" ]; then
160+
WORKFLOW="llm-release-cuda"
160161
BUILD_BACKEND="EXECUTORCH_BUILD_CUDA"
161162
elif [ "$DEVICE" = "metal" ]; then
163+
WORKFLOW="llm-release-metal"
162164
BUILD_BACKEND="EXECUTORCH_BUILD_METAL"
163165
else
164166
echo "Error: Unsupported device '$DEVICE'. Must be 'cuda' or 'metal'."
165167
exit 1
166168
fi
167169

168-
cmake --preset llm \
169-
-D${BUILD_BACKEND}=ON \
170-
-DCMAKE_INSTALL_PREFIX=cmake-out \
171-
-DCMAKE_BUILD_TYPE=Release \
172-
-Bcmake-out -S.
173-
cmake --build cmake-out -j$(nproc) --target install --config Release
170+
cmake --workflow $WORKFLOW
174171

175172
cmake -D${BUILD_BACKEND}=ON \
176173
-DCMAKE_BUILD_TYPE=Release \

.ci/scripts/test_phi_3_mini.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,16 @@ if hash nproc &> /dev/null; then NPROC=$(nproc); fi
2323

2424
cmake_install_executorch_libraries() {
2525
rm -rf cmake-out
26-
cmake --preset llm -DCMAKE_INSTALL_PREFIX=cmake-out -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
27-
cmake --build cmake-out -j16 --target install --config ${BUILD_TYPE}
26+
27+
# Select workflow preset based on BUILD_TYPE
28+
if [[ "${BUILD_TYPE}" == "Debug" ]]; then
29+
WORKFLOW_PRESET="llm-debug"
30+
else
31+
WORKFLOW_PRESET="llm-release"
32+
fi
33+
34+
echo "Using workflow preset: ${WORKFLOW_PRESET}"
35+
cmake --workflow --preset ${WORKFLOW_PRESET}
2836
}
2937

3038
cmake_build_phi_3_mini() {

.github/workflows/pull.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ jobs:
340340
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
341341
timeout: 90
342342
script: |
343+
set -eux
343344
# The generic Linux job chooses to use base env, not the one setup by the image
344345
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
345346
conda activate "${CONDA_ENV}"

.github/workflows/trunk.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jobs:
347347
elif [[ ${{ matrix.os}} == "zephyr-preset" ]]; then
348348
setup_script_args="--target-toolchain zephyr"
349349
toolchain_prefix=arm-zephyr-eabi-
350-
threshold="135656" # 132 KiB
350+
threshold="135768" # 136 KiB
351351
toolchain_cmake=examples/zephyr/x86_64-linux-arm-zephyr-eabi-gcc.cmake
352352
else
353353
echo "Fail unsupport OS selection ${{ matrix.os }}"
@@ -1066,3 +1066,33 @@ jobs:
10661066
10671067
.ci/scripts/test_model.ps1 -modelName ${{ matrix.model }} -backend ${{ matrix.backend }}
10681068
}"
1069+
1070+
test-mcu-cortex-m-backend:
1071+
name: test-mcu-cortex-m-backend
1072+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
1073+
permissions:
1074+
id-token: write
1075+
contents: read
1076+
with:
1077+
runner: linux.2xlarge.memory
1078+
docker-image: ci-image:executorch-ubuntu-22.04-arm-sdk
1079+
submodules: 'recursive'
1080+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
1081+
timeout: 120
1082+
script: |
1083+
# The generic Linux job chooses to use base env, not the one setup by the image
1084+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
1085+
conda activate "${CONDA_ENV}"
1086+
1087+
source .ci/scripts/utils.sh
1088+
install_executorch "--use-pt-pinned-commit"
1089+
1090+
# Install arm dependencies
1091+
.ci/scripts/setup-arm-baremetal-tools.sh
1092+
source examples/arm/ethos-u-scratch/setup_path.sh
1093+
1094+
# To build cortex-m test runner
1095+
backends/cortex_m/test/build_test_runner.sh
1096+
1097+
# To run cortex_m tests
1098+
pytest --config-file=backends/arm/test/pytest.ini backends/cortex_m/test

.lintrunner.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ exclude_patterns = [
367367
'**/third-party/**',
368368
'scripts/check_binary_dependencies.py',
369369
'profiler/test/test_profiler_e2e.py',
370-
'backends/arm/test/**',
370+
'backends/arm/test/ops/*.py',
371371
]
372372
command = [
373373
'python',

.mypy.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ files =
2424
test,
2525
util
2626

27-
mypy_path = executorch
27+
mypy_path = executorch,src
2828

2929
[mypy-executorch.backends.*]
3030
follow_untyped_imports = True
3131

32+
[mypy-backends.arm.*]
33+
disallow_untyped_decorators = False
34+
3235
[mypy-executorch.codegen.*]
3336
follow_untyped_imports = True
3437

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,9 @@ endif()
591591
if(EXECUTORCH_BUILD_CUDA)
592592
# Build CUDA-specific AOTI functionality
593593
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/cuda)
594-
# Add aoti_cuda to backends - it already depends on aoti_common
595-
list(APPEND _executorch_backends aoti_cuda)
594+
# Add aoti_cuda_backend to backends - it transitively includes aoti_cuda_shims
595+
# and cuda_platform
596+
list(APPEND _executorch_backends aoti_cuda_backend)
596597
endif()
597598

598599
if(EXECUTORCH_BUILD_METAL)

0 commit comments

Comments
 (0)