Skip to content
Akshay Kumar Sharma
BookBook a call
Akshay Kumar Sharma
Open sourceTop 6 at GitHub HQ

ExecuTorch Mobile Kit

Private financial AI, fully on-device

An Android app that runs a small language model on the phone to pull transactions out of financial emails into a local database. Nothing leaves the device.

  • Kotlin
  • ExecuTorch
  • TinyLlama
  • Qualcomm QNN
  • SQLite

Overview

What it does

The app runs TinyLlama entirely on-device with Meta’s ExecuTorch runtime. It reads financial emails, extracts amounts, merchants, dates and categories, and stores them in SQLite for a spending dashboard. It works offline, with no API keys and no server.

I built it as a team of one at the Edge Deployments & On-Device AI hackathon at GitHub HQ in San Francisco, hosted by Meta and Cerebral Valley with support from Qualcomm, and reached the top 6.

How it works

On the phone, start to finish

  1. 01

    Tokenise

    Email text is tokenised locally with a bundled tokenizer that matches the model’s vocabulary.

  2. 02

    Infer

    ExecuTorch runs the model, offloading to Qualcomm’s QNN backend on Snapdragon devices.

  3. 03

    Extract

    A structured extraction layer turns model output into transactions.

  4. 04

    Store

    Records land in an indexed SQLite database that powers the analytics screens.

Features

What is in it

  • Category breakdowns, trends, monthly summaries and subscription tracking
  • Works fully offline after setup
  • Hardware-accelerated inference on Snapdragon NPUs

The hard parts

Problems worth solving

Fitting a language model in a phone’s memory

Even a 1.1B-parameter model needed INT8 and INT4 quantisation to leave room for Android and the app. The right level came from profiling accuracy against memory until extraction was good enough.

From seconds per email to usable

Unoptimised inference took several seconds per email. Offloading to the QNN backend made the biggest difference; batching, caching and a tuned execution plan that avoids copies between CPU and NPU did the rest.

Accuracy from a small model

Bank alerts, receipts and statements all look different. Instruction templates steer the model toward consistent structured output, with special handling for multi-currency charges and partial refunds.