unitoken
unitoken is a fast BPE tokenizer/trainer with a Rust core and optional Python bindings.
Install
Rust:
Python (wheels via PyPI):
Quickstart (Python)
= # first token is treated as EOT
=
=
Building from source
This project uses maturin for the Python extension module.