Skip to content

LiteRT-LM v0.14.0 migration — litertlm 1.2.0, embeddings 1.0.3 (native per-session sampler + #214 fix)#387

Merged
DenisovAV merged 8 commits into
mainfrom
feat/litertlm-v0.14.0
Jul 23, 2026
Merged

LiteRT-LM v0.14.0 migration — litertlm 1.2.0, embeddings 1.0.3 (native per-session sampler + #214 fix)#387
DenisovAV merged 8 commits into
mainfrom
feat/litertlm-v0.14.0

Conversation

@DenisovAV

Copy link
Copy Markdown
Owner

LiteRT-LM v0.14.0 migration

Moves the native inference stack to LiteRT-LM v0.14.0 and ships the follow-on package releases.

Releases

  • flutter_gemma_litertlm 1.1.0 → 1.2.0
  • flutter_gemma_embeddings 1.0.2 → 1.0.3
  • flutter_gemma 1.3.1 → 1.3.2 (docs: README model list + web setup snippet)
  • native prebuilts: native-v0.14.0 (7 platforms)

What's in it

  • Native per-session sampler via v0.14.0's opaque session-config/sampler API — replaces the external-sampler workaround (no CPU-fallback regression). seed / temperature / topK / topP work per-session.
  • Garbage repeating output on GPU #214 GPU output-garbage fixed (Mali/Xclipse) via the v0.14.0 runtime.
  • Web @litert-lm/core 0.12.1 → 0.14.0 (text path; API-compatible — verified against the TS declarations).
  • Community models added to the example + README: SmolLM3-3B, Phi-4-mini-reasoning, Qwen2-VL, SmolVLM2, LLaVA-OneVision.
  • macOS companion-framework codesign fix — re-sign after install_name_tool (was tripping CODESIGNING "Invalid Page" at dlopen).
  • Dawn split (upstream v0.14.0): Linux/Windows bundle the separate libwebgpu_dawn.{so,dll}.

Validation

  • macOS smoke 23/23 + Android FTL 23/23 (native rebuild sign-off).
  • Windows (Intel Lunar Lake): CPU ✅, NPU ✅ (Gemma 4 E2B — engine_create ~0.9 s, coherent output).
  • native-v0.14.0 3-way checksum consistency verified across all 7 platforms; fresh macOS build fetches + links against the release.
  • Web litertlm text path builds (flutter build web).

⚠️ Known issue — Windows discrete GPU

Windows discrete GPU (WebGPU/Dawn, D3D12) crashes during engine_create in the upstream prebuilt libLiteRtWebGpuAccelerator.dll — a regression from v0.13.1, isolated to upstream (unmodified prebuilt; CPU/NPU work with the same host lib; DX runtime byte-identical to v0.13.1). Filed upstream: google-ai-edge/LiteRT-LM#2957. Use CPU or NPU on Windows. macOS/Linux GPU and Windows CPU/NPU are unaffected.

…T v0.14.0 signature (adds LiteRtEnvironment)
… split

v0.14.0 split Dawn out of libLiteRtWebGpuAccelerator into a separate
libwebgpu_dawn.{so,dll} (0.13.1 static-linked it), so the accelerator now
hard-depends on it and desktop GPU fails to load (all backends) without it.

- hooks: add 'webgpu_dawn' to companions (+ 'libwebgpu_dawn' to
  windowsExtraLibs for the PE import); bump native version to 0.14.0
- Linux CI: patchelf --set-rpath '$ORIGIN' so each lib finds its
  flat-layout siblings at dlopen time
- Windows CI: bundle libwebgpu_dawn.dll in the Collect companion loop

Validated on Linux (Tesla T4): litertlm smoke 24/24 pass.
…ler + #214 fix (litertlm 1.2.0, embeddings 1.0.3)

- FFI on v0.14.0 opaque session-config/sampler API; native-v0.14.0 (7 platforms).
- #214 GPU output-garbage fixed; macOS/Linux GPU + Windows CPU/NPU verified.
- Web @litert-lm/core 0.12.1 -> 0.14.0 (text path).
- Add community models (SmolLM3-3B, Phi-4-mini-reasoning, Qwen2-VL, SmolVLM2, LLaVA-OneVision) to example + README.
- macOS: re-sign companion frameworks after install_name_tool (fixes CODESIGNING Invalid Page).
- Known: Windows discrete GPU regressed upstream (LiteRT-LM #2957) — use CPU/NPU.
- installation.md: bump the missed 4th web @litert-lm/core snippet 0.12.1 -> 0.14.0.
- CLAUDE.md: native tag native-v0.12.0-a/0.13.1-a -> native-v0.14.0.
- README/MIGRATION/DESKTOP_SUPPORT: version pins -> 1.3.2/1.2.0/1.0.3.
- README: Qwen2-VL/SmolVLM2/LLaVA run everywhere .litertlm does (Mobile ✅); FastVLM stays desktop-only.
- litertlm CHANGELOG: narrow #214 claim to verified-on-Xclipse.
- internvl35 smoke header: 500M -> 1B.
… docs (PR #387 review)

- Windows discrete-GPU regression now flagged on every desktop surface (README, DESKTOP_SUPPORT, website desktop/troubleshooting, litertlm README) with a consistent note + LiteRT-LM #2957; CPU/NPU guidance.
- README "What's new in 1.3": add LiteRT-LM v0.14.0 runtime (native per-session sampler + #214) and the 5 new community models.
- DESKTOP_SUPPORT/desktop.md: native tag -> native-v0.14.0; replace obsolete downstream-sampler-patch narrative with native per-session sampler; add libwebgpu_dawn to bundle lists; disambiguate "0.14.0" (plugin vs LiteRT-LM); macOS symlinks -> .framework wording.
- Website models/multimodal/thinking-mode/function-calling: add the 5 new models to match README.
- jaspr build verified (no SSG errors).
@DenisovAV
DenisovAV merged commit 0be794e into main Jul 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant