Repository navigation
Release candidate v1.0.0-rc.3
Pre-release
Pre-release
v1.0.0-rc.3
1.0.0-rc.3 is mainly a bindings release: it brings tokenizers to the browser with WebAssembly bindings!
Install them with:
npm install tokenizers-wasm@nextWe're making steady progress towards feature parity with 0.23, the main milestone left before a stable 1.0.0.
New
- WebAssembly bindings, published on npm as
tokenizers-wasm. Release candidates go out under thenextdist-tag (#2450, #2497, #2552) - Python: encode pairs of text (#2453)
Fixes
- Fixes a bug causing byte-level BPE tokenizers whose vocabulary lacks bytes that can never appear in UTF-8 (e.g. ModernBERT) to fail to load. The error now names the missing byte (#2466)
- Fixes a bug causing WordPiece tokenizers with an empty-string token in their vocabulary to fail to load (#2538)
- Fixes a bug causing the Python, Node and WASM bindings to reject any
tokenizer.jsonwith a regexSplitpre-tokenizer orReplacenormalizer, which covers NLLB and every model transformers converted from SentencePiece (#2536) - Fixes a bug causing data races when Python's
Encoding.*_arraygetters were used concurrently; they now return an owned copy instead of a view (#2464) - Fixes a bug causing a 64-bit hash collision between two tokens to silently drop one of them when loading a vocabulary; it is now an error. Duplicate tokens log a warning instead of printing the whole vocab to stdout (#2467)
- Fixes a bug causing
ParityBpeTrainerto produce a different output than the regular BPE trainer; it now trains intoVocab+Mergeslike the others (#2474)
Python
huggingface_hub2.0 is allowed (#2486)- One unnecessary
Encodingcopy at the Rust/Python boundary is gone (#2452)
Internal
- Umbrella crate features: depend on
tokenizersalone and pick components by feature, e.g.cargo add tokenizers -F trainorcargo add tokenizers -F bpe --no-default-features. Thetk-*crates still work on their own (#2476, #2477, #2479) - Dependency updates, CI hardening and other maintenance (#2446, #2448, #2449, #2465, #2471, #2472, #2473, #2475, #2480, #2492, #2495, #2510, #2537, #2548)
Thank you
Full Changelog: v1.0.0-rc.2...v1.0.0-rc.3
This changelog has been written with AI assistance