Skip to main content
株式会社オブライト
Services
About
Company
Column
Glossary
Contact
日本語
日本語
メニューを開く
Column
Mobile AI
Articles tagged "Mobile AI"
1 article
Mobile Development
2026-07-09
[React Native ExecuTorch's `useLLM` Hook](https://docs.swmansion.com/react-native-executorch/docs/hooks/natural-language-processing/useLLM) Deep Dive — Run Qwen / Llama 3.2 / Hammer 2.1 / Phi 4 Mini / SmolLM 2 / LFM2.5 / Gemma 4 On-Device in React Native, With Tool Calling, Vision / Audio, and Structured Output From Software Mansion, Two Modes (Managed / Functional), and Zod-Backed Schema Validation
**[Software Mansion's React Native ExecuTorch](https://docs.swmansion.com/react-native-executorch/) shipped a `useLLM` hook** that gives React Native apps **native on-device LLM integration**. **Supported models**: quantized Qwen (2.5 / 3 / 3.5), Llama 3.2, Hammer 2.1, Phi 4 Mini, SmolLM 2, LFM2.5 (vision), and **[Gemma 4](../columns/gemma-4-technical-report-2026-07) (vision + audio)**. **Two operating modes**: **Functional/Stateless** (developers manage conversation history via `generate()` + `response`; tool calling and chat config don't apply) and **Managed/Stateful** (`sendMessage()` maintains conversation state, parses tool calls, and runs callbacks automatically). **Key features**: token batching (groups tokens before re-render), tool calling (model invokes external functions via tool schemas with automatic parsing and callbacks), vision-language / audio multimodal inputs, generation control (temperature / top-p / repetition penalty / mid-stream interruption), and **JSONSchema- or Zod-backed structured output**. **Use cases**: on-device chatbots without server dependencies, privacy-first conversation UIs, in-app function calling (calendar events, flashlight, etc.), multimodal features (image analysis, audio transcription). **Positioning**: implementation-level evidence that **cutting-edge open-weight LLMs like [Gemma 4's encoder-free 12B](../columns/gemma-4-technical-report-2026-07) and [Qwen 3.6-35B](../columns/qwen36-35b-a3b-uncensored-abliterated-2026-07) natively fit into iOS / Android apps** — a major deliverable from the React Native ecosystem.
React Native
ExecuTorch
On-Device LLM