OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Llama.rn

Llama.rn is an MIT-licensed React Native binding for llama.cpp that lets iOS and Android applications run large language model inference on-device. It provides interfaces for loading GGUF models and requesting chat or text completion, with documented support for multimodal model workflows.

Independent OpenViST project profile, based on linked sources.

Llama.rn — React Native apps that need local model inference rather than a remote inference service
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a React Native iOS or Android app needs to integrate llama.cpp inference locally, and the team can provide compatible model files and handle native platform setup.

Who it is for

  • React Native developers adding on-device language-model inference to mobile apps.
  • Mobile teams building local text, vision or audio model features using compatible models.
  • Developers configuring native GPU acceleration for supported mobile hardware.

Documented uses

  • Load a local GGUF model and request chat or text completion from a React Native app.
  • Add vision or audio understanding with a compatible multimodal model and projector file.
  • Configure documented GPU acceleration paths for supported devices.
  • Use structured output or function-calling capabilities in an app’s inference workflow.
Before you choose

Requirements & limits

  • Llama.rn is a developer library, not a hosted model or end-user chat application.
  • The v0.10-and-later line requires React Native’s New Architecture; the README directs Old Architecture users to the v0.9 branch.
  • Models are provided separately; the README points developers to GGUF models.
  • Metal acceleration is documented for iOS. Android OpenCL and Hexagon paths require hardware and configuration; Hexagon support is experimental.
  • Vision and audio understanding require a compatible multimodal model and its projector file.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Llama.rn and prepare a React Native app

Add the package and prepare the platform-specific native dependencies for a project.

Before you start

  • A React Native project using the New Architecture for v0.10 and later.
  • npm, or Bun with the documented lifecycle-script handling.
  • An iOS or Android project.

Steps

  1. Install the package with the command below.

    Documented command
    npm install llama.rn
  2. On iOS, run the command below again after installation.

    Documented command
    npx pod-install
  3. On Android, add the documented com.rnllama.** ProGuard keep rule if ProGuard is enabled.

Expected outcome

The package and its native libraries are prepared for the relevant platform build.

Guide limitations

  • For Bun, dependency lifecycle scripts do not run unless the package is trusted; the README also documents a manual native-artifact downloader.
  • The README gives separate settings for building native libraries from source; they are not included in this setup recipe.
Source-based practical guide

Set up multimodal inference in a React Native app

Initialize a model and its projector, then pass image or audio content to completion.

Before you start

  • A multimodal GGUF model and its corresponding mmproj projector file.
  • Llama.rn installed in a React Native app.

Steps

  1. Initialize a Llama context with the multimodal model.

  2. Initialize multimodal support with the matching mmproj file.

  3. Pass image or audio content in a completion request, using the documented structured message format.

Expected outcome

The app can request inference using supported image or audio input with a compatible model setup.

Guide limitations

  • Supported modalities depend on the model; the README exposes a check for vision and audio support.
  • The README recommends disabling context shifting for multimodal use and recommends GPU use for the projector, but device acceleration depends on configuration and hardware.
COMPARE OPTIONS

Compare options for Model inference and serving

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
Llama.rnLoad a local GGUF model and request chat or text completion from a React Native app.iOS, Android
ErgoCreate a project with separate data-preparation, model and training scripts.CLI
Llama2LangTranslate an instruction dataset into a target language and combine translation checkpoints.The repository is public and identified as open source under the Apache-2.0 license.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
4 November 2026
Original website title
mybigday/llama.rn · Official homepage title · retained in its source language