Gemma4.java: Run Gemma 4 in pure Java (no Python, no JNI)(github.com)4 points·by mukel·vor 3 Monaten·1 commentsgithub.comGemma4.java: Run Gemma 4 in pure Java (no Python, no JNI)https://github.com/mukel/gemma4.java1 commentsPost comment[–]mukel·vor 3 MonatenreplyI built llama3.java in the past, this is a follow-up: Gemma 4 running entirely on the JVM.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.
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.