A while back, I wrote a guide on running Gemma 4 locally on an Android phone using Termux and Ollama. It got some traction. People asked for the code.
There wasn't much code to share—just a setup script and documentation. But I realized that's still worth putting in one place.
So I did.
What's in the Repo
github.com/Dexter2344/gemma4-phone-setup
· A README explaining the whole project and linking back to the original guide
· A setup.sh script that automates the install process in Termux
· Clear instructions so anyone can replicate what I built
Why This Matters to Me
When I wrote the original post, I was just documenting what I learned. I didn't think of it as a "project." But putting it on GitHub changes how I see my own work. It's not just a tutorial anymore. It's a reference. Something someone can clone, run, and build on.
What Else I've Been Building
I also shipped a RAG pipeline that runs entirely on a phone—native API calls, persistent memory, upgraded to Gemma 4 E4B. That one has real Python code, a proper README, and setup instructions:
github.com/Dexter2344/rag-pipeline-phone
Top comments (0)