NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #642 most downloaded on PyPI
Unsupervised text tokenizer and detokenizer.
Last release 2 months ago
12 Jul 2026
Release timing varies
gaps range from 3 weeks to 1.5 years
Most releases are documented
notes for 20 of 33 stable releases
1 version withdrawn
withdrawn after publishing
9 years old
34 releases · first in 2017
Deprecate Win32 Wheels : Stopped support and distribution of 32-bit Windows wheels (win32) (Commit 24fd00c ).
This release contains major updates, including the migration of the Python wrapper to pybind11, native NumPy support, enhanced offset mapping, performance optimizations, security hardening, and internal code modernization.
528dc9e)..pyi files) and packaged PEP 561 marker to provide auto-completion and static type safety in IDEs (#1258, Commit 8b7f97b).parallel_encode and ThreadPool APIs, allowing Python users to tokenize single large documents across multiple CPU cores in parallel (#1254, Commit 3c37c39).12788ba).0a044ae).ValueError instead of silent failures or crashes (Commit 780618a).8db9878).SentencePieceText conversion, resulting in ~2x speedup (Commit 4b9231b).1cd0c59).darts-clone trie offsets when loading models to prevent segfaults on corrupted or malicious model files (#1224, Commit 6b2f05d).DecompileCharsMap (#1265, Commit 82b7c6d).CHECK macros with DCHECK or returned errors to prevent host application crashes on invalid inputs (Commit 66b2587).eb3ba49).ba57749).e476e5e).24fd00c).setup.py directly to the standard pypa/build PEP 517 frontend (#1167, Commit f300c7d).pyproject.toml (#1173).options.md and special_symbols.md with verified code examples.One column per quarter.
[ALL]: Security fix to address a heap overflow issue that could occur when using a model containing an invalid precompiled normalization model.
-DSPM_DISABLE_EMBEDDED_DATA=ON). This reduces the runtime size by approximately 1-2 MB. This mode is enabled to build python wheels. The rules are loaded as the data package.[ALL] Added SentencePieceNormalizer class in C++/Python. It supports almost the equivalent feature of spm_normalize. Python Sample C++ Sample
N/A
[ALL] Fixes the NaN issues in unigram model training: #851
N/A
N/A
Python 3.11 support (wheel packages for python 3.11 are available)
--pretokenization_delimiter) flagMigrated the C++ version from C++11 to C++17.
spm.__version__Improves the performance of unigram training
allow_whitespace_only_pieces mode.support to build sentencepiece with the external (official) abseil library.
added SetRandomGeneratorSeed function to set the seed value for random generator. This can allow to make reproducible sampling.
Fixed the regression bug around the flag --minloglevel
[Python] Added a feature to feed training data as Python's iterable object. https://github.com/google/sentencepiece/tree/master/python#training-withou
Renamed v0.1.9 to v0.1.90 because PyPI doesn't recognize 0.1.9 as the latest release.
Renamed v0.1.9 to v0.1.90 because PyPI doesn't recognize 0.1.9 as the latest release.
Support tf 1.5.1 2.0.0 2.0.1 2.1.0 and 2.2.0rc3
Support tf 1.15 and Python3.8 on Windows
Support tf 1.15 and Python3.8 on Windows
Use the official docker image to build tf_sentencepiece ops
Bug fix: fixed the behavior of is_unknown method in Python module.
Bug fix: fixed the behavior of is_unknown method in Python module.
Fix: support tensorflow 0.13.1
Fix: support tensorflow 0.13.1
Feature: Get rid of the dependency to external protobuf Feature: added (Encode|Decode)AsSerializedProto interface so Python module can get full access
Feature: Get rid of the dependency to external protobuf Feature: added (Encode|Decode)AsSerializedProto interface so Python module can get full access to the SentencePieceText proto including the byte offsets/aligments Feature: added --treat_whitespace_as_suffix option to make _ be a suffix of word. Feature: Added normalization rules to remove control characters in the default nmt_* normalizers Minor fix: simplify the error messager Minor fix: do not emit full source path in LOG(INFO)
For more detail: https://github.com/google/sentencepiece/compare/v0.1.7...v0.1.8
Deprecated: --mining_sentence_size and --training_sentence_size. Load all sentences by default. --input_sentence_size can be specified to limit the se…
Deprecated: --mining_sentence_size and --training_sentence_size. Load all sentences by default. --input_sentence_size can be specified to limit the sentences to be loaded
Feature: added --unk_piece/--bos_piece/--eos_piece/--pad_piece flags to change the surface representations of these special symbols.
Bug fix: added third_party directory for cmake's subdirectory.
For more detail: https://github.com/google/sentencepiece/compare/v0.1.6...v0.1.7
Bug fix: do not apply normalization to the user-defined-symbols.
For more detail: https://github.com/google/sentencepiece/compare/v0.1.5...master
Nothing published for this version
Initial SentencePiece releases
Initial SentencePiece releases
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →