Índice do artigofaltam 10 min de leitura
The question "where will my app's AI run?" has a new answer: inside the device itself, with the same PyTorch model that used to live only on the server.
For years, putting artificial intelligence into an app meant choosing between a cloud API, with a bill per call and data traveling over the network, or a painful model conversion process to run something locally. ExecuTorch, the inference runtime of the PyTorch ecosystem, tackles exactly that second path: it takes the model the way the data team trained it and runs it inside the phone, the smart glasses or the sensor. This article explains what it is, what already runs in production with it, and how to decide whether your next app should embed AI, stay in the cloud or combine both.
Article summary
- ExecuTorch is the open source runtime of the PyTorch ecosystem for running AI models inside apps and devices: it exports the model to a .pte file and runs it on iOS, Android, desktop and microcontrollers, with a 50 KB base runtime.
- It is in production in Instagram, WhatsApp, Messenger and Facebook, and in the Ray-Ban Meta glasses, reaching billions of people according to Meta itself.
- Version 1.0 came out in October 2025; the latest stable version, checked in November 2026, is 1.5.1, from September, and the documentation lists 15 acceleration backends, from Apple and Qualcomm to Arm and Intel.
- Embedding AI reduces latency, data exposure and cost per call, but it demands compact models, battery management and model versioning. For most products, the winning design is hybrid.
What ExecuTorch is and where it already runs
ExecuTorch is the PyTorch ecosystem's inference runtime for running AI models directly on the user's device: phone, smart glasses, desktop and even microcontroller. It is an open source project under the BSD license, created by Meta and developed together with Apple, Arm, Cadence, Intel, MediaTek, NXP, Qualcomm and Samsung, the hardware partners listed in the version 1.0 announcement.
Four numbers sum up where the project stands:
Source: executorch.ai, official documentation and the project's GitHub releases, read on August 26, 2026, with version and backends checked on November 11, 2026.
This is not lab technology. Meta's engineering post from July 2025 details features that already run on-device in the company's apps:
- Instagram: automatic sticker cutouts from photos, with the SqueezeSAM model;
- WhatsApp: bandwidth estimation to adjust call quality in real time;
- Messenger: language identification that works even with end-to-end encryption, because the text does not need to leave the device;
- Facebook: background music suggestions based on the post's images, with the SceneX model.
On wearable hardware, Reality Labs states the runtime is in production across its wearables line, including the Meta Ray-Ban Display glasses, for speech recognition, motion sensors and computer vision; the project's website also lists the Quest 3 headset among production uses. The "billions of people" reached is Meta's own claim about its apps, but it serves as the most public stress test an on-device runtime has ever received.
The problem it solves: model conversion was the bottleneck
Previously, taking a PyTorch model to a phone meant converting it to another format, such as ONNX or TFLite, or rewriting it in C++. Each conversion lost operation semantics, broke debugging and created numerical divergences between the model validated in training and the one running on the device. The version 1.0 announcement describes this friction as the classic bottleneck of on-device deployment: ML teams spending weeks hunting result differences that were born in the translation, not in the model.
The weight of this problem grew with multimodal models. Rewriting a standard text transformer by hand was laborious but feasible; rewriting a model that combines image, audio and text encoders, swapping components with every research iteration, no longer was. Since the project states that over 90% of AI research happens in PyTorch, the bet was to eliminate the translation rather than speed it up.
Before
Convert or rewrite- Export to an intermediate format
- Numerical divergence between training and production
- Errors hard to trace back to the original code
- Rewrite in C++ for each platform
With ExecuTorch
Export straight from PyTorch- torch.export generates the executable graph
- Same model from training to device
- Debugging points to the PyTorch code
- One .pte file for all platforms
The central promise is not to be the fastest runtime on the market: it is fidelity. What the data team validated in training is what runs in the user's pocket.
How it works: from PyTorch model to .pte file
The flow has three steps: export the model with torch.export, optimize the graph for the target hardware with the chosen backend's partitioner, and embed the resulting .pte file in the app, where a C++ runtime executes it. Switching target hardware means changing one line of code: the partitioner.
For the app developer, the model becomes a file like any other: the mobile team loads the .pte with the platform API (Swift on iOS, Kotlin on Android, C++ and WebAssembly on the other targets) and calls inference. For LLM and multimodal cases, the project offers higher-level APIs, such as the multimodal runner, which take text, image and audio and return streaming tokens, without the app having to orchestrate encoder by encoder. Quantization, an almost mandatory step to fit a model on a phone, comes into the same flow via torchao, the PyTorch ecosystem's own optimization library.
Which hardware it accelerates: CPU, GPU and NPU backends
The stable documentation, now at version 1.5, lists 15 acceleration backends, covering CPU, GPU, NPU and DSP from the main manufacturers. In practice, the same model can be optimized for an iPhone's Neural Engine, Qualcomm's Hexagon NPU or a Cortex-M microcontroller in an industrial sensor.
| Target | Backends | Where it shows up |
|---|---|---|
| CPU | XNNPACK (with Arm Kleidi), Arm Cortex-M | Any phone, microcontrollers |
| GPU | Vulkan, MLX (Apple Silicon), CUDA, WebGPU, Arm VGF | Android, Apple, desktop, browser |
| Phone NPU | Core ML (Apple), Qualcomm AI Engine, MediaTek, Samsung Exynos | Chips in current devices |
| Embedded NPU | Arm Ethos-U, NXP eIQ Neutron | IoT, industrial, automotive |
| DSP and PC | Cadence DSP, OpenVINO (Intel) | Signal processing and AI PCs |
Source: backends page of the official documentation (version 1.5) and the version 1.0 announcement, read on November 11, 2026.
Not everything has the same maturity. In the 1.0 announcement, five paths were promoted to production-ready: XNNPACK, Core ML, Qualcomm AI Engine, Arm Ethos-U and Vulkan. MediaTek, Apple MPS and Cadence appeared at alpha or beta stage. In the 1.5 documentation, MPS no longer appears in the backends table: for Apple GPUs it lists MLX, still experimental on iOS, and WebGPU comes in as an experimental option for the browser. 1.5 also started accepting AMD GPUs (ROCm) in the CUDA backend, optionally. The common denominator of any device is still the CPU via XNNPACK; the extra NPU gain depends on the chip the user has in their pocket, and a well-designed app needs to work in both scenarios.
Which models already run: compact LLMs, vision and audio
The official repository has examples of compact LLMs such as Llama 3.2, Qwen 3, Phi-4-mini and Liquid AI's LFM2, multimodal models such as Llava, Voxtral, Gemma 3 and Gemma 4, and vision and speech models such as Whisper, Parakeet, MobileNetV2, DeepLabV3 and YOLO26; version 1.5, from September 2026, added flows for Qwen 3.5 in a MoE architecture. The README itself warns that these examples are starting points, not a closed compatibility list. The list matters less for the catalog and more for the pattern: they are all compact or quantizable models, of a size that fits in phone memory.
The bridge to the rest of the ecosystem is the partnership with Hugging Face: the optimum-executorch library exports models from transformers straight to the runtime's format. In the version 1.0 announcement, Hugging Face stated that over 80% of the most downloaded edge-friendly LLMs on the platform run on ExecuTorch without adjustments, and Mistral AI described running Voxtral, its audio and text model, without format conversion.
The honest limit: frontier models do not fit. Nobody runs the equivalent of a full GPT or Claude on a phone; the on-device game belongs to compact, quantized models chosen for a specific task. The good news is that this class of model has improved a lot, and tasks such as transcription, classification, detection and short answers are already its territory.
What changes for app builders: the architecture decision
Embedding inference changes four calculations at once: latency (the answer does not make a round trip over the network), privacy (the data does not leave the device), availability (it works offline and on poor networks) and cost (local inference does not generate a bill per call). None of these advantages is automatic: they apply to the features that fit in a compact model running on the real hardware of your user base.
For Brazilian products, the privacy argument has a practical consequence: processing sensitive data locally reduces the processing surface and simplifies the conversation about LGPD (Brazil's data protection law) with the legal team and the app stores, although it does not replace a privacy policy or consent design. Voice, camera images, typed text and health are exactly the data that weigh most in a Data Safety and App Privacy form, and that local inference lets you keep on the device.
The architecture decision becomes clearer when you cross two axes: how sensitive the data is and how heavy the AI the feature requires is.
Most real products fall into the hybrid quadrant: the app embeds what is sensitive, frequent and needs to respond instantly, and sends to the cloud what requires a large model. It is the same cost reasoning we apply when comparing an AI subscription with an on-demand API: the question is never which technology is better in the abstract, it is where each call costs less and delivers more.
The limits that go into the calculation
On-device AI charges in four currencies: model size, energy, fragmentation and update cycle. The first has already come up: the quality of a compact model needs to be validated per use case, not assumed.
The second is physics. Sustained inference generates heat, and a phone has no fan: the project's own material lists power consumption and thermal throttling among the core constraints of the edge, with devices reducing performance when they heat up. An AI feature that runs all the time needs a battery budget, not just a memory budget.
The third is device diversity, especially on Android in Brazil: the NPU of the premium flagship does not exist in the entry-level phone a large part of the user base uses. The CPU path works on all of them, but performance varies, and the product needs to define what to degrade on weak devices.
The fourth is operational: an embedded model is versioned with the app. Fixing a model in the cloud is a deploy; fixing an embedded model is a store release or your own asset download mechanism, with version management the cloud does not require. And it is worth noting the maturity: version 1.0 turned one year old in October 2026, the backends are at different stages and the release cadence remains intense: the series went from 1.0 to 1.5.1 in eleven months, between October 2025 and September 2026. That is healthy for the project, but it calls for monitoring by whoever adopts it.
ExecuTorch, LiteRT, Core ML or ONNX Runtime: which runtime for which case
There is no single winner: the choice follows the ecosystem where the model is born and the product's platforms. The rule of thumb is in the table.
| Runtime | Maintainer | Makes most sense when |
|---|---|---|
| ExecuTorch | PyTorch community, with Meta and partners | The model is born in PyTorch and the product is cross-platform |
| LiteRT (formerly TensorFlow Lite) | The team already operates Google's ML ecosystem on Android and iOS | |
| Core ML | Apple | The product is exclusive to the Apple ecosystem |
| ONNX Runtime | Microsoft | The company standardized models in ONNX for several environments |
Source: official websites and documentation of the four projects, read on August 26, 2026.
All four are mature and free; the real cost of the choice is in conversion and debugging when the model leaves its original format. LiteRT and Core ML accept models converted from PyTorch, and for many teams this works well: if your app is Android with a consolidated Google stack, or 100% Apple with a stable model that rarely changes, the native paths remain great choices. ExecuTorch's differentiator is eliminating the conversion step for those who iterate on models frequently in PyTorch, which is where most research and fine-tuning happens today.
How to start without rewriting the app
The lowest-risk path starts with a small feature and a ready-made model, not with the dream LLM. The runtime goes into the app as a library and the model goes in as a file; no screen needs to be rewritten.
- Choose an edge feature, something small and frequent: classify an image, transcribe voice, detect an object, suggest a short reply.
- Start from a validated model: the official examples and optimum-executorch cover the common cases before you train anything.
- Export and measure on a real device: latency, memory and battery are evaluated on your user base's device, not on the simulator.
- Define the fallback: what happens on a weak device or without the model downloaded: degrade the feature, use a smaller model or call the cloud.
- Only then scale the scope: on-device LLM and multimodal come in after the export, measure and update cycle is running smoothly.
For React Native apps, Software Mansion maintains React Native ExecuTorch, cited by the project among the ecosystem's integrations, which also opens the on-device path to teams that do not write Swift or Kotlin day to day. And if your product has no AI at all yet, this architecture decision is exactly the kind of conversation worth having before the first line of code.
Frequently asked questions
It is the open source runtime of the PyTorch ecosystem for running AI models directly on the device: phones, smart glasses, desktops and microcontrollers, without relying on a server.
Yes. It is an open source project under the BSD license, maintained by the PyTorch community with Meta and hardware partners such as Apple, Arm, Qualcomm and Samsung.
Yes, with APIs in Swift, Kotlin, Objective-C and C++. It also runs on Linux, Windows, macOS, WebAssembly and embedded systems with microcontrollers.
Compact LLMs such as Llama 3.2, Qwen 3 and Phi-4-mini, multimodal models such as Llava, Voxtral and Gemma 4, and vision and speech models such as Whisper and MobileNetV2, plus PyTorch models exportable via torch.export.
No. Frontier models remain in the cloud; the most common design is hybrid, with the device handling what is sensitive, frequent and low latency.
Meta states it is used in Instagram, WhatsApp, Messenger, Facebook, the Ray-Ban Meta glasses and Quest 3. Hugging Face, Liquid AI, Mistral AI and Software Mansion maintain integrations with the project.
Sources and method
This article was researched on August 26, 2026 and updated on November 11, 2026, when version, backends and model examples were checked again in the project's releases and documentation, using primary sources from the project and the manufacturers. Versions, numbers and features cited come from the materials below; claims about scale and model coverage are always attributed to whoever published them. X-Apps has no commercial relationship with Meta or the other projects cited.
- Official ExecuTorch website, overview, runtime numbers and backend ecosystem
- pytorch/executorch repository on GitHub, README, releases and license
- ExecuTorch v1.5.0 release, September 2026, backend and model news
- Introducing ExecuTorch 1.0, PyTorch blog, October 2025, backends, partners and testimonials
- ExecuTorch in Meta's apps, Meta engineering blog, July 2025, features in production
- ExecuTorch backends documentation, list and hardware targets
- Official websites of LiteRT (Google), Core ML (Apple) and ONNX Runtime (Microsoft)





