Skip to content
Edit this page

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.

  1. Sign in at https://huggingface.co and open https://huggingface.co/litert-community/Gemma3-1B-IT.
  2. Accept the Gemma license on that page.
  3. 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

  1. Open Settings → Integrations → AI.
  2. In the Engine card, tap Import model file and pick the downloaded file. On desktop you can also drop the file onto the card.
  3. 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.
  4. 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):

adb -s <serial> shell run-as <package> ls -l files/models

Force-stop the app and open it again.

3. Check it in the app

  1. Open Settings → Integrations → AI.
  2. The engine card lists the model (for example "Gemma3 1b It Int4 · Ready").
  3. Prefer (Android) decides which engine runs: Automatic uses Nano when it's ready and Gemma otherwise; Gemma always uses Gemma.
  4. 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:

adb -s <serial> shell run-as <package> rm files/models/gemma3-1b-it-int4.litertlm

Clearing the app's storage in Android settings also removes it.