Plot twist 🥁
These numbers come from the toknroll Python wheel on PyPI 🤯
pip install toknroll
How?
Tok'n'Roll is compiled into a native library with #GraalVM Native Image, then wrapped for Python. No JVM, no dependencies, just one 5.6 MB wheel.

@qxotic.ai
AI in a jar: AI sovereignty for the JVM. Home of jinfer, jota and Tok'n'Roll.
Quixotic AI: Too Java for r/LocalLLaMA, too AI for r/java.
Plot twist 🥁
These numbers come from the toknroll Python wheel on PyPI 🤯
pip install toknroll
How?
Tok'n'Roll is compiled into a native library with #GraalVM Native Image, then wrapped for Python. No JVM, no dependencies, just one 5.6 MB wheel.
Tok'n'Roll is the tokenization substrate from Quixotic AI, written 100% in Java. Here's how it compares with Hugging Face tokenizers 1.0 rc5, a Python wrapper over Rust. Token-perfect. Up to 4× faster.
Tok'n'Roll is the tokenization substrate from Quixotic AI, written 100% in Java. Here's how it compares with Hugging Face tokenizers 1.0 rc5, a Python wrapper over Rust. Token-perfect. Up to 4× faster.
jinfer 0.4.0 is out: Prompt processing up to 3.9 times faster than llama.cpp on CPUs, decode on par. Local AI, in a jar.
qxotic.ai
The first request will be slower due to JVM warmup, but be careful sending further requests because caching kicks in. I get 5+ tokens/s with an M3 Pro with 150GB/s, your M1 Max with 256GB/s should reach least 7 tokens/s raw decode.
The 0.4.0 release is out and improves performance of Qwen models, specially on macOS.
It includes a ton of new features: decision models, Liquid AI's LFM3, Bonsai (ternary quants), Embedding Gemma 2 (multimodal embeddings), a brand new website qxotic.ai
Thanks for publishing these numbers! It helps a lot since I have limited access to Apple Silicon. There's a critical perf. bug, not reproducible in the usual benchmarks. Feel free to open an issue on GitHub to track it. On my side, I can guarantee to at least double the raw decode speed on Qwen 27B.
It's derived from github.com/mukel/llama3... .
jinfer is a modern, serious attempt to bring AI to the JVM.
It supports all the latest open models Gemma 4, Qwen 3.5+, LFM 2.5, gpt-oss, Nemotron, Kokoro, Parakeet... competitive with llama.cpp on CPUs.
Already integrates with LangChain4j and Spring AI.
Saw this talk in Antwerp and loved the one-jar principle. Inspired by it, built some UIs to test Quixotic features in a Java/Spring Boot app: github.com/samie/quixot...