Skip to content

Agora v2.3.8 — Hardware-Accelerated Embeddings & LiteRT NPU Engine

Choose a tag to compare

@xnet-admin-1 xnet-admin-1 released this 30 Nov 23:46
· 23 commits to master since this release

Hardware-Accelerated On-Device Embeddings & LiteRT Unified Runtime

  • Google Tensor NPU Acceleration for Embeddings:
    • Direct execution of monolithic .tflite embedding models (e.g., embeddinggemma-300M_seq1024_mixed-precision.google.tensor_g5.tflite) via LiteRT 2.4.1 CompiledModel API.
    • Dynamically extracts NPU runtime libraries (libLiteRtDispatch_GoogleTensor.so, compiler plugins, and GPU accelerators) from uncompressed APK into private storage for hardware-accelerated dispatch on Pixel 10 / Google Tensor G5.
    • Automatic hardware fallback hierarchy: Google Tensor NPU -> GPU -> CPU.
  • Pure-Kotlin Gemma SentencePiece BPE Tokenizer:
    • Built-in tokenizer reading the 262k-piece Gemma SentencePiece vocabulary directly from bundled assets.
    • Supports byte fallback tokens (<0x00>..<0xFF>), special control tokens, BOS/EOS framing, and sequence padding up to 1024 tokens.
  • Robust Semantic Caching & Model Resolution:
    • Fixed an issue where semantic embedding caching would flash progress and drop back to 0%.
    • Added resilient local model file resolution, stripping/cleaning incompatible .litertlm container wrappers automatically.
  • On-Device Chat Generation Fix (LiteRT-LM 0.20.0):
    • Bumped litertlm-android 0.19.1 -> 0.20.0 to pair with the litert 2.4.x core line shipped in the APK, resolving the dispatch-ABI version skew (LiteRtDispatchQueryInterface) that corrupted decode on every backend.
    • Verified on Pixel 10 Pro XL (Tensor G5): lfm2.5-vl-450m now generates coherent output (factual short answers, counting, freeform poetry). All 26 embedding caches complete on NPU in ~6.9s.

APK

Agora-2.3.8.apk (versionCode 41) — signed .fdroid variant, installable on Pixel 10 / Tensor G5.