Open MODEL files in your browser
The file many language models split text into pieces with. Open one right here to see its vocabulary, its special pieces and how it was trained. Nothing leaves your device.
Or drop it anywhere on this page
What you'll see
Your tokenizer opens as what it is, its kind, its pieces and how it was trained, with every piece in a table.
- Unigram or BPE • Its pieces counted by type
- Every piece in a table • Its score and type
- Special pieces • Unknown, start, end and padding
- How it was trained • As a tree, with Search
About MODEL
SentencePiece is Google's tokenizer, which T5, Llama 2, Gemma and many other language models split text with. Its model, named tokenizer.model or spiece.model, comes beside the model's weights, as Hugging Face's repositories carry it.
A SentencePiece model is a protobuf: every piece of its vocabulary with its score and type (normal, unknown, control, user defined or byte), then how it was trained, Unigram or BPE, its size, character coverage and special pieces, and how it normalizes text first.
Filepeek reads it on the Models card: its kind, its pieces by type, byte fallback, coverage and normalizer, the special pieces with their numbers and the files it was trained on, with every piece in a table and the whole model as a tree. Other .model files open as what their bytes are.
SentencePiece model
.model
Format
- MIME type
- application/octet-stream
- Made by
Inside the file
- Container
- Protocol Buffers
- Kinds
- Unigram, BPE, word and character
- Holds
- Pieces with their scores and types
- Also
- How it was trained and normalizes
Opens in every browser
Filepeek opens a SentencePiece model in Chrome, Edge, Firefox and Safari. On their own, browsers only download it.
- YouChromeOpens through Filepeek
- YouEdgeOpens through Filepeek
- YouFirefoxOpens through Filepeek
- YouSafariOpens through Filepeek
Apps that open MODEL
- WindowsPython, with Google's sentencepiece library
- MacPython, with Google's sentencepiece library
- iPhone and iPadNo app opens it
- AndroidNo app opens it
Questions
What is tokenizer.model?
The SentencePiece model a language model splits text into pieces with, which its tokenizer loads beside its weights. Drop it here to see its vocabulary and how it was trained.
Why does my tokenizer have 256 byte pieces?
It was trained with byte fallback: a character it never saw is spelled out as its UTF-8 bytes, <0x00> to <0xFF>, instead of the unknown piece. The card says so, with their count.