Skip to content

Gloss v2.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 17:55
· 2 commits to main since this release

What's New in Gloss v2.4.0

Cold-Start & Memory Optimizations (No Model Pruning)

  • Binary tokenizer snapshot (tokenizer.glossbin): Parses tokenizer.json once and persists a compact binary snapshot on first load, cutting subsequent host-JVM tokenizer loads from 281 ms to 56 ms (~5.0× faster).
  • Measured ONNX Runtime session tuning: Passes file paths directly for OS mmap, disables CPU arena pre-allocation, memory pattern optimization, and weight prepacking, uses NO_OPT, and sets 2 intra-op threads—cutting host-JVM cold encoder + decoder session load time from 644 ms to 78 ms (~8.3× faster) (276 ms end-to-end warm-cache load in NllbEngineIntegrationTest).
  • Concurrent encoder & tokenizer initialization: Overlaps tokenizer loading with encoder_model_quantized.onnx session creation.
  • Lifecycle-aware loading & 90s idle eviction: Replaces heavy work in GlossApplication.onCreate() with a fast disk check (ModelState.IdleDownloaded), starts async warm-up in MainActivity.onStart(), evicts native encoder/decoder sessions after 90 seconds in the background (keeping the tokenizer warm and seamlessly reloading on demand), and releases memory on system onTrimMemory.
  • Cold-start telemetry: Displays Last cold start timing inside the App & Offline Model sheet.

In-Place Update Ready

  • Signed with the persistent Gloss release keystore (versionCode = 6, versionName = 2.4.0). Existing v2.3.0 installs will detect this release in the App & Offline Model sheet and update cleanly in-place.