Debuly
ExecuTorch logo

ExecuTorch

PyTorch's open-source framework for exporting models and running them on phones, microcontrollers and other edge devices.

Open source

What is ExecuTorch?

ExecuTorch is the on-device AI framework from the PyTorch ecosystem. It lets you export a PyTorch model directly, without converting to a separate intermediate format, then compile it ahead of time for the hardware you target and run it with a small C++ runtime. The core runtime has a base footprint of about 50KB, and the same exported .pte file can run on microcontrollers up to smartphones. You choose from more than 12 hardware backends, including XNNPACK for Arm CPUs, Core ML for Apple devices, the Qualcomm AI Engine, Vulkan, MediaTek and Samsung, by changing a single partitioner line. Native APIs are available for C++, Swift, Kotlin, Objective-C and WebAssembly. Because inference stays on the device, text, vision and audio features can work offline, keep data private and avoid cloud compute bills. The framework is fully open source, and an experimental in-browser playground runs models on WebGPU.

Use cases

  • Deploy PyTorch models to mobile apps
  • Run language models on-device
  • Add offline speech-to-text to an app
  • Run vision models on edge hardware
  • Quantize models for small devices
  • Target Apple, Qualcomm or Arm hardware
  • Prototype models in the browser with WebGPU

Who it's for

  • ML engineers
  • Mobile developers
  • Embedded developers
  • AI researchers

Why use ExecuTorch

  • Models stay in the PyTorch toolchain, so there is no need to rewrite them in C++ or convert to vendor formats.
  • On-device inference keeps personal data on the device and works without a network connection.
  • No cloud compute bills or API rate limits, so costs do not grow with each added user.
  • Switching hardware backends is a one-line change, which eases support for several device families.
  • The page states it is used in production for billions of users at Meta.

ExecuTorch features

  • Direct export from PyTorch with core ATen operators preserved
  • Ahead-of-time compilation tuned to the target device
  • 12+ hardware backends such as XNNPACK, Core ML and Qualcomm
  • Portable C++ runtime from microcontrollers to smartphones
  • 50KB base runtime footprint
  • Native APIs for C++, Swift, Kotlin, Objective-C and WebAssembly
  • Quantization through torchao
  • Modular, composable optimization steps
  • Browser playground for chat, speech-to-text, camera vision and segmentation on WebGPU

ExecuTorch integrations

  • PyTorch
  • torchao
  • XNNPACK
  • Arm Kleidi
  • Core ML
  • Qualcomm Hexagon
  • Vulkan
  • MediaTek
  • Samsung
  • WebGPU

How to get started with ExecuTorch

  1. Export your PyTorch model with torch.export to produce a graph equivalent to the original.
  2. Lower it for your target hardware with to_edge_transform_and_lower and a backend partitioner such as XNNPACK, Core ML or Qualcomm.
  3. Save the result as a .pte file using to_executorch.
  4. Load the .pte file in your app through the C++, Swift, Kotlin, Objective-C or WebAssembly API and call forward.
  5. Try the browser playground first if you want to see models run on WebGPU without installing anything.

ExecuTorch limitations

  • The browser playground is labeled experimental
  • Developers must pick a backend and export pipeline for each target device
  • Edge power, thermal and memory limits still constrain which models fit

ExecuTorch pricing

ExecuTorch is open source, so you can use and self-host it for free.

Prices can change and may vary by country or exclude tax. Check the official pricing page.

ExecuTorch alternatives

The main ExecuTorch alternatives listed on Debuly are llama.cpp, LlamaEdge, Nota AI, TensorFlow, bitnet.cpp and DeepEdge. The table compares pricing and platforms; order is A–Z.

ExecuTorch compared with its alternatives
ToolPricingStarting pricePlatforms
ExecuTorchOpen source—Android, Web, API, Self-hosted
bitnet.cppOpen source—CLI, Windows, macOS, Self-hosted
DeepEdgeFree trial—Web, Self-hosted
llama.cppOpen source—macOS, Windows, Linux, CLI
LlamaEdgeOpen source—CLI, API, Self-hosted
Nota AIPricing unknown—CLI, Python library
TensorFlowOpen source—Python, Web, Android, iOS
  1. bitnet.cpp

    Microsoft's official open-source inference framework for 1-bit LLMs, with optimized kernels for running BitNet b1.58 models on CPUs and GPUs.

  2. DeepEdge

    Low-code deep learning platform to label, train, optimize and deploy computer vision models on edge hardware.

  3. llama.cpp

    Open-source engine and desktop app for running LLMs locally, with a built-in OpenAI-compatible API server and web chat UI.

  4. LlamaEdge

    Small Rust and WebAssembly runtime that serves local LLMs through an OpenAI-compatible API on CPUs, GPUs and edge devices.

  5. Nota AI

    Hardware-aware AI model optimization platform, NetsPresso, plus edge AI vision products for traffic, in-cabin monitoring and video analysis.

  6. TensorFlow

    Open-source machine learning framework with Keras, TensorFlow.js, LiteRT and TFX for building and deploying models.

ExecuTorch FAQ

Is ExecuTorch free and open source?

The page describes ExecuTorch as fully open source, with contributions from hardware partners, and its code is on the pytorch/executorch GitHub repository. No pricing or plans are listed.

How much does ExecuTorch cost?

No prices are published. The site stresses that on-device inference means no cloud compute bills and no API rate limits.

Which hardware does ExecuTorch support?

It lists 12+ backends, including XNNPACK with Arm Kleidi for CPUs, Core ML for Apple devices, Qualcomm Hexagon NPUs, Vulkan, MediaTek and Samsung.

Which languages can I use to run models?

Native APIs are shown for C++, Swift, Kotlin, Objective-C and WebAssembly, and the export step is written in Python with PyTorch.

Can I try ExecuTorch without installing it?

Yes. An experimental playground runs models on your GPU in the browser using WebGPU, including chat, speech-to-text, camera vision and Segment Anything.

Does ExecuTorch have an API?

It provides programming APIs for exporting and running models rather than a hosted service, covering Python for export and C++, Swift, Kotlin, Objective-C and WebAssembly for running.

What are alternatives to ExecuTorch?

Alternatives for on-device inference include TensorFlow Lite, ONNX Runtime, Core ML, llama.cpp and MLC LLM.

Sources & verification

Facts on this page come from the official sources below, each with the date we read it. Written by Debuly; the vendor did not review this page.

SourceTypeAccessed
executorch.aiofficial
github.com/pytorch/executorchrepository
executorch.ai/pricingpricing
executorch.ai/official
executorch.ai/playground/official

Image credits

  • Logo: from raw.githubusercontent.com · fetched · Vendor trademark, used only to identify the product; removed on request
  • Cover: none collected yet, so a generated tile is shown.

Spot an error? Report an issue with this listing. We also remove a logo or image on the owner's request.