Skip to content

Releases

ZeroTok v0.2.0

Choose a tag to compare

@irfandemir00 irfandemir00 released this 30 Nov 18:00

ZeroTok v0.2.0

100% pure Mojo 1.2+ zero-copy, SIMD-accelerated BPE tokenizer compatible with OpenAI cl100k_base and o200k_base.

Highlights

  • Pure Mojo cl100k_base & o200k_base Pre-Tokenizers with SIMD ASCII fast-paths and exact token-ID match against official tiktoken (24/24 verification suite + full 1 MB corpus).
  • Flat Byte Arena + Open-Addressed Hash Table (Vocab) with ~33 ms load time for cl100k_base and ~58 ms for o200k_base.
  • Hybrid BPE Engine + Generation-Resettable ChunkCache (O(1) whole-chunk lookup, O(1) multi-token chunk cache, in-place short scan, min-heap O(n log n) long path).
  • Two-Pass unsafe_memcpy Decode (decode_bytes up to 716 MB/s / 245 M tok/s).
  • Multi-Core encode_batch via max.algorithm.parallelize (up to 345 MB/s / 125 M tok/s on cl100k_base).
  • 26/26 unit tests passing on Ubuntu & macOS CI.