Repository navigation
Releases
Releases · irfandemir00/ZeroTok
ZeroTok v0.2.0
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_basePre-Tokenizers with SIMD ASCII fast-paths and exact token-ID match against officialtiktoken(24/24 verification suite + full 1 MB corpus). - Flat Byte Arena + Open-Addressed Hash Table (
Vocab) with~33 msload time forcl100k_baseand~58 msforo200k_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_memcpyDecode (decode_bytesup to 716 MB/s / 245 M tok/s). - Multi-Core
encode_batchviamax.algorithm.parallelize(up to 345 MB/s / 125 M tok/s oncl100k_base). - 26/26 unit tests passing on Ubuntu & macOS CI.