Repository navigation
Agora v2.3.8 — Hardware-Accelerated Embeddings & LiteRT NPU Engine
Hardware-Accelerated On-Device Embeddings & LiteRT Unified Runtime
- Google Tensor NPU Acceleration for Embeddings:
- Direct execution of monolithic
.tfliteembedding models (e.g.,embeddinggemma-300M_seq1024_mixed-precision.google.tensor_g5.tflite) via LiteRT 2.4.1CompiledModelAPI. - 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.
- Direct execution of monolithic
- 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
.litertlmcontainer wrappers automatically.
- On-Device Chat Generation Fix (LiteRT-LM 0.20.0):
- Bumped
litertlm-android0.19.1 -> 0.20.0 to pair with thelitert2.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-450mnow generates coherent output (factual short answers, counting, freeform poetry). All 26 embedding caches complete on NPU in ~6.9s.
- Bumped
APK
Agora-2.3.8.apk (versionCode 41) — signed .fdroid variant, installable on Pixel 10 / Tensor G5.