A simple, efficient BPE training implementation in Rust with Python bindings
github.com