Home / use case

Verso: Gemma 4 on an Android phone writes the back of old family photos without inventing names

At a glance
Models & engines
Android app in Kotlin and Jetpack Compose, LiteRT-LM 0.18.1, cards stored in one JSON file, no networking
Model: litert-community/gemma-4-E2B-it (gemma-4-E2B-it.litertlm, about 2.6 GB), downloaded by the user
Key gotcha
Adding more anti-hallucination rules to the prompt broke the output format and made results worse.

What they built

Verso writes the "back of the photo" for scanned family pictures. You answer five questions (who, where, when, what was happening, why keep it), and a local Gemma 4 model writes a title and one sentence. If one answer is blank, it writes the question you should ask a relative instead of guessing.

The app has no internet permission: the photo, answers, model and writing all stay on the phone. Cards can be saved as a printable 4×6 inch PDF, and a shelf view counts how many cards still have no name on them.

The who, where and when you typed are printed verbatim under the caption by the app itself; the model only writes the title and sentence.

Setup

  • Android app in Kotlin and Jetpack Compose, LiteRT-LM 0.18.1, cards stored in one JSON file, no networking
  • Model: litert-community/gemma-4-E2B-it (gemma-4-E2B-it.litertlm, about 2.6 GB), downloaded by the user
  • Tested on an Android 15 x86_64 emulator; signed release APK is arm64 (Android 9+)

How it works

  1. One prompt built from the five answers names the blank one and asks for exactly three labelled lines: a title of seven words or fewer, one past-tense sentence, and an ask if a fact is missing.
  2. A guard tokenizes the title and caption and rejects any capitalized word or four-digit year the owner never typed; a caught draft is rewritten once with the invented words named, and if caught again the card keeps the owner's own words.
  3. The model's question is dropped unless it addresses the blank field and sounds like something a person would say; otherwise the app falls back to a plain question.
  4. Temperature is 0.4 on the first attempt and 0.2 on the rewrite, with a fresh conversation per call.

Results & numbers

  • On a calibration set of 20 invented photo descriptions (9 with blanks), the final prompt got 20 of 20 cards right first try, caught 0 invented words, and wrote 9 of 9 asks itself.
  • Mean time per card was 6.1 seconds on the emulator (min 4.4 s, median 5.5 s, max 10.7 s).
  • Earlier prompt versions with more rules did worse (13/20 and 8/20 first try); the fix was removing rules.

Gotchas

  • Adding more anti-hallucination rules to the prompt broke the output format and made results worse.
  • Captions are true but flat when the answers are thin, and the model once spelled out a year in words.
  • The guard only checks capitalized words and years, so a lowercase invention like "a bicycle" would pass.
  • Timings are from an x86_64 emulator, not a real phone; the 2.6 GB model takes about a minute to load the first time.
  • Raw prefill degenerates on Gemma 4, so each call starts a fresh conversation.
“the app may ask, it may not answer.”— Fahad Irshad

Do it yourself

  1. Download the Verso v0.1.0 arm64 APK from the project's GitHub and sideload it on Android 9 or newer.
  2. Accept the Gemma licence on Hugging Face and download gemma-4-E2B-it.litertlm from litert-community/gemma-4-E2B-it.
  3. Open the app, tap Choose the model file and pick the download; wait about a minute for the first load.
  4. Pick a photo, answer only what you actually know, leave the rest blank, and tap Write the back.
  5. Save the card as a 4×6 PDF to print, and use the ask line next time you talk to a relative.
./gradlew :app:testDebugUnitTest
./gradlew :app:assembleDebug
Source: Fahad Irshad (DEV Community) · Published 2026-10-30 · Added 2026-10-31. This write-up summarizes the original source; see it for full details.

Similar setups

Onira: on-device self-hypnosis scripts from a 2B model on Android

The Onira app writes 30-40 minute self-hypnosis sessions on a mid-range Android phone with a fine-tuned Gemma 4 E2B in llama.cpp, generating each block while the previous one is narrated and working in airplane mode.

DEV Community (Charles-Antoine Fournel) · 2026-11-22

Séance: local Whisper and Gemma 4 turn a grandmother's Malayalam voice notes into a searchable family archive

Clivin John built Séance, which transcribes and translates his grandmother's voice notes on his laptop, has Gemma 4 write memory cards, and answers questions only with her exact, verified words.

Clivin John (DEV Community) · 2026-10-31

Ofrenda Keeper: local Gemma 3 makes a Día de los Muertos card from only what you said

hongpengtan0-max built Ofrenda Keeper, a local app where Gemma 3 4B in Ollama turns what you tell it about someone you miss into an altar card, and plain code removes any detail you didn't actually say.

hongpengtan0-max (DEV Community) · 2026-10-28

The Dead Letter Office: Gemma in the browser helps you write to someone who died

Night Clerk built The Dead Letter Office, a static website where Gemma runs in your browser tab on WebGPU and only asks questions, while the letter itself is made word for word from your answers and never leaves your computer.

Night Clerk (DEV Community) · 2026-10-28