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 (LiteRtEmbeddingBackend).
1.5.2
13K downloads/mo
#2600 most downloaded on pub.dev
DenisovAV/flutter_gemma
What this package is like to depend on
Last release 3 days ago
20 Aug 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
2 months old
16 releases · first in 2026
16 releases in the last 12 months
see the full history below
Release timeline
16 releases · Jun 2026 to Aug 2026Releases
latest 16-
1.5.220 Aug 2026Release notes
Open source →- Android: embeddings no longer poison the loader, fixing zero-chunk streams and SIGABRT (#447).
-
1.5.120 Aug 2026Release notes
Open source →- Share the host-side native library lookup with core instead of a private copy.
-
1.5.019 Aug 2026Release notes
Open source →- Add LiteRT embedding forward-pass +
LiteRtEmbeddingBackend(moved from flutter_gemma_embeddings). - internal: wire the new
tokenizerFactorydescriptor field; byte-identical vectors, no API change.
- Add LiteRT embedding forward-pass +
-
1.4.216 Aug 2026Release notes
Open source →- fix: vision + audio encoders default to CPU (fixes GPU vision hard-fail on Metal/WebGPU); overridable.
-
1.4.115 Aug 2026Release notes
Open source →- Fix Windows NPU: the OpenVino compiler DLLs shipped but were never bundled into the app.
- Drop the debug TBB variants that were being bundled alongside the release set.
-
1.4.015 Aug 2026Release notes
Open source →- Migrate to LiteRT-LM v0.16.0 (native-v0.16.0) — fixes the Android OpenCL per-turn leak (#348, #402).
- Detect the stream-callback ABI at runtime — v0.15.0 changed it with no compat path.
- Fix Windows discrete GPU: a Bazel define we passed had been removed upstream.
- Rebuild both NPU dispatch stacks from the pin instead of shipping stale prebuilts.
- Pin the macOS deployment target of
libStreamProxy.dylibto 11.0 instead of the build host's. - Native platforms only — web stays on
@litert-lm/core0.14.0 (the 0.16.0 npm publish ships nodist/).
-
1.3.128 Jul 2026Release notes
Open source →- Clearer engine-create error for GPU-only
.litertlmmodels run on CPU (#390).
- Clearer engine-create error for GPU-only
-
1.3.026 Jul 2026Release notes
Open source →- Also expose the LiteRt interpreter (
LiteRtBindings) for embeddings/speech; own weblitert.js.
- Also expose the LiteRt interpreter (
-
1.2.023 Jul 2026Release notes
Open source →- Migrate FFI to LiteRT-LM v0.14.0 — native per-session sampler (opaque session-config); native-v0.14.0.
- Fix #214 GPU output garbage via the v0.14.0 runtime — verified on Xclipse.
- Bump web
@litert-lm/core0.12.1 → 0.14.0 (text path; API-compatible). - Known regression: Windows discrete GPU broken upstream (LiteRT-LM #2957) — use CPU/NPU on Windows.
-
1.1.013 Jul 2026Release notes
Open source →- Smooth UI during Android GPU prefill — flush the OpenCL queue every 2 ops (#364).
-
1.0.413 Jul 2026Release notes
Open source →- Guard native cancel against a freed conversation — fixes a use-after-free SIGSEGV on close-mid-stream (#379).
-
1.0.312 Jul 2026Release notes
Open source →- Create the native conversation off the main isolate to avoid ANRs on multimodal models (#365).
- Serialize native conversation create on the engine mutex to prevent a heap-corrupting race (#372).
- Cancel native decode before tearing a conversation down to avoid a multi-second ANR (#364, #373).
-
1.0.220 Jun 2026Release notes
Open source →- Clamp
maxTokensup to 1024 (min context for .litertlm) to fix the DYNAMIC_UPDATE_SLICE crash (#318). - Honor
maxOutputTokens(session + chat) via nativeset_max_output_tokens; skipped on NPU.
- Clamp
-
1.0.119 Jun 2026Release notes
Open source →- Fix
PreferredBackend.npuon Android (Qualcomm) + Windows (Intel): native-v0.13.1-a restores the NPU dispatch libs omitted from 1.0.0 (#155). - Point
homepageto fluttergemma.dev. No code change.
- Fix
-
1.0.016 Jun 2026Release notes
Open source →- Stable 1.0.0; spec imports redirected off the
dart:iomobile lib for a wasm-clean web graph.
- Stable 1.0.0; spec imports redirected off the
-
1.0.0-rc.110 Jun 2026 pre-releaseRelease notes
Open source →- Initial release: LiteRT-LM (
.litertlm) on-device inference engine for flutter_gemma via dart:ffi. - Provides
LiteRtLmEngine(InferenceEngineProvider). Owns the shared LiteRT-LM native library. - Android, iOS, macOS, Linux, Windows + web (
@litert-lm/core, early preview).
- Initial release: LiteRT-LM (