AI Potluck
Infrastructure / Core ML frameworks & libraries

SentencePiece

Google

SentencePiece is an unsupervised text tokenizer and detokenizer that implements subword units (Byte-Pair Encoding and unigram language model) directly from raw text, without language-specific pre-tokenization. It treats input as a stream of Unicode characters, enabling a language-independent, end-to-end pipeline useful for languages without clear word boundaries. It is developed and maintained by Google.

Verified 2026-08-13 via GitHub and the LICENSE body.

Openness

5 high confidence
5.0
license
Apache-2.0(OSI)
source
public
core-gated
ungated

LICENSE body is verbatim Apache License 2.0; full C++/Python source public. The repository is public and unarchived, and the README describes the whole library with no paid, enterprise or hosted tier beside it, so source is public and the core ungated.

Adoption

5 high confidence
5.0

36,642,180 PyPI downloads of `sentencepiece` in the trailing 30 days, which clears the top band of the software usage scale, over 10M a month, level 5. That is the same band other products on this map hold at comparable volume - pydantic-ai at around 31M, langgraph at around 58M. SentencePiece is the de facto subword tokenizer underneath most LLM and machine-translation pipelines. The C++ library is also vendored directly into other projects and goes uncounted here, so the figure is a floor within the top band.

Capability

4 high confidence
4.0

Widely used tokenizer underpinning many LLM and NMT models, though narrow in scope.

Verified 2026-08-13