Gemma4.java: Run Gemma 4 in pure Java (no Python, no JNI) Posted by mukel on Tuesday April 07, 2026 @04:24AM from the github.com dept. https://github.com/mukel/gemma4.java ( 1 comment | on HN )
No Python. No JNI. No native code. Just Java.
It’s (mostly) a single Java file implementing the full stack:
GGUF parsing, tokenization, Gemma 4 transformer inference, quantizations, CLI...
Built using the Java Vector API, with support for GraalVM Native Image.