https://github.com/pytorch/executorch
On-device AI across mobile, embedded and edge for PyTorch
https://github.com/pytorch/executorch
deep-learning embedded gpu machine-learning mobile neural-network tensor
Last synced: 1 day ago
JSON representation
On-device AI across mobile, embedded and edge for PyTorch
- Host: GitHub
- URL: https://github.com/pytorch/executorch
- Owner: pytorch
- License: other
- Created: 2022-02-25T17:58:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-11-18T02:15:58.000Z (9 days ago)
- Last Synced: 2026-11-18T04:19:34.385Z (8 days ago)
- Topics: deep-learning, embedded, gpu, machine-learning, mobile, neural-network, tensor
- Language: Python
- Homepage: https://executorch.ai
- Size: 406 MB
- Stars: 5,180
- Watchers: 76
- Forks: 1,252
- Open Issues: 1,404
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Agents: AGENTS.md
- Claude: CLAUDE.md
Awesome Lists containing this project
- awesome-ai - ExecuTorch - Meta's on-device framework with 50KB footprint supporting 12+ hardware backends. (📱 Edge & On-Device AI)
- awesome-ai-hardware - ExecuTorch - PyTorch runtime for deploying models to phones, wearables, and embedded devices. (Compilers and Runtimes)
- awesome-npu - ExecuTorch - PyTorch Edge runtime for mobile/embedded/MCU with NPU delegation. (Software / Runtimes & inference engines)
- Awesome-LLMs-on-device - [Github
- awesome-agents - ExecuTorch - PyTorch's on-device inference framework for mobile and edge AI with optimized backends. (Edge and Retro Inference)
- Awesome-EdgeAI - ExecuTorch - PyTorch model export and on-device execution (Models and runtimes / Generative inference stacks)
- AiTreasureBox - pytorch/executorch - 11-03_3447_1](https://img.shields.io/github/stars/pytorch/executorch.svg)|On-device AI across mobile, embedded and edge for PyTorch| (Repos)
- awesome-cpu-first-ai - ExecuTorch - PyTorch's on-device inference runtime; designed for mobile and embedded, with CPU kernels for ARM (XNNPACK backend) as the primary deployment target and cross-compilation support for Android, iOS, and Linux. *(Also listed under On-Device, Edge, ARM, and SBCs.)* (Runtimes and Inference Engines)
- awesome-ai-agent-stack - pytorch/executorch - On-device AI across mobile and embedded for PyTorch models. (Local Models, Inference & Hardware)
- github-ultimate-repos - pytorch/executorch - | ⭐ 5,122★ | 🍴 1,219 | 💻 `Python`🔗 <https://github.com/pytorch/executorch>📝 On-device AI across mobile, embedded and edge for PyTorch⚙️ `BPE/SentencePiece tokenization -> RoPE positional rotation -> FlashAttention-2 KV-cache -> fused quantized GEMM execution -> Softmax top-p sampling.` (📜 Master Categorized Repository Directory (100% Clickable Links) / [02] ARTIFICIAL INTELLIGENCE, LARGE LANGUAGE MODELS, FOUNDATION MODELS & QUANTIZATION)
- awesome-selfhosted-ai - ExecuTorch - PyTorch runtime and toolchain for deploying models to mobile, embedded and edge hardware. (LLM Runtimes and Inference)
- awesome-mobile-llm - PyTorch ExecuTorch - device inference capabilities across mobile and edge devices including wearables, embedded devices and microcontrollers. (Infrastructure / Deployment of LLMs on Device / Deployment Frameworks)
- awesome-apple-silicon-llm - pytorch/executorch - PyTorch's on-device runtime, with MPS and Core ML delegates for Apple hardware. (Engines with a Metal backend)
- awesome-opensource-ai - ExecuTorch - PyTorch runtime and toolchain for deploying AI models on mobile, embedded, and edge devices.  (11. Specialized Domains)
- awesome-os-llm - ExecuTorch - PyTorch's on-device runtime. Used to ship small open models onto phones, not to serve a 70B. (Runtimes and local serving / Edge and in-browser)
- awesome-local-llm - executorch - on-device AI across mobile, embedded and edge for PyTorch (Inference engines)
README
**ExecuTorch** is a [PyTorch](https://pytorch.org/) 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
* Compatible systems: Linux x86_64, 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](docs/source/ir-ops-set-definition.md) are linked into the prebuilt module
* Only the [XNNPACK backend delegate](docs/source/backends-xnnpack.md) is linked into the prebuilt module.
* \[macOS only] [Core ML](docs/source/backends-coreml.md) and [MPS](docs/source/backends-mps.md) backend
are also linked into the prebuilt module.
Please visit the [ExecuTorch website](https://pytorch.org/executorch) for
tutorials and documentation. Here are some starting points:
* [Getting Started](https://pytorch.org/executorch/main/getting-started-setup)
* Set up the ExecuTorch environment and run PyTorch models locally.
* [Working with local LLMs](docs/source/llm/getting-started.md)
* Learn how to use ExecuTorch to export and accelerate a large-language model
from scratch.
* [Exporting to ExecuTorch](https://pytorch.org/executorch/main/tutorials/export-to-executorch-tutorial)
* Learn the fundamentals of exporting a PyTorch `nn.Module` to ExecuTorch, and
optimizing its performance using quantization and hardware delegation.
* Running LLaMA on [iOS](docs/source/llm/llama-demo-ios.md) and [Android](docs/source/llm/llama-demo-android.md) devices.
* Build and run LLaMA in a demo mobile app, and learn how to integrate models
with your own apps.