FLUTTER ECOSYSTEM

flutter_gemma_litertlm

LiteRT-LM (.litertlm) on-device inference engine for flutter_gemma via dart:ffi (5 native platforms) + web. Opt-in InferenceEngineProvider. Also ships the LiteRT C API embedding backend (LiteRtEmbeddi [...]

Latest version
1.8.5
30-day downloads
36.3K
Likes
0
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A lightweight, on-device inference engine for FlutterGemma using Dart:ffi, supporting five native platforms and web. It enables efficient local LLM inference via the LiteRT C API embedding backend with opt-in provider integration. Designed for low-latency, privacy-focused generative AI applications directly on devices without relying on cloud services. The package simplifies deployment across Android, iOS, Linux, macOS, Windows, and web environments.

Use cases
  • On-device language model inference
  • Privacy-preserving chat applications
  • Offline AI-powered apps
  • Edge computing for LLMs
  • Lightweight LLM deployment on mobile and desktop
Key features
  • Native platform support (5+ platforms)
  • Web compatibility via Dart:ffi
  • Opt-in InferenceEngineProvider
  • LiteRT C API embedded backend
  • Minimal runtime overhead
  • Cross-platform consistency
Suitable for
  • Developers building offline LLM apps
  • Apps requiring data privacy
  • Mobile and desktop AI prototypes
  • Edge AI projects with limited resources
  • Teams using Flutter for generative AI
Considerations
  • Requires native code compilation
  • Limited to models compatible with LiteRT
  • Web support depends on WASM availability
  • Performance varies by device hardware
  • No built-in model management or caching
Supported platformsAndroidiOSLinuxmacOSWebWindows

Install package

flutter pub add flutter_gemma_litertlm

Categories

Dependencies

Dependency list 7 items

Source repository

Related projects

No data available yet.

Rankings