Tok'n'Roll: token-perfect LLM tokenizers in pure Java, up to 4x faster than HF in Python

mukel90 · reddit · 2026-12-01

Quixotic AI released Tok'n'Roll, a tokenizer written 100% in Java (no Unsafe), compiled via GraalVM Native Image into a shared library usable from Python via pip install toknroll.

The author's motivation: mainstream Python tokenization libs are thin Rust wrappers that lean heavily on unsafe, which he finds hard to justify. Available for Linux/Windows x86-64-v3 and macOS arm64.

Original post →

More from Infra

Infra channel →