Skip to content

Commit bbc11ac

Browse files
committed
Update
[ghstack-poisoned]
2 parents 5f98477 + 0c0ccd9 commit bbc11ac

491 files changed

Lines changed: 46162 additions & 3772 deletions

File tree

Some content is hidden

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

‎.ci/docker/requirements-ci.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ torchsr==1.0.4
99
transformers==5.3.0
1010
zstd==1.5.5.1
1111
pandas>=2.2.2; python_version >= '3.10'
12-
pytest==7.2.0
12+
pytest==7.3.0
1313
pytest-cov==4.1.0
1414
expecttest==0.1.6
1515
hypothesis==6.84.2

‎.ci/scripts/test-native.sh‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ case "${component}" in
2020
test_regex='^native_runtime_test$'
2121
;;
2222
cpu)
23+
# The CPU plan test covers ETDump tracing, including operator shapes.
2324
cmake_args+=(
2425
-DEXECUTORCH_BUILD_NATIVE_CPU=ON
2526
-DEXECUTORCH_BUILD_XNNPACK=ON
2627
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON
2728
-DEXECUTORCH_BUILD_NATIVE_VISION_RUNNER=ON
29+
-DEXECUTORCH_BUILD_DEVTOOLS=ON
30+
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON
31+
-DEXECUTORCH_CPU_XNNPACK_OPERATOR_SHAPES=ON
2832
)
29-
targets+=(native_cpu_engine_test run_classification_cpu)
30-
test_regex='^native_cpu_engine_test$'
33+
targets+=(native_cpu_engine_test cpu_plan_test run_classification_cpu)
34+
test_regex='^(native_cpu_engine|cpu_plan)_test$'
3135
;;
3236
ggml)
3337
cmake_args+=(
@@ -36,8 +40,9 @@ case "${component}" in
3640
-DEXECUTORCH_BUILD_NATIVE_VISION_RUNNER=ON
3741
-DGGML_NATIVE=OFF
3842
)
39-
targets+=(run_hf_llm_ggml native_ggml_engine_test native_llm_runner_utils_test run_classification_ggml_cpu)
40-
test_regex='^native_(ggml_engine|llm_runner_utils)_test$'
43+
# TODO: run the other sample tests once they pass.
44+
targets+=(run_hf_llm_ggml native_ggml_engine_test native_llm_runner_utils_test run_classification_ggml_cpu native_output_check_test native_ggml_sample_test)
45+
test_regex='^native_(ggml_engine|llm_runner_utils|output_check)_test$|^native_ggml_sample_test_act_quant$'
4146
;;
4247
vulkan)
4348
cmake_args+=(
@@ -67,7 +72,7 @@ cmake -S . -B "${build_dir}" -G Ninja \
6772
cmake --build "${build_dir}" \
6873
--parallel "${build_jobs}" \
6974
--target "${targets[@]}"
70-
ctest --test-dir "${build_dir}/backends/native/test" \
75+
ctest --test-dir "${build_dir}" \
7176
-R "${test_regex}" --output-on-failure --no-tests=error --timeout 120
7277

7378
if [[ "${component}" == "ggml" ]]; then

‎.claude/faq.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Error codes defined in `runtime/core/error.h`.
77
|------|------|--------------|
88
| 0x10 | InvalidArgument | Input shape mismatch - inputs don't match export shapes. Use dynamic shapes if needed. |
99
| 0x14 | OperatorMissing | Selective build missing operator. Regenerate `et_operator_library` from current model. |
10-
| 0x20 | NotFound | Missing backend. Link with `--whole-archive`: `-Wl,--whole-archive libxnnpack_backend.a -Wl,--no-whole-archive` |
10+
| 0x20 | NotFound | Missing backend. Link with `--whole-archive`: `-Wl,--whole-archive libxnnpack_backend.a -Wl,--no-whole-archive libxnnpack_profiler.a` |
1111

1212
## Export Issues
1313

‎.claude/skills/building/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Most commonly needed flags (full list: `CMakeLists.txt`):
202202
| Artifact | Location |
203203
|----------|----------|
204204
| Core runtime | `cmake-out/lib/libexecutorch.a` |
205-
| XNNPACK backend | `cmake-out/lib/libxnnpack_backend.a` |
205+
| XNNPACK backend | `cmake-out/lib/libxnnpack_backend.a` and `cmake-out/lib/libxnnpack_profiler.a` |
206206
| executor_runner | `cmake-out/executor_runner` (Ninja/Make) or `cmake-out/Release/executor_runner` (Xcode) |
207207
| Model runners | `cmake-out/examples/models/<model>/<runner>` |
208208

‎.github/workflows/_llm_server.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ jobs:
4242
export PYTHONPATH="$(dirname "${PWD}"):${PYTHONPATH:-}"
4343
export PYTHONDONTWRITEBYTECODE=1
4444
45-
python -m pytest -q \
45+
python -m pytest -q -ra -m 'not native_worker' \
46+
--junitxml="${RUNNER_TEST_RESULTS_DIR}/llm-server.xml" \
4647
examples/llm_server/python/tests \
4748
examples/models/muse-glimmer/tests/test_serve.py \
4849
examples/models/muse-glimmer/tests/test_serve_batching.py \
49-
examples/models/muse-glimmer/tests/test_stream_parser.py
50+
examples/models/muse-glimmer/tests/test_stream_parser.py \
51+
examples/models/muse-glimmer/tests/test_migration_contracts.py \
52+
examples/models/muse-glimmer/tests/test_atem_tool_parser.py \
53+
examples/models/muse-glimmer/tests/test_*regressions.py \
54+
examples/models/muse-glimmer/tests/test_client_contracts.py
5055
5156
cmake -S . -B cmake-out \
5257
-DCMAKE_BUILD_TYPE=Release \
@@ -62,6 +67,10 @@ jobs:
6267
-j "$(nproc)"
6368
ctest --test-dir cmake-out/examples/llm_server/cpp --output-on-failure
6469
70+
export EXECUTORCH_TEST_MULTIPLEXED_WORKER="${PWD}/cmake-out/examples/llm_server/cpp/test_multiplexed_worker"
6571
export EXECUTORCH_BATCHING_TEST_WORKER="${PWD}/cmake-out/examples/llm_server/cpp/test_batching_worker"
72+
test -x "${EXECUTORCH_TEST_MULTIPLEXED_WORKER}"
6673
test -x "${EXECUTORCH_BATCHING_TEST_WORKER}"
67-
python -m pytest -q examples/llm_server/python/tests/test_batching_end_to_end.py
74+
python -m pytest -q -ra -m native_worker \
75+
--junitxml="${RUNNER_TEST_RESULTS_DIR}/llm-server-native.xml" \
76+
examples/llm_server/python/tests

‎.github/workflows/_test_cortex_m_ops.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ jobs:
5959
# op set, implementation tests check FVP numerics. Both are parametrized
6060
# over --cortex-m-target, so a future target-dependent lowering change is
6161
# caught here. (cortex-m55 runs on pull via the full-suite job.)
62-
pytest --config-file=backends/arm/test/pytest.ini \
62+
pytest -c backends/arm/test/pytest.ini \
6363
backends/cortex_m/test/ops \
6464
--cortex-m-target=${{ matrix.target }}

‎.github/workflows/cuda.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ on:
4848
- exir/passes/insert_write_back_for_buffers_pass.py
4949
- exir/passes/propagate_device_config.py
5050
- exir/passes/propagate_device_pass.py
51+
- exir/passes/replace_complex_with_real_pass.py
5152
workflow_dispatch:
5253
inputs:
5354
models:
@@ -476,9 +477,9 @@ jobs:
476477
unittest-cuda:
477478
name: unittest-cuda (${{ matrix.shard }})
478479
needs: [changed-files, run-decision]
479-
# This job runs the pybindings device test and the device placement test,
480-
# so it also has to fire on the pybindings and device pass paths the
481-
# workflow filter lists.
480+
# This job runs the pybindings device test, the device placement test and
481+
# the complex number tests, so it also has to fire on the pybindings and
482+
# exir pass paths the workflow filter lists.
482483
if: |
483484
contains(needs.changed-files.outputs.changed-files, 'backends/cuda') ||
484485
contains(needs.changed-files.outputs.changed-files, 'backends/aoti') ||
@@ -493,6 +494,7 @@ jobs:
493494
contains(needs.changed-files.outputs.changed-files, 'exir/passes/insert_write_back_for_buffers_pass.py') ||
494495
contains(needs.changed-files.outputs.changed-files, 'exir/passes/propagate_device_config.py') ||
495496
contains(needs.changed-files.outputs.changed-files, 'exir/passes/propagate_device_pass.py') ||
497+
contains(needs.changed-files.outputs.changed-files, 'exir/passes/replace_complex_with_real_pass.py') ||
496498
needs.run-decision.outputs.is-full-run == 'true'
497499
# kernel: Triton kernels and their autotuning. system: lowering passes, op
498500
# dispatch, export/runtime, and model tests. Together they do not fit the
@@ -1219,12 +1221,8 @@ jobs:
12191221
fail-fast: false
12201222
matrix:
12211223
include:
1222-
- variant: kquant-17gb
1223-
mode: solo-text
12241224
- variant: kquant-17gb
12251225
mode: dflash-image-batching
1226-
- variant: kquant-17gb
1227-
mode: dflash-image
12281226
- variant: kquant-dynamic
12291227
mode: solo-text
12301228
- variant: kquant-dynamic

0 commit comments

Comments
 (0)