--- id: executorch version: "1.4.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # executorch — On-device AI across mobile, embedded and edge for PyTorch License: permissive · Maintenance: active · Downloads: 448.4K/mo ## What it is and what it does ExecuTorch is a PyTorch deployment platform that bridges the gap between model development and on-device execution. It provides tools to export trained PyTorch models into a portable `.pte` format optimized for mobile, embedded, and edge hardware—including AR/VR wearables, iOS, and Android devices. The package includes both an export path (EXIR) for converting models and a prebuilt runtime module for executing those models with hardware acceleration. The runtime is built around a restricted but efficient operator set and pluggable backend delegates. The prebuilt wheel includes XNNPACK for general acceleration, with platform-specific backends: Core ML and MPS on macOS, QNN on Linux x86_64, and OpenVINO on Linux. This architecture trades some model flexibility for predictable performance and small binary size on constrained devices. A minimal build mode is available for export-only workflows, reducing dependencies significantly. Use it for: - Export a trained PyTorch model and deploy it to iOS or Android apps without requiring the full PyTorch runtime on the device. - Accelerate inference on edge devices using hardware-specific backends like Core ML on Apple Silicon or QNN on Qualcomm processors. - Run large language models locally on mobile devices by exporting and quantizing them with ExecuTorch's optimization pipeline. - Build AR/VR applications that execute neural networks directly on wearable hardware with minimal latency and power consumption. - Create a minimal export-only environment for model conversion without bundling runtime dependencies like pandas or hydra-core. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. ExecuTorch exports and runs PyTorch models on mobile, embedded, and edge devices with support for hardware acceleration backends like XNNPACK, Core ML, and QNN. Yes, if you need to deploy PyTorch models to mobile or edge devices. The active maintenance, permissive license, and platform-specific prebuilt backends make it a practical choice for on-device AI. Install with conditions: verify that your model uses only core ATen operators, confirm backend availability for your target platform, and plan for the 21 runtime dependencies unless you use the minimal build mode. ## Install pip install executorch uv add executorch poetry add executorch ## Installing executorch Before you install: Medium install friction: 21 runtime dependencies including torch, numpy, pandas, and optional backends (coremltools, hydra-core, omegaconf). A minimal build mode available via EXECUTORCH_BUILD_MINIMAL=1 reduces the dependency footprint for export-only use. Package is actively maintained with recent releases. License in practice: BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and disclaimer. Quickstart: pip install executorch torch import executorch.runtime # Load and run a .pte model file runtime = executorch.runtime.Runtime() result = runtime.run(model_path) Requires torch to be installed separately; prebuilt runtime supports only core ATen operators and specific backends (XNNPACK always; Core ML and MPS on macOS; QNN on Linux x86_64; OpenVINO requires separate pip install executorch[openvino]). Verify before relying: - Whether the prebuilt runtime's core ATen operator set is sufficient for your model architecture - Performance characteristics and latency benchmarks for your target hardware - Compatibility of your PyTorch model version with the export pipeline ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 448.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pytorch mobile deployment, on-device model inference, edge ai runtime, pytorch export optimization, mobile neural network execution, hardware accelerated inference, embedded pytorch models, mobile-deployment, edge-inference, model-export [View on SkillFed](https://skillfed.io/packages/executorch) · [View on PyPI](https://pypi.org/project/executorch/)