Using a small on-device model (Gemma 3 1B)¶
The AI features (TL;DR, chapter recap, notes writing tools, list suggestions, error explanations, describe-to-search, mood suggestions) run on Gemini Nano when the phone has it. On phones without Nano, they can fall back to a LiteRT-LM model stored inside the app. Gemma 3 1B is the recommended one: about 584 MB, and it runs on the CPU of low-end phones.
The update summary on the Notifications screen works with Gemma, but Gemma 3 1B writes poor summaries (it ignores the format and can invent plot details).
This works on Android and desktop. On desktop, an imported model runs before Ollama.
1. Download the model¶
Gemma is gated on Hugging Face, so the app can't download it for you.
- Sign in at https://huggingface.co and open https://huggingface.co/litert-community/Gemma3-1B-IT.
- Accept the Gemma license on that page.
- Under Files and versions, download
gemma3-1b-it-int4.litertlm.
Any other .litertlm text model works the same way (for example
litert-community/Qwen3-0.6B). The app picks up every .litertlm file in its models folder.
2. Import it in the app¶
- Open Settings → Integrations → AI.
- In the Engine card, tap Import model file and pick the downloaded file. On desktop you can also drop the file onto the card.
- The app copies the file (with a progress bar and Cancel), then loads it once to check it. A file that doesn't load is deleted and the card says why.
- When it's done, the model shows as Ready. Its ⋮ menu has Replace model… and Remove.
The model folder is files/models/ inside the app on Android, and models/ in the app's user
data folder on desktop.
Debug builds: copy it with adb instead¶
On a debug build you can copy the file straight into files/models/ (run-as only works on
debuggable apps).
| App | Debug package id (noFirebase flavor) |
|---|---|
| MangaWorld | com.programmersbox.mangaworld.noFirebase.debug |
| AnimeWorld | com.programmersbox.animeworld.noFirebase.debug |
| NovelWorld | com.programmersbox.novelworld.noFirebase.debug |
Install and open the app once first, then run the following. Replace <serial> with the
device from adb devices and <package> with the id above:
adb -s <serial> push ~/Downloads/gemma3-1b-it-int4.litertlm /data/local/tmp/
adb -s <serial> shell run-as <package> mkdir -p files/models
adb -s <serial> shell run-as <package> cp /data/local/tmp/gemma3-1b-it-int4.litertlm files/models/
adb -s <serial> shell rm /data/local/tmp/gemma3-1b-it-int4.litertlm
Check the copy (the size should match the download, 584417280 bytes for Gemma 3 1B):
Force-stop the app and open it again.
3. Check it in the app¶
- Open Settings → Integrations → AI.
- The engine card lists the model (for example "Gemma3 1b It Int4 · Ready").
- Prefer (Android) decides which engine runs: Automatic uses Nano when it's ready and Gemma otherwise; Gemma always uses Gemma.
- Tap Run sample. The first run loads the model (about 8–10 seconds on a low-end phone); later runs take a few seconds.
The first load also writes a prepared copy of the weights to the app's cache
(cache/models/*.xnnpack_cache_*). Later loads use it and need much less memory. Clearing the app's
cache only makes the next load slow again.
Removing the model¶
Use Remove in the model's ⋮ menu on the AI page. On a debug build you can also run:
Clearing the app's storage in Android settings also removes it.