Repository navigation
Releases
Releases · ADPer0705/gloss
Gloss v2.4.0
What's New in Gloss v2.4.0
Cold-Start & Memory Optimizations (No Model Pruning)
- Binary tokenizer snapshot (
tokenizer.glossbin): Parsestokenizer.jsononce 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, usesNO_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 msend-to-end warm-cache load inNllbEngineIntegrationTest). - Concurrent encoder & tokenizer initialization: Overlaps tokenizer loading with
encoder_model_quantized.onnxsession creation. - Lifecycle-aware loading & 90s idle eviction: Replaces heavy work in
GlossApplication.onCreate()with a fast disk check (ModelState.IdleDownloaded), starts async warm-up inMainActivity.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 systemonTrimMemory. - Cold-start telemetry: Displays
Last cold starttiming 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.
Gloss v2.3.0
Gloss v2.3.0 — Persistent Release Signing, In-App Updater & GitHub Stats
What's New
- Persistent Release Keystore: Every GitHub Release APK from
v2.3.0onward is signed with a permanent release certificate so future updates install in-place without uninstalling or losing your 658 MB offline model, phrase history, or widgets. - In-App GitHub Self-Updater: Checks GitHub Releases once every 24 hours when online (plus a manual Check updates button inside the Status Pill sheet), shows an update banner when a newer release exists, downloads the APK with progress, and launches Android's native installer.
- GitHub Download Stats: Displays total GitHub APK downloads and latest release downloads inside the App & Offline Model sheet (cached for offline viewing), alongside live Shields.io download badges in
README.md.
Installation
One-time switch from
v2.2.0or earlier: Because older CI builds used an ephemeral debug key, please uninstallv2.2.0(or earlier) once before installinggloss_v2.3.0.apk. Every update afterv2.3.0will install cleanly in-place!
Gloss v2.2.0
Gloss v2.2.0 — Custom App Icon, Home Screen Widgets & HF Tracking
What's New
- Custom App Icon: Replaced the default Android icon with a minimal obsidian (
#0B0E14), indigo (#7C73FF), and teal (#3FD9C9) Gloss icon across adaptive (drawable-nodpi/ic_launcher_foreground.webp) and legacy mipmap densities (mdpi–xxxhdpi). - Home Screen Widgets: Quick Translate (4×1) and Recent Phrases (4×2) widgets with instant swap, clipboard paste & translate, and tap-to-study phrase restoration.
- Hugging Face Download Tracking: Added
config.jsontoADPer/nllb-200-distilled-600M-mobile(revc998583de40ac4331dce8e8d7254d4456696133a).
Installation
Download gloss_v2.2.0.apk below and install over v2.0.0/v2.1.0 (existing offline model files stay valid with zero re-download).
Gloss v2.1.0
Gloss v2.1.0 — Home Screen Widgets & HF Download Tracking
What's New
- Google Translate–Style Home Screen Widgets:
- Quick Translate (4×1): Shows your current language pair with an instant Swap button, a Tap to translate offline… bar, a Paste & Translate shortcut, and a Recent Phrases shortcut.
- Recent Phrases (4×2): Displays your last 3 offline translations directly on the home screen; tap any phrase to open it in Gloss and tap individual words.
- Hugging Face Download Tracking: Added
config.jsontoADPer/nllb-200-distilled-600M-mobile(revc998583de40ac4331dce8e8d7254d4456696133a) and updatedModelManagerto fetch it on download so Hugging Face tracks model downloads. Existing v2.0.0 model files on your phone stay valid with zero re-download required.
Installation
Download gloss_v2.1.0.apk below and install over v2.0.0 (or fresh on Android 7.0+).
Gloss v2.0.0
Gloss v2.0.0 — Offline NLLB-200 Translator
What's New
- 202 Languages Fully Offline: Replaced ML Kit with NLLB-200-distilled-600M (INT8 mobile ONNX via
onnxruntime-android:1.32.0, ~658 MB one-time download, ~1.4 GB peak RAM). - Modern Jetpack Compose + Material 3 UI: Redesigned with Obsidian Dark & Paper Light themes, searchable 202-language picker (with Recent & Popular chips), instant animated swap, offline Android Text-to-Speech, and local phrase history.
- Duolingo-Style Tap-a-Word: Tap any word in either your input sentence or the translated output to inspect its individual meaning in an inline gloss card.
- Pinned Model Mirror: Downloads SHA-256-verified, resumable weights from
ADPer/nllb-200-distilled-600M-mobile(rev7339939c0b80d2228236f9111c0de1bd22d03b11) so access is never lost.
Installation
- Download
gloss_v2.0.0.apkbelow and install it on Android 7.0+ (minSdk 24,arm64-v8a/armeabi-v7a). - Open Gloss and tap Download to pull the one-time offline translation pack (~628 MiB / 658 MB).
- Once verified, everything translates and glosses 100% offline.
Model Attribution & License
- App source code: MIT License
- Translation model: CC-BY-NC-4.0 (non-commercial use only, attribution required)
- Meta AI:
facebook/nllb-200-distilled-600M - Xenova:
Xenova/nllb-200-distilled-600M - boat1603:
boat1603/nllb-200-distilled-600M-mobile
- Meta AI: