MCPcopy Index your code
hub / github.com/pytorch/executorch

github.com/pytorch/executorch @v1.3.1

repository ↗ · DeepWiki ↗ · release v1.3.1 ↗ · Ask this repo → · + Follow
35,423 symbols 149,267 edges 3,071 files 6,950 documented · 20% updated todayv1.3.1 · 2026-05-29★ 4,784907 open issues
README

ExecuTorch is a PyTorch platform that provides infrastructure to run PyTorch programs everywhere from AR/VR wearables to standard on-device iOS and Android mobile deployments. One of the main goals for ExecuTorch is to enable wider customization and deployment capabilities of the PyTorch programs.

The executorch pip package is in beta. * Supported python versions: 3.10, 3.11, 3.12, 3.13 * Compatible systems: Linux x86_64, Linux aarch64, macOS aarch64

The prebuilt executorch.runtime module included in this package provides a way to run ExecuTorch .pte files, with some restrictions: * Only core ATen operators are linked into the prebuilt module * Only the XNNPACK backend delegate is linked into the prebuilt module. * [macOS only] Core ML and MPS backend are also linked into the prebuilt module. * [Linux x86_64] QNN backend is linked into the prebuilt module. * [Linux] OpenVINO backend is also linked into the prebuilt module. OpenVINO requires the runtime to be installed separately: pip install executorch[openvino]

Please visit the ExecuTorch website for tutorials and documentation. Here are some starting points: * Getting Started * Set up the ExecuTorch environment and run PyTorch models locally. * Working with local LLMs * Learn how to use ExecuTorch to export and accelerate a large-language model from scratch. * Exporting to ExecuTorch * Learn the fundamentals of exporting a PyTorch nn.Module to ExecuTorch, and optimizing its performance using quantization and hardware delegation. * Running etLLM on iOS and Android devices. * Build and run LLaMA in a demo mobile app, and learn how to integrate models with your own apps.

Extension points exported contracts — how you extend this code

LlmCallback (Interface)
Callback interface for Llama model. Users can implement this interface to receive the generated tokens and statistics. [1 …
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmCallback.java
LLaMABridgeInterface (Interface)
(no doc)
examples/demo-apps/react-native/rnllama/bridge/LlamaBridge.ts

Core symbols most depended-on inside this repo

run
called by 1769
backends/arm/test/tester/serialize.py
to
called by 1382
examples/models/llama/experimental/subclass.py
append
called by 1183
exir/_serialize/_cord.py
append
called by 1144
backends/vulkan/utils.py
_test_op
called by 1021
backends/test/suite/operators/__init__.py
ones
called by 990
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java
zeros
called by 790
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java
info
called by 752
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py

Shape

Method 19,130
Function 9,363
Class 6,581
Route 346
Interface 2
Enum 1

Languages

Python99%
Java1%
TypeScript1%

Modules by API surface

backends/mlx/test/test_ops.py786 symbols
backends/qualcomm/tests/models.py722 symbols
backends/qualcomm/tests/test_qnn_delegate.py526 symbols
backends/apple/mps/test/test_mps.py397 symbols
backends/vulkan/test/test_vulkan_delegate.py332 symbols
exir/emit/test/test_emit.py213 symbols
exir/tests/test_passes.py195 symbols
backends/mlx/ops.py186 symbols
backends/nxp/tests/models.py185 symbols
backends/qualcomm/quantizer/annotators/htp_rules.py170 symbols
backends/nxp/quantizer/patterns.py138 symbols
backends/vulkan/utils.py129 symbols

Dependencies from manifests, versioned

@babel/core7.25.2 · 1×
@expo/vector-icons14.0.2 · 1×
@react-navigation/bottom-tabs7.0.0 · 1×
@react-navigation/native7.0.0 · 1×
@types/jest29.5.12 · 1×
@types/react18.3.12 · 1×
@types/react-test-renderer18.3.0 · 1×
expo52.0.11 · 1×
expo-blur14.0.1 · 1×
expo-constants17.0.3 · 1×
expo-document-picker13.0.1 · 1×
expo-file-system18.0.4 · 1×

For agents

$ claude mcp add executorch \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact