ML.NET provides an open source, cross platform machine learning framework for .NET applications.
shimmytok
The shimmytok project provides a pure Rust GGUF tokenizer compatible with llama.cpp and ready for WebAssembly.

About shimmytok
shimmytok is a Rust library that reads the tokenizer embedded in GGUF model files and encodes text to tokens and decodes tokens back to text, without Python, C++ bindings, or separate tokenizer files.
It handles SentencePiece, BPE, WordPiece, Unigram, and RWKV tokenizers, offers batch encoding with optional Rayon parallelism and token-by-token decoding, and supports WASM/WASI builds with a sequential backend. The project reports token-for-token matching output with llama.cpp for the models listed in its validation table.
Key features
- Loads tokenizer directly from .gguf model files
- Encodes text to tokens and decodes tokens to text
- Supports SentencePiece, BPE, WordPiece, Unigram and RWKV
- Provides batch encoding with optional Rayon parallelism
- Provides token-by-token decoding for streaming output
- Builds for WASM/WASI with sequential backend
- No C++ dependencies or separate tokenizer files required
- Tested token-for-token against llama.cpp for listed models
- Zero unsafe code in critical paths according to project
shimmytok at a glance
- Category
- Development › Programming Languages
- Type
- Open-source project
- Pricing
- Free
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
shimmytok alternatives
Tools and sites you could use instead, ranked by how closely they match.
Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library.
rb-libsvm provides Ruby bindings for the LIBSVM machine learning library.
LMQL provides a programming language for interactions with large language models.
The MLJ project provides machine learning tools and a framework for Julia.
Treat supplies Ruby developers with a framework for natural language processing.
Popular in Programming Languages
Well-known listings from the same topic.
shimmytok FAQ
How do I use shimmytok with a model file?
Which tokenizer types does it handle?
Does it need Python, C++, or separate tokenizer files?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.











