feat(android): model size display, download speed, cached indicator, and Termux build guide#1083
Open
sigsegv0x0b wants to merge 2 commits into
Open
feat(android): model size display, download speed, cached indicator, and Termux build guide#1083sigsegv0x0b wants to merge 2 commits into
sigsegv0x0b wants to merge 2 commits into
Conversation
…ed indicator - Model sizes sourced from HuggingFace API and AI Hub S3 - Show model size in GB next to name in spinner dropdown - Show green checkmark for already-downloaded models - Compute and display download speed in MB/s during model pull Signed-off-by: Slava Polyakov <sigsegv0x0b@gmail.com>
Documents prerequisites, workarounds (compileSdk 34, aapt2 override), build commands, and troubleshooting for building on aarch64 Termux. Signed-off-by: Slava Polyakov <sigsegv0x0b@gmail.com>
32d7225 to
0bd0e00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds quality-of-life improvements to the Android demo app, plus a Termux build guide for on-device development.
Changes
Model sizes in dropdown
sizefield toModelDataandmodel_list.json(sourced from HuggingFace API and AI Hub S3)Green checkmark for cached models
ModelManagerWrapper.list()is queried after SDK init to detect already-downloaded modelsDownload speed
47% (12.3 MB/s)Termux build guide
TERMUX.mddocuments prerequisites, workarounds (compileSdk 34, aapt2 override), build commands, and troubleshooting for building on aarch64 TermuxFiles changed
examples/android/build.gradle— compileSdk/targetSdk 35 → 34 (aarch64 aapt2 compat)examples/android/gradle.properties— aapt2 override for Termux native binaryexamples/android/src/main/assets/model_list.json— addedsize(bytes) to all 14 entriesexamples/android/src/main/java/com/geniex/demo/MainActivity.kt— size adapter, cached indicator, speed displayexamples/android/src/main/java/com/geniex/demo/bean/ModelData.kt— addedsize: Long?fieldexamples/android/src/main/res/layout/item_model.xml— horizontal layout with name, size, and download checkmarkexamples/android/TERMUX.md— new Termux build documentation