UAI.LiteRTLM

LiteRT-LM model inference support for Unity Android and Meta Quest apps. Supports v0.8.0+ of the LiteRT-LM Kotlin package for Android.

openupm openupm

Installation

This package was designed for Unity 6.0 and above. Built and tested in Unity 6.3.

This package uses System.Threading.Channels. You can install it through NuGetForUnity if you do not have the System.Threading.Channels library in your project. See How do I use NuGetForUnity? on how to use NuGetForUnity.

Since this package contains a native AAR plugin, it depends on the External Dependency Manager for Unity (EDM4U) to resolve native dependencies. You may already have EDM4U if you use Google or Firebase SDKs in your Unity project. If you do not, the installation steps are available here: EDM4U - Getting Started

  1. Open project settings
  2. Select Package Manager
  3. Add the OpenUPM package registry:
    • Name: OpenUPM
    • URL: https://package.openupm.com
    • Scope(s)
      • com.uralstech
  4. Open the Unity Package Manager window (Window -> Package Manager)
  5. Change the registry from Unity to My Registries
  6. Add the UAI.LiteRTLM package
    • Install 1.0.0-preview.2-litertlm0.9.0alpha01 (default) for litertlm-android v0.9.0-alpha01
    • Install 1.0.0-preview.2 for litertlm-android v0.8.0

Preview Versions

Do not use preview versions (i.e. versions that end with "-preview") for production use as they are unstable and untested.

Documentation

See https://uralstech.github.io/UAI.LiteRTLM/DocSource/QuickStart.html or APIReferenceManual.pdf and Documentation.pdf in the package documentation for the reference manual and tutorial.