What is React Native ExecuTorch?
React Native ExecuTorch bridges the gap between React Native and native platform capabilities, enabling developers to efficiently run local AI models on mobile devices. This can be achieved without the need for extensive expertise in native programming or machine learning.Real-world Example: Private Mind
React Native ExecuTorch powers Private Mind, a privacy-first mobile AI app available on App Store and Google Play.
Key Features
- Declarative API: Use React hooks to integrate AI models seamlessly
- Wide Model Support: LLMs, computer vision, speech-to-text, text-to-speech, and more
- On-Device Processing: Run AI models locally for privacy and offline capability
- Ready-Made Models: Pre-configured models available on HuggingFace
- TypeScript First: Full type safety with TypeScript support
Supported Platforms
React Native ExecuTorch has specific minimum version requirements:| Platform | Minimum Version |
|---|---|
| iOS | 17.0 |
| Android | 13 (API level 33) |
| React Native | 0.81 |
Available Models
React Native ExecuTorch provides ready-to-use models across multiple categories:Large Language Models (LLMs)
- Llama 3.2: 1B and 3B variants (original, QLoRA, SpinQuant)
- Qwen 2.5 & 3: Various sizes from 0.5B to 4B
- Hammer 2.1: 0.5B, 1.5B, and 3B variants
- SmolLM2: 135M, 360M, and 1.7B variants
- Phi-4 Mini: 4B parameter model
- LFM2.5: 1.2B instruct model
Computer Vision
- Image Classification: EfficientNet V2
- Object Detection: SSDLite, RF-DETR
- Semantic Segmentation: DeepLab V3, FCN, LRASPP, Selfie Segmentation
- Style Transfer: Candy, Mosaic, Rain Princess, Udnie
- Image Embeddings: CLIP ViT
Speech & Audio
- Speech-to-Text: Whisper (Tiny, Base, Small variants)
- Text-to-Speech: Kokoro TTS
- Voice Activity Detection: FSMN-VAD
Other Models
- Text Embeddings: MiniLM, MPNet, CLIP
- Image Generation: BK-SDM-Tiny
- OCR: Text detection and recognition
Architecture Overview
React Native ExecuTorch consists of:- React Native Package (
react-native-executorch): Core library with hooks and modules - Resource Fetchers: Platform-specific packages for model downloading
@react-native-executorch/expo-resource-fetcherfor Expo projects@react-native-executorch/bare-resource-fetcherfor bare React Native
- Native Modules: Bridge to ExecuTorch framework on iOS and Android
Next Steps
Installation
Install React Native ExecuTorch in your project
Quickstart
Build your first AI-powered feature in minutes