<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1" -->

---
title: Bringing native AI to your mobile apps with ExecuTorch — pa…
description: A step-by-step guide to running AI models locally on Android using ExecuTorch and the XNNPACK backend, integrated into a React Native app. The tutorial covers...
canonical: https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bringing native AI to your mobile apps with ExecuTorch — pa… | daily.dev
og:description: A step-by-step guide to running AI models locally on Android using ExecuTorch and the XNNPACK backend, integrated into a React Native app. The tutorial covers...
og:url: https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1
og:image: https://api.daily.dev/og/posts/MHtiwgmz1.png
og:image:alt: Bringing native AI to your mobile apps with ExecuTorch — pa…
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bringing native AI to your mobile apps with ExecuTorch — pa…

**[Software Mansion](https://daily.dev/sources/swmansion)** · 6 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to running AI models locally on Android using ExecuTorch and the XNNPACK backend, integrated into a React Native app. The tutorial covers exporting a PyTorch style transfer model to the .pte format, building the ExecuTorch runtime, creating Java wrapper extensions, loading the model from raw resources in Kotlin, converting bitmaps to Float32 tensors, running inference, and saving the output image. Prebuilt runtime binaries and a demo repository are provided to simplify setup.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://swmansion.com/blog/bringing-native-ai-to-your-mobile-apps-with-executorch-part-ii-android-29431b6b9f7f>

## Similar posts on daily.dev

- [Efficient Edge AI on Arm CPUs and NPUs: Understanding ExecuTorch through Practical Labs – PyTorch](https://daily.dev/posts/efficient-edge-ai-on-arm-cpus-and-npus-understanding-executorch-through-practical-labs-pytorch-4lo3cubn8) · PyTorch · 0 upvotes · 0 comments
- [pytorch/executorch: On-device AI across mobile, embedded and edge for PyTorch](https://daily.dev/posts/pytorch-executorch-on-device-ai-across-mobile-embedded-and-edge-for-pytorch-i4mtohvii) · Hacker News · 0 upvotes · 0 comments
- [\[Hands-on\] Deploy and Run LLMs on your Phone\!](https://daily.dev/posts/hands-on-deploy-and-run-llms-on-your-phone--eh6og7s71) · Daily Dose of Data Science \| Avi Chawla \| Substack · 37 upvotes · 0 comments
- [Building the Future of On-Device AI at the ExecuTorch Hackathon – PyTorch](https://daily.dev/posts/building-the-future-of-on-device-ai-at-the-executorch-hackathon-pytorch-gy0t53tg6) · PyTorch · 0 upvotes · 0 comments

---

Tags: [#android](https://daily.dev/tags/android), [#react-native](https://daily.dev/tags/react-native), [#pytorch](https://daily.dev/tags/pytorch), [#local-ai](https://daily.dev/tags/local-ai)

[View this post on daily.dev](https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Bringing native AI to your mobile apps with ExecuTorch — pa…","url":"https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1"},"datePublished":"2026-08-02T07:16:00.515Z","dateModified":"2026-08-02T07:41:48.251Z","description":"A step-by-step guide to running AI models locally on Android using ExecuTorch and the XNNPACK backend, integrated into a React Native app. The tutorial covers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f22eeee8b5b54fb9e15a4c10ed454d72?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f22eeee8b5b54fb9e15a4c10ed454d72?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Software Mansion","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Software Mansion","logo":"https://media.daily.dev/image/upload/s--sOx0vaVZ--/f_auto,q_auto/v1785654908/logos/swmansion?_a=BAMAMicg0","url":"https://daily.dev/sources/swmansion"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bringing-native-ai-to-your-mobile-apps-with-executorch-pa--mhtiwgmz1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"android,react-native,pytorch,local-ai","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Software Mansion","item":"https://daily.dev/sources/swmansion"},{"@type":"ListItem","position":3,"name":"Bringing native AI to your mobile apps with ExecuTorch — pa…"}]}
```

