Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
585 commits
Select commit Hold shift + click to select a range
e86c9c9
Fix LLM fine-tuning examples import error on OSS
dpalmasan Mar 12, 2025
03f064b
Arm backend: Add TOSA support for logical not (#9128)
mansnils Mar 12, 2025
534defd
Fix typo in executorch documentation (#9000)
yu-frank Mar 12, 2025
2d47bca
Rename M1 references in wheel building to macOS (#9166)
jathu Mar 12, 2025
ac9d12c
Arm backend: Bump FVP timeout to 10 min (#9082)
zingo Mar 12, 2025
9216768
Arm backend: Make build script source the generated setup_path.sh (#9…
zingo Mar 12, 2025
705f100
Arm backend: Bump Vela pin to support matmul on Ethos-U55 (#9184)
Erik-Lundell Mar 12, 2025
8af9b9a
Revert "Unbreak optimized kernels buck build (and check it in unittes…
swolchok Mar 12, 2025
498795b
Revert "Make serial parallel_for "polyfill" iterate backwards in debu…
swolchok Mar 12, 2025
f8e357a
Revert "Split & remove extension_parallel (#8983)" (#9189)
swolchok Mar 12, 2025
d2f9ff6
Qualcomm AI Engine Direct - support XR2Gen3 SoC (#9181)
haowhsu-quic Mar 12, 2025
e3c7954
Update paths in Benchmark app project (#9191)
shoumikhin Mar 12, 2025
9672061
Update XNNPACK and backend template docs (#9195)
GregoryComer Mar 12, 2025
d707e05
Use requirements-dev.txt to install pip deps (#9167)
jathu Mar 12, 2025
6ba6e3e
Revert "Revert "Split & remove extension_parallel (#8983)"" (#9190)
swolchok Mar 12, 2025
b2badda
Add BroadcastIndexesIterator::operator+ (#9057)
swolchok Mar 12, 2025
f91ebe2
Use template instead of duplicating code in elementwise_util.h (#9058)
swolchok Mar 12, 2025
c183ef0
parallelize optimized op_where using parallel_for (#9059)
swolchok Mar 12, 2025
4de19fd
Attempt to unbreak build_apple_frameworks (#9193)
swolchok Mar 12, 2025
791fe7f
[ET-VK] Allow memory tagging pass to handle nodes with list of tensor…
pytorchbot Mar 12, 2025
4f02b33
fix ci (#9201)
metascroy Mar 12, 2025
5712d73
Link custom kernels with libextension_threadpool (#9209)
shoumikhin Mar 12, 2025
7ac7270
Modify minibench SDK (#9208)
kirklandsign Mar 12, 2025
acae017
Add _unsafe_reset_threadpool to pybindings
GregoryComer Mar 12, 2025
907e97e
Build optimized_portable_kernels if threadpool is enabled (#8987)
swolchok Mar 12, 2025
243c885
Proof-of-concept: parallelize argmin (#9066)
swolchok Mar 12, 2025
f5bc22a
use numel() when appropriate in get_reduced_dim_product (#9142)
swolchok Mar 12, 2025
8334bb6
Extract parallel_for_each_reduce_over_dim_output_index from argmin pa…
swolchok Mar 12, 2025
c7db9b9
cover //kernels/prim_ops/... in unittest-buck (#9176)
swolchok Mar 12, 2025
b8c3ee9
Update android docs
kirklandsign Mar 12, 2025
812aa06
[Android benchmarking] Cool down the device before a run
kirklandsign Mar 13, 2025
fae734f
Pull submodules recursively for Benchmark app on CI (#9212)
shoumikhin Mar 13, 2025
ebea003
Enable model based selective build on xplat
larryliu0820 Mar 13, 2025
baf35d2
Qualcomm AI Engine Direct - Optimize the performance for AR-N model (…
shewu-quic Mar 13, 2025
e3de804
Fix num_iters > 5 Shiftpointer issue
billmguo Mar 13, 2025
42d3952
Arm backend: Refactor bn, layernorm, meandim tests
Erik-Lundell Feb 28, 2025
28a8954
Arm backend: Add TOSA support for any.default, any.dim and any.dims
YufengShi-dudu Mar 3, 2025
753da9a
Create Arm64 Graviton instance docker image (#9199)
mergennachin Mar 13, 2025
cb3ec19
Include libcpublas.a into optimized kernels framework (#9218)
shoumikhin Mar 13, 2025
ec3ea96
Fix missing buck dep for op_where (#9229)
swolchok Mar 13, 2025
7496923
Modifying permute op to support all tensor packing.
trviv Mar 13, 2025
c066ee7
Yet another macro to switch-case UInt types (#9219)
shoumikhin Mar 13, 2025
7c85dc4
Qualcomm AI Engine Direct - Support Bitwise Or (#9224)
winskuo-quic Mar 13, 2025
df337c7
fix-ci (#9231)
metascroy Mar 13, 2025
db4a500
Pull submodules recursively (#9234)
shoumikhin Mar 13, 2025
5402716
Refactor gather_test_model to be hard coded directly (#9227)
mergennachin Mar 13, 2025
23a6d11
Add tests on graviton instances (#9207)
mergennachin Mar 13, 2025
9b2cb87
Fix macos test-model jobs (#9235)
mergennachin Mar 13, 2025
08f0f7a
Another fix for CI job refactoring (#9237)
mergennachin Mar 13, 2025
570e06c
Build flatc for the host instead of the target platform (#9077)
jathu Mar 13, 2025
1c2a69e
[build Folder Migration] Move build/Codegen.cmake (#9185)
jathu Mar 13, 2025
1a918c7
Move ModelDataKit to ExecuTorch directory
bsoyluoglu Mar 13, 2025
54c3f78
Add thread_parallel_interface to all_deps for portable util (#9242)
swolchok Mar 13, 2025
2407647
Put extension/parallel buck files back (#9232)
swolchok Mar 13, 2025
4f95fd0
Add back linux pull jobs (#9239)
mergennachin Mar 13, 2025
630d0cc
Don't use designated initializers in QueryPool.cpp
SamGondelman Mar 13, 2025
a131826
[Benchmark]Deprecate v2 (#9238)
yangw-dev Mar 13, 2025
e91c085
Adding dummy coreml backend to silence uquery failures
ChristianWLang Mar 13, 2025
ce612b8
ping a newer pytorch nightly to include recent export updates
iseeyuan Mar 13, 2025
e9cf64a
fix building with CMake + Ninja after #9077 (#9246)
swolchok Mar 13, 2025
b5d8e3b
Move ExecutorchRuntimeValueSupport and ExecutorchRuntimeBridge to xplat
bsoyluoglu Mar 13, 2025
27bacff
Export Mimi model to ExecuTorch
iseeyuan Mar 13, 2025
718aa6f
Reduce macOS CI jobs and add more Arm64 jobs. (#9228)
mergennachin Mar 13, 2025
699ee7d
Add llama jobs on Arm64 and reduce llama jobs on MacOS (#9251)
mergennachin Mar 14, 2025
9a0c2db
Split android instrumentation from build script
kirklandsign Mar 14, 2025
7901539
Move MacOS jobs (phi-4-mini, qwen2_5) etc to Arm64 (#9254)
mergennachin Mar 14, 2025
90ac09e
Run Apple specific tests on CI (#9236)
shoumikhin Mar 14, 2025
af67dec
Exclude extension/apple code from linting (#9258)
shoumikhin Mar 14, 2025
bb3b623
Update comments in tensor_ptr_maker.h (#9259)
shoumikhin Mar 14, 2025
b0c2c7c
removed unnecessary datasink checks
Gasoonjia Mar 14, 2025
75e7811
Arm backend: Add numerically stable (log)softmax decomposition (#9133)
AdrianLundell Mar 14, 2025
7d81fe3
Arm backend: Add XfailIfNoCorstone300/320. (#9220)
AdrianLundell Mar 14, 2025
fb9b61f
Fix license headers to BSD (#9270)
mergennachin Mar 14, 2025
cfd0bc4
Hold on unittest-macos.sh (#9276)
shoumikhin Mar 14, 2025
09a3a5a
Revert "Extract parallel_for_each_reduce_over_dim_output_index from a…
swolchok Mar 14, 2025
2bee76e
Revert "Revert "Extract parallel_for_each_reduce_over_dim_output_inde…
swolchok Mar 14, 2025
bcc1259
Convert dataclasses mutable default values to use default_factory [2/12]
itamaro Mar 14, 2025
3c895f8
Add dynamic shape support to CoreML
metascroy Mar 14, 2025
79fda31
Move ExecutorchRuntime to xplat
bsoyluoglu Mar 14, 2025
899ae4d
solve example_runner.sh compile error
Gasoonjia Mar 14, 2025
0b1b77d
Git ignore dist/ (#9282)
jathu Mar 14, 2025
58d3582
Fix license headers for the swift bridging APIs
bsoyluoglu Mar 14, 2025
91584e2
Use parallel_for_each_reduce_over_dim_output_index for {map_,}reduce_…
swolchok Mar 14, 2025
2d761f0
Add parallel_for_each_reduce_over_dim_list_output_index (#9143)
swolchok Mar 14, 2025
fbed0b2
Skip grain_size computation in parallel_for_each_reduce_* wrappers wi…
swolchok Mar 14, 2025
dd9a85a
Use parallel_for_each_reduce_over_dim_list_output_index for {Map,}Red…
swolchok Mar 14, 2025
1011fdc
Enable aten.upsample_nearest2d.vec (#9067)
cccclai Mar 14, 2025
d44d6cd
[ExecuTorch][Weight Sharing] Track Named Data Store in EdgeProgramMan…
pytorchbot Mar 14, 2025
3137889
[Windows] misc fixes to enable Windows build (#9198)
SS-JIA Mar 14, 2025
8c03d04
Simplify Android build script
kirklandsign Mar 14, 2025
8386b78
fix reduce_util.h ATen mode build (#9300)
swolchok Mar 15, 2025
23fe285
[ExecuTorch][Weight Sharing][XNNPACK] load named data map data for xn…
pytorchbot Mar 15, 2025
157bf91
Use non-fatal input checks for view operator (#9264)
zhenyan-zhang-meta Mar 15, 2025
0ccf509
[XNNPACK] resolve ambiguity around 2d affine quantized tensors
mcr229 Mar 15, 2025
f789df2
Android build script allow skip LLM
kirklandsign Mar 16, 2025
206a4df
Migrate users of llm tokenizer to use pytorch-labs/tokenizers
larryliu0820 Mar 17, 2025
82f3381
Arm backend: Don't handle const placeholders in match_arg_ranks_pass …
martinlsm Mar 17, 2025
3eb4627
Added logic for model_input flag (#9310)
Juanfi8 Mar 17, 2025
2303947
Unbreak unittest-buck (#9315)
swolchok Mar 17, 2025
37265a1
Remove false positive error message in the executor_runner (#7170)
ykhrustalev Mar 17, 2025
8d4ba1d
Changes to allow the export of functions with no user input. (#8031)
cptspacemanspiff Mar 17, 2025
0653b8f
Include custom_ops and XNNPACK in executor_runner if built (#9248)
swolchok Mar 17, 2025
a1619c6
[build Folder Migration] Move build/Codegen.cmake (again) (#9314)
jathu Mar 17, 2025
429a282
[build Folder Migration] Move build/Test.cmake (#9317)
jathu Mar 17, 2025
4be5758
[build Folder Migration] Move build/executorch-config.cmake (#9318)
jathu Mar 17, 2025
6aa60bb
[build Folder Migration] Move build/executorch-wheel-config.cmake (#…
jathu Mar 17, 2025
f06c225
removed malloc and used allocate_temp to allocate memory (#8026)
ckmadhira Mar 17, 2025
8fbdb17
Simplify android-release-artifacts.yml
kirklandsign Mar 17, 2025
7be0af5
Milestone 3 release for operators on FusionG3
ckmadhira Mar 17, 2025
2522789
Move constraints out of build
jathu Mar 17, 2025
37fa261
Link extension threadpool with XNNPACK backend instead of custom kern…
shoumikhin Mar 17, 2025
82faf9b
Qualcomm AI Engine Direct - XR model mld_a enablement (#9129)
haowhsu-quic Mar 17, 2025
77752a4
Fix optional graph_signature access in memory planning (#9325)
jathu Mar 17, 2025
6ddeabd
[Benchmark] Generate benchmark record for job failure (#9247)
yangw-dev Mar 17, 2025
7826a26
Update swiftpm pin for the demo app (#9334)
shoumikhin Mar 17, 2025
1e4183d
[build Folder Migration] Move build/Utils.cmake (#9316)
jathu Mar 17, 2025
f351ec2
Fix link in android docs (#9335)
kirklandsign Mar 17, 2025
84911fb
Set fbjni version to be 0.5.1
kirklandsign Mar 17, 2025
8c32da7
Fix benchmark job and apple demo app job (#9329)
larryliu0820 Mar 18, 2025
b8a0edd
Add null runtime check for XNNExecutor::prepare_args (#9265)
zhenyan-zhang-meta Mar 18, 2025
5a5fab7
raise reasonable error when verifing program w/o expected outputs
Gasoonjia Mar 18, 2025
28673ad
Arm backend: Add tosa_spec and et-version info to .tosa files (#9308)
oscarandersson8218 Mar 18, 2025
622b79e
Arm backend: Use dbg_fail when node visitors raise exceptions (#9268)
oscarandersson8218 Mar 18, 2025
31890cb
Arm backend: Fix output_folder not created issue in scripts (#9269)
YufengShi-dudu Mar 18, 2025
084d835
[build Folder Migration] Move buck scripts for cmake (#9336)
jathu Mar 18, 2025
afee3fc
Fixing issues with Cadence lincense banner (#9360)
dijopaul Mar 18, 2025
993b36b
Fix license to BSD in ExecutorchRuntimeBridge/Exported/Data/Executorc…
mergennachin Mar 18, 2025
6de5b36
don't copy input std::function in thread_parallel (#9339)
swolchok Mar 18, 2025
c7c6ad9
Arm backend: Test popular torch modules/ functions, adress issues (#9…
Erik-Lundell Mar 18, 2025
f805940
re-initialize inputs on each execution in executor_runner (#9340)
swolchok Mar 18, 2025
c4c2aaf
executor_runner: print total execution time (#9342)
swolchok Mar 18, 2025
89a0bdf
Make BroadcastIndexesRange efficient if there is no broadcasting (#9298)
swolchok Mar 18, 2025
022a946
Add linter for LICENSE (#9275)
mergennachin Mar 18, 2025
a05c4da
Use resolve_buck script to find buck executable when building Apple f…
shoumikhin Mar 18, 2025
4f9c52d
remove BUCK target for OSS sample tests
zonglinpeng Mar 18, 2025
f86d7e3
[Android benchmark] Increase sleep time
kirklandsign Mar 18, 2025
2e1dadf
Unbreak BroadcastIndexesRange::operator+= when there is no broadcasti…
swolchok Mar 18, 2025
0e5f309
Test MV3 model in CI wheel builds (#9192)
jathu Mar 18, 2025
994ac34
[cadence][g3] link m3 ops and add testcases (#8824)
zonglinpeng Mar 18, 2025
a7ef013
Revert "Arm backend: use dbg_fail when node visitors raise exceptions…
larryliu0820 Mar 18, 2025
a2f9cbe
Revert "Arm backend: add tosa_spec and et-version info to .tosa files…
larryliu0820 Mar 18, 2025
d8c069a
Fix build_apple_frameworks.sh buck resolution (#9372)
shoumikhin Mar 18, 2025
a28e9be
Use parallel_for in elementwise_util (#9243)
swolchok Mar 18, 2025
b195ed9
Use parallel_for in functional_util's apply_unary_map_fun (#9348)
swolchok Mar 18, 2025
6daff83
[ET-VK] Minor performance improvement to permute op.
pytorchbot Mar 19, 2025
d46623e
test(etdump): Add FileDataSink test coverage (#9332)
Megan0704-1 Mar 19, 2025
e433e61
[build Folder Migration] Move build/build_android_instrumentation.sh …
jathu Mar 19, 2025
4c54bab
Arm backend: Add initial Llama model test case (#8679)
mansnils Mar 19, 2025
01a22b6
[ET-VK] Adding all tensor packing support to cat op. (#9380)
pytorchbot Mar 19, 2025
a699b5b
Support MPS Backend also on iOS < 16 (#9089)
f-meloni Mar 19, 2025
1ccc5a0
use datasink in example runner
Gasoonjia Mar 19, 2025
08f041d
[ExecuTorch] Arm Ethos: Do not depend on `torch.testing._internal ` (…
pytorchbot Mar 19, 2025
0daa347
[ExecuTorch] Arm Ethos: Add Linear operator tests
pytorchbot Mar 19, 2025
7c6d2f3
[ExecuTorch] Arm Ethos:Make get_compile_spec() configurable (#9403)
pytorchbot Mar 19, 2025
bcea345
Remove usage of external flatc in builds and scripts (#9306)
jathu Mar 19, 2025
a5d64cf
Use -fsanitize=address,undefined in debug builds on CI (#9397)
swolchok Mar 19, 2025
e0235f0
Create the foundation for testing CoreML export for wheels (#9381)
jathu Mar 19, 2025
7154176
Add basic ambiguity check in the tests (#9371)
digantdesai Mar 19, 2025
ad2ad5c
[trunk.yml] Increase RAM for Arm runners (#9409)
digantdesai Mar 19, 2025
445ff34
Fix etdump test
kirklandsign Mar 19, 2025
a603087
install android ndk for mediatek docker (#9407)
cccclai Mar 19, 2025
4ecfc62
[XNNPACK][Weights Cache] Use sha256 hash of bytes instead of tensor n…
pytorchbot Mar 19, 2025
ea43453
fix number of operator error issue
Gasoonjia Mar 19, 2025
025514f
[build Folder Migration] Move miscellaneous files (#9417)
jathu Mar 20, 2025
d6149e1
[build Folder Migration] Move wheel files (#9418)
jathu Mar 20, 2025
46e937b
[build Folder Migration] Move iOS CI test files (#9425)
jathu Mar 20, 2025
4e1d2e5
Remove protocols and make executorch runtime bridge standalone
bsoyluoglu Mar 20, 2025
5cd973c
Arm backend: Improve common.parameterize decorator (#9358)
Erik-Lundell Mar 20, 2025
059e4b0
Arm backend: Limit number of build jobs (#9444)
mansnils Mar 20, 2025
33f08c1
Remove proprietary license (#9389)
neuropilot-captain Mar 20, 2025
8b8bd23
Arm backend: Add WhyNoPartitionReporter and report rejected nodes (#8…
Erik-Lundell Mar 20, 2025
6fb42ef
[ET-VK] Adding boolean parameters to add_copy_offset_node to specify …
pytorchbot Mar 20, 2025
16d3db2
[ET-VK] Adding all tensor packing support to split op. (#9439)
pytorchbot Mar 20, 2025
4903f0a
Keep LiftedConstant in .pte (#9202)
Lucaskabela Mar 20, 2025
87dd81a
[Cadence] Add scalar cases for binary ops (add, mul, sub, div) on HiFi
mcremon-meta Mar 20, 2025
256dfa0
MethodMeta API to query of backends number and names (#9440)
shoumikhin Mar 20, 2025
079e54e
Add Module API to query for the number of methods (#9441)
shoumikhin Mar 20, 2025
bda18ad
Add Android build-tools;35.0.0
kirklandsign Mar 20, 2025
4894170
Arm backend: Refactor Ops Tests for AvgPool, Clamp, Clone, Conv1d, Su…
fumchin Mar 20, 2025
45219f3
Check for nullptr in MethodMeta::uses_backend (#9457)
shoumikhin Mar 20, 2025
7a2a300
Arm backend: Fix flaky test LSTM by bumping allowed atol/rtol slightl…
zingo Mar 20, 2025
4fa4665
Fix copy pasta error for the error domain
bsoyluoglu Mar 20, 2025
2d6d981
[ET-VK][ez] Fix using a temporary variable when creating `ComputePipe…
pytorchbot Mar 20, 2025
b05cdce
[Android docs] Add maven part
kirklandsign Mar 20, 2025
f721779
Collect Named Data Store at construction
mcr229 Mar 20, 2025
3bb28ba
Return result from get_backend_name (#9465)
shoumikhin Mar 20, 2025
1300cda
[ET-VK][ez] Make sure vTensor is not referencing the global context (…
pytorchbot Mar 20, 2025
1a9a59b
Bump torchao + add unit tests for torchao kernels (#9396)
metascroy Mar 20, 2025
b9e9abd
Applied quantization for linear with bias=True in pre_quantization
YIWENX14 Mar 20, 2025
ae86a6a
Do not require checkpoint in quantize() unless it's gptq
larryliu0820 Mar 20, 2025
6f6fa6a
Add the execution permission after the runner file copied to android …
codereba Mar 20, 2025
766cc43
Link quantized ops lib in xnn_executor_runner
madhu-fb Mar 20, 2025
a19c227
Run android-perf more frequently
kirklandsign Mar 20, 2025
5fdfa51
Upgrade cmake on CI (#9471)
huydhn Mar 21, 2025
fc6d86e
Fix pyre issues from non-mypy dirs
kirklandsign Mar 21, 2025
f23616c
Make nightly versions consistent (#9453)
mergennachin Mar 21, 2025
c45d514
Handle case when native_schema is None
metascroy Mar 21, 2025
bd87ca5
CoreML doc updates (#9463)
metascroy Mar 21, 2025
2155284
[Executorch][SDPA] Fix bug in sdpa
pytorchbot Mar 21, 2025
05277dd
[ExecuTorch][XNNPACK] validate quant params before lowering
pytorchbot Mar 21, 2025
ce7aedf
Arm backend: Make setup.sh handle unset EULA variable (#9446)
perheld Mar 21, 2025
a828307
Introduce event_tracer_filter_base class
Gasoonjia Mar 21, 2025
a6cd1dc
Migrate java api
kirklandsign Mar 21, 2025
1873a6a
Arm backend: Port fix from xnnpack quantizer
per Feb 7, 2025
19b82bb
Arm backend: Add __repr__ to TosaArg
per Mar 3, 2025
60d9de6
Arm backend: Allow lists as input for rescales
per Mar 3, 2025
95d7cce
Arm backend: Add info about setup_path.sh and arm-none-eabi-gcc
zingo Feb 24, 2025
e22b21a
Arm backend: Add test pipeline for run_transform_for_annotation_pipel…
SaoirseARM Mar 21, 2025
78ee0e6
Arm backend: support int16 and int32 output tables. (#9359)
Erik-Lundell Mar 21, 2025
6b573af
[Android benchmark] Increase cool down time to 180 (#9480)
kirklandsign Mar 21, 2025
0c1c362
Refactor dtype handling in export_llama
jackzhxng Mar 21, 2025
2c3fd71
Expose ET errors as is
bsoyluoglu Mar 21, 2025
922a508
Fix lint violation from #9073 (#9496)
jathu Mar 21, 2025
a0bc7ea
[backend_api] Delete partitioner tags after lowering (#9501)
pytorchbot Mar 21, 2025
9a6a393
Remove Per-Op mode from DQPartitioner (#9502)
pytorchbot Mar 21, 2025
be92d7d
[Android] Use new Llm package API
kirklandsign Mar 21, 2025
d16b867
Handle value and tensor errors as NSErrors keeping the underlying err…
bsoyluoglu Mar 21, 2025
6b9b412
[ExecuTorch] Add //examples/portable/executor_runner:executor_runner_…
pytorchbot Mar 21, 2025
cedf52a
Export Mimi to xnnpack
iseeyuan Mar 21, 2025
0dd7e4e
Remove tuple from module implementation
bsoyluoglu Mar 22, 2025
d980ce0
Use xplat/caffe2:ovrsource_aten_Config.h for arvr build modes
tarun292 Mar 22, 2025
7f92671
Fix * 4 debug fix that got accidentally landed in op_sdpa.cpp (#9492)
kimishpatel Mar 22, 2025
fb24360
Use gradle to build the AAR
kirklandsign Mar 22, 2025
78f0e67
Enable optimized op_le broadcast against 1 element tensor
manuelcandales Mar 22, 2025
38851a1
Fix xnnpack quantization discrepancy for non-fp32
jackzhxng Mar 22, 2025
de0f6f1
Make export llama checkpoint and param optional
jackzhxng Mar 22, 2025
76ae537
support mimi model export
billmguo Mar 22, 2025
20abf34
Qualcomm AI Engine Direct - LPBQ enablement (#9313)
haowhsu-quic Mar 23, 2025
da7b003
test_mimi: Better proxy codes to make it work for both OSS and internal
iseeyuan Mar 23, 2025
6a4168f
Test mimi: remove redundant codes
iseeyuan Mar 23, 2025
8cd1b93
updte the return type of log_delegation_intermediate_output
Gasoonjia Mar 24, 2025
7d37bbc
Arm backend: Add all ops not supported on Ethos-U55 to support-check …
Erik-Lundell Mar 24, 2025
043c7a0
Arm backend: Fix flaky sigmoid 16/32 bit tests (#9537)
Erik-Lundell Mar 24, 2025
4b78d1a
Run setup-macos.sh in unittest-macos even in Buck mode (#9505)
swolchok Mar 24, 2025
7063c26
Add test_mimi to ci
iseeyuan Mar 24, 2025
9dce492
[build Folder Migration] Move core build files into scripts (#9434)
jathu Mar 24, 2025
90f0843
Update README to reflect build folder changes (#9544)
jathu Mar 24, 2025
88d9616
Fix scalar (single element tensor) binary ops on HiFi
mcremon-meta Mar 24, 2025
31d3545
Arm backend: Add CEIL Operator (#9267)
maddun01 Mar 24, 2025
94ec549
Add rules to build internal code.
shoumikhin Mar 24, 2025
341f318
Updates torchao pin to enable shared embedding quantization (#9548)
metascroy Mar 24, 2025
4399b23
Android aar update and enable emulator test
kirklandsign Mar 24, 2025
60280d9
Add SmolLM (smollm2) (#9541)
jackzhxng Mar 24, 2025
5c5b84e
Use cached PyTorch wheels on MacOS jobs (#9484)
huydhn Mar 24, 2025
54d1249
Remove dead test (#9363)
jackzhxng Mar 24, 2025
07e9672
Fix qwen import typo (#9535)
jackzhxng Mar 24, 2025
37036b3
Add Phi-4-mini README.md (#9302)
jackzhxng Mar 24, 2025
b160608
Merge remote-tracking branch 'executorch/main' into fix_merge_conflicts
cavusmustafa Mar 24, 2025
30c6821
Resolved conflicts with main branch
cavusmustafa Mar 24, 2025
682ae80
code formatting
cavusmustafa Mar 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
12 changes: 9 additions & 3 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
root = .
prelude = third-party/prelude
shim = shim
shim_et = shim_et

[repository_aliases]
bazel_skylib = shim
config = prelude
ovr_config = prelude
toolchains = shim
fbcode = shim
toolchains = shim_et
fbcode = shim_et
fbcode_macros = shim
fbsource = shim
fbsource = shim_et
buck = shim
gh_facebook_buck2_shims_meta = shim

[cxx]
cxxflags = -g -std=c++17
Expand All @@ -36,3 +39,6 @@

[buck2]
restarter=true

[oss]
folly_cxx_tests = False
5 changes: 5 additions & 0 deletions .ci/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ case "${IMAGE_NAME}" in
LINTRUNNER=""
CLANG_VERSION=12
;;
executorch-ubuntu-22.04-gcc11-aarch64)
LINTRUNNER=""
GCC_VERSION=11
;;
executorch-ubuntu-22.04-linter)
LINTRUNNER=yes
CLANG_VERSION=12
Expand All @@ -44,6 +48,7 @@ case "${IMAGE_NAME}" in
executorch-ubuntu-22.04-mediatek-sdk)
MEDIATEK_SDK=yes
CLANG_VERSION=12
ANDROID_NDK_VERSION=r27b
;;
executorch-ubuntu-22.04-clang12-android)
LINTRUNNER=""
Expand Down
2 changes: 1 addition & 1 deletion .ci/docker/ci_commit_pins/pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
27e35de6c288bffad1b4d18b393579c1d1a95547
295f2ed4d103017f7e19a7b8263ece606cd629db
1 change: 1 addition & 0 deletions .ci/docker/common/install_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ install_sdk() {
# These are the tools needed to build Android apps
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "platforms;android-34"
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "build-tools;33.0.1"
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "build-tools;35.0.0"
# And some more tools for future emulator tests
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "platform-tools"
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "tools"
Expand Down
5 changes: 4 additions & 1 deletion .ci/docker/common/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
install_miniconda() {
BASE_URL="https://repo.anaconda.com/miniconda"
CONDA_FILE="Miniconda3-py${PYTHON_VERSION//./}_${MINICONDA_VERSION}-Linux-x86_64.sh"
if [[ $(uname -m) == "aarch64" ]]; then
CONDA_FILE="Miniconda3-py${PYTHON_VERSION//./}_${MINICONDA_VERSION}-Linux-aarch64.sh"
fi

mkdir -p /opt/conda
chown ci-user:ci-user /opt/conda
Expand All @@ -36,7 +39,7 @@ install_python() {

# From https://github.com/pytorch/pytorch/blob/main/.ci/docker/common/install_conda.sh
if [[ $(uname -m) == "aarch64" ]]; then
conda_install "openblas==0.3.28=*openmp*"
conda_install "openblas==0.3.29=*openmp*" -c conda-forge
else
conda_install mkl=2022.1.0 mkl-include=2022.1.0
fi
Expand Down
12 changes: 12 additions & 0 deletions .ci/docker/common/install_java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

set -ex

apt-get update

apt-get install -y --no-install-recommends openjdk-17-jdk
2 changes: 1 addition & 1 deletion .ci/docker/conda-env-ci.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake=3.22.1
cmake=3.26.4
ninja=1.10.2
libuv
llvm-openmp
Expand Down
4 changes: 4 additions & 0 deletions .ci/docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ ARG BUCK2_VERSION
COPY ./common/install_buck.sh install_buck.sh
RUN bash ./install_buck.sh && rm install_buck.sh

# Install java
COPY ./common/install_java.sh install_java.sh
RUN bash ./install_java.sh && rm install_java.sh

# Setup user
COPY ./common/install_user.sh install_user.sh
RUN bash ./install_user.sh && rm install_user.sh
Expand Down
21 changes: 21 additions & 0 deletions .ci/scripts/build_android_instrumentation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

set -ex

if [[ -z "${PYTHON_EXECUTABLE:-}" ]]; then
PYTHON_EXECUTABLE=python3
fi
which "${PYTHON_EXECUTABLE}"

mkdir -p "${BUILD_AAR_DIR}"/executorch_android/src/androidTest/resources
cp extension/module/test/resources/add.pte "${BUILD_AAR_DIR}"/executorch_android/src/androidTest/resources

pushd "${BUILD_AAR_DIR}"
ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:testDebugUnitTest
ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew :executorch_android:assembleAndroidTest
popd
8 changes: 4 additions & 4 deletions .ci/scripts/build_llama_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ if [[ -z "${PYTHON_EXECUTABLE:-}" ]]; then
PYTHON_EXECUTABLE=python3
fi
which "${PYTHON_EXECUTABLE}"
CMAKE_PREFIX_PATH="$(python3 -c 'import torch as _; print(_.__path__[0])')"

install_executorch_and_backend_lib() {
echo "Installing executorch and xnnpack backend"
Expand All @@ -28,7 +27,6 @@ install_executorch_and_backend_lib() {
-DANDROID_ABI="${ANDROID_ABI}" \
-DCMAKE_INSTALL_PREFIX=cmake-android-out \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" \
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
Expand All @@ -44,6 +42,10 @@ install_executorch_and_backend_lib() {

build_llama_runner() {
echo "Building llama runner for Android..."
pushd extension/llm/tokenizers
echo "Updating tokenizers submodule"
git submodule update --init
popd
ANDROID_ABI=arm64-v8a
cmake -DBUCK2="${BUCK2}" \
-DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK"/build/cmake/android.toolchain.cmake \
Expand All @@ -54,11 +56,9 @@ build_llama_runner() {
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
-DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" \
-Bcmake-android-out/examples/models/llama examples/models/llama

cmake --build cmake-android-out/examples/models/llama -j4 --config Release
}
install_flatc_from_source
install_executorch_and_backend_lib
build_llama_runner
3 changes: 2 additions & 1 deletion .ci/scripts/gather_benchmark_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def is_valid_huggingface_model_id(model_name: str) -> bool:
def get_benchmark_configs() -> Dict[str, Dict]: # noqa: C901
"""
Gather benchmark configurations for a given set of models on the target operating system and devices.

CHANGE IF this function's return changed:
extract_model_info() in executorch/.github/scripts/extract_benchmark_results.py IF YOU CHANGE THE RESULT OF THIS FUNCTION.
Args:
None

Expand Down
10 changes: 9 additions & 1 deletion .ci/scripts/gather_test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# WARNING: The CI runner logic should directly be in the corresponding yml files
# This file will be deleted once the reference in periodic.yml is deleted.

import itertools
import json
import os
Expand All @@ -30,6 +33,7 @@
"dl3": "linux.4xlarge.memory",
"emformer_join": "linux.4xlarge.memory",
"emformer_predict": "linux.4xlarge.memory",
"phi-4-mini": "linux.4xlarge.memory",
}
}

Expand Down Expand Up @@ -104,8 +108,12 @@ def model_should_run_on_target_os(model: str, target_os: str) -> bool:
For example, a big model can be disabled in macos due to the limited macos resources.
"""
if target_os == "macos":
# Disabled in macos due to limited resources, and should stay that way even if
# we otherwise re-enable.
return model not in ["llava"]
return True
# Disabled globally because we have test-llava-runner-linux that does a more
# comprehensive E2E test of llava.
return model not in ["llava"]


def export_models_for_ci() -> dict[str, dict]:
Expand Down
16 changes: 7 additions & 9 deletions .ci/scripts/setup-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ set -exu
# shellcheck source=/dev/null
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"

BUILD_TOOL=$1
if [[ -z "${BUILD_TOOL:-}" ]]; then
echo "Missing build tool (require buck2 or cmake), exiting..."
exit 1
else
echo "Setup Linux for ${BUILD_TOOL} ..."
fi
read -r BUILD_TOOL BUILD_MODE EDITABLE < <(parse_args "$@")

# As Linux job is running inside a Docker container, all of its dependencies
# have already been installed, so we use PyTorch build from source here instead
# of nightly. This allows CI to test against latest commits from PyTorch
install_executorch "use-pt-pinned-commit"
build_executorch_runner "${BUILD_TOOL}"
if [[ "${EDITABLE:-false}" == "true" ]]; then
install_executorch --use-pt-pinned-commit --editable
else
install_executorch --use-pt-pinned-commit
fi
build_executorch_runner "${BUILD_TOOL}" "${BUILD_MODE}"

if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]]; then
do_not_use_nightly_on_ci
Expand Down
16 changes: 7 additions & 9 deletions .ci/scripts/setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ set -exu
# shellcheck source=/dev/null
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"

BUILD_TOOL=$1
if [[ -z "${BUILD_TOOL:-}" ]]; then
echo "Missing build tool (require buck2 or cmake), exiting..."
exit 1
else
echo "Setup MacOS for ${BUILD_TOOL} ..."
fi
read -r BUILD_TOOL BUILD_MODE EDITABLE < <(parse_args "$@")

install_buck() {
if ! command -v zstd &> /dev/null; then
Expand Down Expand Up @@ -135,8 +129,12 @@ print_cmake_info
install_pytorch_and_domains
# We build PyTorch from source here instead of using nightly. This allows CI to test against
# the pinned commit from PyTorch
install_executorch "use-pt-pinned-commit"
build_executorch_runner "${BUILD_TOOL}"
if [[ "$EDITABLE" == "true" ]]; then
install_executorch --use-pt-pinned-commit --editable
else
install_executorch --use-pt-pinned-commit
fi
build_executorch_runner "${BUILD_TOOL}" "${BUILD_MODE}"

if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]]; then
do_not_use_nightly_on_ci
Expand Down
33 changes: 33 additions & 0 deletions .ci/scripts/test_ane_static_llama.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
# Copyright (c) Qualcomm Innovation Center, Inc.
# All rights reserved
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

set -exu

source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"

export EXECUTORCH_ROOT="$(dirname "${BASH_SOURCE[0]}")/../.."

if [[ -z "${PYTHON_EXECUTABLE:-}" ]]; then
PYTHON_EXECUTABLE=python3
fi

which "${PYTHON_EXECUTABLE}"

# Update tokenizers submodule
pushd $EXECUTORCH_ROOT/extension/llm/tokenizers
echo "Update tokenizers submodule"
git submodule update --init
popd

pushd $EXECUTORCH_ROOT/examples/apple/coreml/llama

# Download stories llama110m artifacts
download_stories_model_artifacts

python export.py -n model.pte -p params.json -c stories110M.pt --seq_length 32 --max_seq_length 64 --dtype fp16 --coreml-quantize c4w

popd
File renamed without changes.
5 changes: 4 additions & 1 deletion .ci/scripts/test_llama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ cmake_install_executorch_libraries() {
rm -rf cmake-out
retry cmake \
-DCMAKE_INSTALL_PREFIX=cmake-out \
-DCMAKE_PREFIX_PATH="$(python3 -c 'import torch as _; print(_.__path__[0])')" \
-DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" \
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
Expand All @@ -174,6 +173,10 @@ cmake_install_executorch_libraries() {

cmake_build_llama_runner() {
echo "Building llama runner"
pushd extension/llm/tokenizers
echo "Updating tokenizers submodule"
git submodule update --init
popd
dir="examples/models/llama"
retry cmake \
-DCMAKE_INSTALL_PREFIX=cmake-out \
Expand Down
Loading
Loading